elmago79 Posted August 10, 2015 Share Posted August 10, 2015 This I guess is very simple but it is driving me a bit insane. I'm using this bit of code to populate the main page of a website. $pages->find('template=singleblogpost, sort=-fecha_de_publicacion')->eq(0); There are many kinds of pages, each with a different template. I have singleblogpost, singlegallery, quotations, adds, so I just change the template. And it works for every king of page except for the 'video' template. $pages->find('template=video, sort=-fecha_de_publicacion')->eq(0); Do you have any idea as to what am I doing wrong? Link to comment Share on other sites More sharing options...
elmago79 Posted August 10, 2015 Author Share Posted August 10, 2015 No idea what went wrong. Updated form 2.6.10 t0 2.6.12 and the problem went away. Link to comment Share on other sites More sharing options...
Anssi Posted September 24, 2015 Share Posted September 24, 2015 I've had similar issues occasionally and haven't always really understood why the selector has suddenly started working in the desired way. Removing the whitespace(s) from selector has solved similar cases sometimes. Also the pages may have been hidden or unpublished, which would require the "include=hidden" or "include=all" property to be defined. 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