Search

I have no idea what is going on here, but it really pisses me off.

  1. I created a section Nieuws Artikelen (means news articles, i do this for a nice clean dutch menu because there is no i18n translation tool in symphony)
  2. I created a datasource News Articles
  3. I created a utility get-news-articles.xsl
  4. Now i created the page nieuws and set Data Sources to News Articles and Navigation

I tried to add code but the editor on this site html_encode it….

It simply just wont work. I even copy and pasted from drafts page, and get-drafts and kicked out all the fields that i didnt need. Whats going wrong here? Anyone an idea?

Attachments:
data.news_articles.php, get-news-articles.xsl and nieuws.xsl

Your datasource is called news-articles but the nieuws.xsl is looking for news/entry.

Likewise in the get-news-articles.xsl template. It needs to be changed to match the name of the datasource.

To get a better idea at what XML is being return on pages, add ?debug to the url. You should see that your actually getting:

<news-articles>
   <section>etc</section>
   <entry>
       <etc>
   </entry>
</news-articles>

omg that was stupid. thank you.

i asked something later, but edit: i got it ;) filters to filter on the {$entry} so it displays only one ;)

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