Search

Hi at all

I want to give out sections as links to navigate trought. but i don't become a result i have created an section called "Menu" and a DS Called "Menus" the souce there is Menue i havent got any filter options or other things only in the includet elements I have the field "Titel" activated wich is form Menu. So I have tried with

<xsl:for-each select="/data/menus/entry"></xsl:for-each>

and some old tutorials from 1.7 but no result came out. had anyone an Idea or a tipp for me?

Hello

Do you have anything inside the <xsl:for-each />? The for-each lets you loop through each menu entry, but you have to tell Symphony what you want to do with the entry once it's there. For instance:

&lt;xsl:for-each select="/data/menus/entry"&gt;
&lt;xsl:value-of select="." /&gt;
&lt;/xsl:for-each&gt;

value-of will give output the contents of the element, and the "." just means 'self' or in this case, the 'entry' element. If you have put html in the 'entry', you can use copy-of instead of value-of.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details