About this article
- Difficulty level: Easy
- Technical background needed: Beginner
- Estimated time required to complete: 2 mins
What and Why?
You can use
data-ms-member="fieldID" attributes to personalize your site with data submitted by your members or by admin. This means that you can use Memberstack as a secure content management system (CMS) and use data attributes to tell Memberstack where to display content.
In Memberstack → Create or click a custom field to open the settings drawer and copy the value.
On your website → Select the element you want to personalize and give it an attribute of data-ms-member="fieldID"
When you log in or refresh the page, Memberstack will swap the original text with the text stored in Memberstack. If the field is empty, the element will revert to its original state.
Note: You currently can't add numbers into fields. As a workaround, numbers will need to be entered as words; 1 = One.
Keywords: text, personalize text, personalisation, data, members, users, customers