|
I would like to have composite recognize webpages that are edited outside of composite. To do this, I am doing the following:
1. create metatype with field type string so that users can enter the path of the webpage.
2.create a page type that recognizes this metadata field.
3.create a template which calls function A.
4. function A will get the Xml data of the current page (which has the path for the webpage to be copied from metadata). LoadXhtmlFile will then be used, grabbing the path from function A and using it in its value.
The problem is I can't get LoadXhtmlFile to run in the template. Is the template only for parsing out data? I think my function looks okay:
<f:function xmlns:f="http://www.composite.net/ns/function/1.0" name="Composite.Xml.LoadXhtmlFile">
<f:param name="RelativePath" value="{in:inputs/in:result/importedpage/@uri}"></f:param>
</f:function>
Unfortunately the page source and preview shows the function instead of the data.
Can anyone direct me to how this is done?
Thanks,
Phil
|