cancel
Showing results for 
Search instead for 
Did you mean: 

webform association

parrym
Champ in-the-making
Champ in-the-making
I have one index xml document created by the index webform.
I have many category xml documents created by the category webform.
The index webform allows the user to specify which categories should appear on the category page.

A simplified example of the index.xml:

<index>
    <category>category1.xml</category>
    <category>category2.xml</category>
</index>

The index webform also generates an html page which looks up the category files and copies the relevant information such as image location, name, text etc. into the index.html on rendition.

I would like the index xml and html pages to be automatically updated when a category xml file is changed using the category webform without the user having to click edit index.html to re-render it. But I still want the index webform to appear the next time i decide to edit the index page.

Please help.
1 REPLY 1

parrym
Champ in-the-making
Champ in-the-making
Okay so I am able to re-render index.html on the creation of a category by overwriting it the html with a different xsl. However when trying to overwrite the index.xml I get the following error:
Please correct the errors below then click Finish.

    * Error generating rendition using overp.xsl: node avm://resource-center–admin–preview/-1;www;avm_webapps;ROOT;portals;index.xml does not have aspect {http://www.alfresco.org/model/wcmappmodel/1.0}rendition

Which I guessed I'd get as the index xml file was created with the index webform.

How do I overcome this? Can I write a script to be executed to change the aspect of index.html and .xml to category, update it, and then change it back to index? How would I go about doing this?