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

Search

I have designed a section for photos going into a slide show. I would like to be able to leave photos in the section and randomly pull 20 out of x number of photos. I would like these 20 photos to have an id # from 1 - 20 after being pulled for the xml. how do I best do this? Thanks in advance.

I don’t think you can actually make that show in the xml, but you can use the position() function in xslt, which will return a number from 1-20 (if 20 results are returned) based on the location in the xml document.

I will give that a try. Thanks for the help!

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