Search

Is it possible to filter a data source to return all entries apart from the most recent one? Currently I'm achieving it in XSLT (position() > 1) but wondered if I could do it sooner so I don't have the extra entry overhead.

Thanks, D

Hmm maybe you could use 'paginaton' you set to select 99999 entries (to simulate all) but then choose to start from entry 1/2 not sure if its index 1 or 0

Thanks, gunglien; I don't see how I can choose to start at entry 2 in the pagination section, though. Am I being stupid?

The extra overhead is minimal when it's only one entry. The method you're already using is how I achieve it.

Thanks designermonkey; does that mean there isn't really a way to do it by filtering the ds – just curious.

Well you could customise your DS to take the returned XML Element Object and strip off the first entry object, but that's a bit overkill for one entry.

I could show you how to do it though if you wanted?

If it wasn't too much trouble, I'd love you to show me how to do it. Just for fun, though; I like knowing what the possibilities are.

Cheers.

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