Custom Site Attributes
How to configure custom attributes for your mobile site.
Last updated
How to configure custom attributes for your mobile site.
Last updated
⚙️ Powered by Rock RMS
Ever wanted to add a custom attribute to your mobile application that you can access and utilize in your XAML? Look no further! As of Rock v16.8, you can now configure custom entity attributes for your mobile site to utilize in any fashion you desire.
Navigate to System Settings > Entity Attributes
In the below example, we are configuring custom Start Gradient Color
and End Gradient Color
attributes to access in our mobile content.
In the Mobile Application Detail
block, assign a value to your custom attribute—for this example, a hex color value:
To access the attributes, use the following Lava syntax in a Content block:
Here's an example of using the custom attributes to create a gradient background:
Ensure that Rock Entity and Process Lava on Server are enabled for Lava code to function properly. For more information, Read more Content
The result:
Custom attributes, like the gradient color in this example, are just the beginning! They aren't limited to visual design—you can use them to personalize functionality, streamline workflows, or support complex data requirements.