Mike Rockett Posted October 19, 2014 Share Posted October 19, 2014 I'm trying to change one of my first-level pages' template to something else (it's currently using a 'skeleton' or basic template of sorts, as I was working on the child pages first). However, it only shows three templates, when I have way more than that. Is there something I'm missing as to why this is the case? Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 19, 2014 Author Share Posted October 19, 2014 Ah, never mind. I just remembered that I had set a list of allowed children for the home template. My bad! Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 19, 2014 Author Share Posted October 19, 2014 Although, the manual drag 'n drop sorting is not working for this page. I need to display the pages in a particular order in the menu, but the sort is not reflecting in my template. I'm using the following call: $items = $wire->pages->find("main_menu_group={$menuGroup}"); Edit: I have made sure that the template's sorting option is set accordingly. Even swapped it around so that the sorting option would be defined on a per-page basis. Doesn't work... Edit (again): I see that it works in my sidebar, which calls children(). But if I call $wire->pages->get('/')->children("main_menu_group={$menuGroup}"), it still doesn't work... Ah!: Silly me, I assumed it was doing it recursively for some strange reason. Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 19, 2014 Author Share Posted October 19, 2014 Gotta love it when this happens. Sit baffled for 20 minutes, open a forum thread, and solve the problem before anyone gets a chance to say anything. Ah well, as is life. 2 Link to comment Share on other sites More sharing options...
LostKobrakai Posted October 20, 2014 Share Posted October 20, 2014 Gotta love it when this happens. Sit baffled for 20 minutes, open a forum thread, and solve the problem before anyone gets a chance to say anything. Ah well, as is life. You're not the only one, did this twice last week. But maybe mark the thread as solved, if you found the answer. 1 Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 20, 2014 Author Share Posted October 20, 2014 You're not the only one, did this twice last week. But maybe mark the thread as solved, if you found the answer. Ah, forgot about that. So used to doing it on StackOverflow, that I don't think about doing it here. Hehe! Link to comment Share on other sites More sharing options...
arjen Posted October 20, 2014 Share Posted October 20, 2014 Hey Mike, Have you heard of the Rubber Duck? Works very well! 3 Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 20, 2014 Author Share Posted October 20, 2014 Hey Arjen - that's brilliant! I've heard of the concept before, but never with a rubber duck. Always had someone to do it with - and they'd listen, just because they knew what my intention was. Now, I may just need a rubber duck. Or plenty of call-time to phone someone who I know is very bored. 1 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