XML navigation

basic functions and we:tags
ikbenivo

XML navigation

Beitragvon ikbenivo » Di 7. Nov 2006, 11:28

Is it possible to output the navigation (from the navigation tool) as XML?

('cause I want to make a flash navigation based on the navigation tool input..)

Boris Toeltl

Beitragvon Boris Toeltl » Di 12. Dez 2006, 13:09

Hi ikbenivo,

This is possible.

Create a template with the following code:

Code: Alles auswählen

<?xml version="1.0"?>
<we:navigation navigationname="myXMLNavigation" parentid="0" />

	<we:navigationEntry type="folder" navigationname="myXMLNavigation">
		<we:navigationEntries />
	</we:navigationEntry>

	<we:navigationEntry type="item" navigationname="myXMLNavigation">
		<entry>
			<level><we:navigationField name="level"/></level>
			<name><we:navigationField name="text" /></name>
		</entry>
	</we:navigationEntry>

<navigation>
<we:navigationWrite navigationname="myXMLNavigation"/>
</navigation>
Then create a new document with the file extension ".xml" and define as template the aforementioned template.

Depending on the requirements of your XML document you can customize the output by adding code for different levels etc.

Regards
Boris Töltl


Zurück zu „Creating templates“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste