I’m trying to build out a page that will be easy for me to duplicate into additional pages for my app. The idea is to replace one data-* attribute value (e.g. data-page-name=“Contacts”), and have it flow through different elements on my page.
For example:
- Contact Page
- Contact page contains the following attribute on the HTML tag which will be used to replace all templated areas on the page
<html data-page-name="Contact">
- I will have multiple templated areas on the page that I want to populate the value
- As the head title
<title>Contact List</title>
- As the Page title
<h3 class="nk-block-title page-title" dmx-html="">Contacts</h3>
- As the head title
- Contact page contains the following attribute on the HTML tag which will be used to replace all templated areas on the page
So, what do I need to use in the “Dynamics Attributes” property on each of these elements to grab the value in the data-* attribute?
Community Page
Last updated:
Last updated: