Hi,
I have a flash where I want it to read the active page. I want to read the XML containing all page's information, but for that I need to know where it is ketp, so I can link to it. Does anybody know?
Thanks,
Nuno
Hi,
I have a flash where I want it to read the active page. I want to read the XML containing all page's information, but for that I need to know where it is ketp, so I can link to it. Does anybody know?
Thanks,
Nuno
nuno wrote:Hi,
I have a flash where I want it to read the active page. I want to read the XML containing all page's information, but for that I need to know where it is ketp, so I can link to it. Does anybody know?
Thanks,
Nuno
That XML-file does not exist. But there is an XML-file that contains all data regarding the menu structure.
If you add '&savexml=true' to your URL you will get an XML file in /Templates/Navigation in the filemanager.
// Sebastian
Dammark wrote:That XML-file does not exist. But there is an XML-file that contains all data regarding the menu structure.
If you add '&savexml=true' to your URL you will get an XML file in /Templates/Navigation in the filemanager.
// Sebastian
Hi Sebastian,
This will only create the XML for that page at that particular moment. What I needed was for Flash to read some file/data that would say what the current page name is. Can I get that information anywhere, at any given time, with out having to add somthing to the URL?
Thanks,
Nuno
The only way of getting the XML data is by doing the '&savexml=true' trick.
But in the controlpanel you could create a scheduled task the runs this command every hour or so.
If you do that on a page with a menu which has the 'Expand all' option enabled you'll get the complete sitestructure in the XML.
If you want the current page name I think it can be done in 2 ways.
1. Locating the Page node which has the attribute 'Active=True'.
This node should have the page name in the MenuText attribute.
2. Locate the PageView attribute which also has the current page name in the MenuText attribute.
// Sebastian
You must be logged in to post in the forum