Hello All!
I’m working on a package with a theme and some default initial content. (I haven’t found the documentation to be very helpful, but I’ve found some examples from other packages that I’ve been trying to make sense of.)
In my content.xml file, I’ve setup some attributes, and added a page element for the Home page (root path) so that I could assign it a custom template, and associate the custom page attributes to the Home page.
This all seems to be working.
However, I then added a 2nd page element in the content.xml for a Contact page (/contact) and I’m not getting what I expect.
Although it does create the page and the url path just fine, and it seems to be using the correct template … the attribute is not applied (even though its the same code used for the previous page element which is working).
My ultimate goal is to define/install a set of starting blocks/content into the ‘Main’ area for the Contact page, but at the moment I can’t even get the page attributes working on anything other than the Home (/) page.
Can anyone help me understand why I cannot assign page attributes to the 2nd page:
<pages>
<page name="Home" path="" description="" user="admin" template="brochure" filename="" pagetype="" package="my_package_handle" root="true">
<attributes>
<attributekey handle="prefab_handle">
<value>home</value>
</attributekey>
</attributes>
</page>
<page name="Contact" path="/contact" description="" user="admin" template="full" filename="" pagetype="" package="my_package_handle">
<attributes>
<attributekey handle="prefab_handle">
<value>contact</value>
</attributekey>
</attributes>
</page>
</pages>