Christoph Posted December 20, 2016 Share Posted December 20, 2016 Hi there, i have a little problem with the pagination module. I get an archive-list of articles like this $articles = $pages->get("/archive/")->children("limit=10"); and use a foreach to output the result. tThe limit selector tells the pagination module when to create a new page. So far so good. Now, I just want to skip the first 10 articles from the archive as they are already shown on the homepage. I'd set the start selector to start=11, but this seem to interfere with my page navigation as the start selector is used here to output the pages. What can I do to skip the first 10 articles while still using pagination? Thanks for your support! Link to comment Share on other sites More sharing options...
LostKobrakai Posted December 20, 2016 Share Posted December 20, 2016 $articles = $pages->find("parent=/archive/, limit=10, id!=[parent=/archive/, start=0, limit=10]"); I'm not sure if subselectors support limits, so maybe you need to run it as it's own $pages->find() before this line. 3 Link to comment Share on other sites More sharing options...
Christoph Posted December 20, 2016 Author Share Posted December 20, 2016 This seems to work. Never saw these subselectors, interesting! Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now