4 users online. Create an account or sign in to join them.Users

Search

Hey Guys, Really new to the system, but so far it’s looking really incredible - but I’m stuck on trying to create a multilevel system. If anyone could point me in the right direction, I’d be super indebted !

I’m currently building a site for a fashion design and need something like this - although doesn’t have to work on urls as the site is built in flash and I’m just feeding it all into one page template outputed as xml.

/type/season/item

ie /mens/2010/item1 /mens/2010/item2 /womens/2009/item1

I’d gotten someway to working it out, but realised that I had conflict between say mens/2010 and womans/2010 - items added to one would be added to the other…

If anyone can help, that would be sweet!

Liam

Did you try filtering your data source by your URL parameter $type?

Liam,

It looks like you have 1 Section (‘fashion designs’) that has the fields

  • type
  • season
  • item (some unique ID, which should be the first field in the Section)

As well as the content, such as images, etc.

You will have your single Symphony Page that will supply the XML to your flash, and it will have url parameter /type/season/item

You’ll then create a Datasource that pulls from your ‘fashion designs’ section, and it will have 3 filters:

  • Filter by ‘type’ field with a value of {$type}
  • Filter by ‘season’ field with a value of {$season}
  • Filter by ‘item’ field with a value of {$item}

The variables in the {} will pull the value from the URL, and use those to filter the XML output.

Now, keep in mind that if you want to be able to just ask for all 2009 style, regardless of type, this datasource won’t work because it requires the type in the first ‘slot’ of the url.

Since the url you’re requesting from Symphony won’t even be visible to your users, you can also just use normal url parameters such as :

example.com?type=’men’&season=’2010’&item=’item1’

Doing it this way, you would set your datasource filters this way:

  • Filter by ‘type’ field with a value of {$url-type}
  • Filter by ‘season’ field with a value of {$url-season}
  • Filter by ‘item’ field with a value of {$url-item}

With this method, you can omit any of the three variables (e.g. example.com?season=’2009’ to get all items from that season regardless of type). This works b/c when you add a normal URL parameter after a ‘?’, Symphony creates a parameter that you can use to filter by or in your XSL, prepending a ‘url-‘.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details