Gazley Posted December 29, 2013 Share Posted December 29, 2013 Hi, I have a Page field that has a parent page called "micro_data" and child pages called "micro_datum". The idea is that you can select a microdata type eg: "Software Application" This Page field is utilised inside a Repeater in my basic-page template. micro_datum contains the Title field and several others, including Body. When I look at the micro_datum field via the Repeater page instance or, directly query the page like so: $pages->get('/microdata/software-application/') where software-application is the name of the micro_datum page, I cannot see any field in the Page result, except "Title". It almost seems that using micro_datum in the micro_data Page field constrains the visibility of all fields except "Title". Any ideas what might be happening here? Thanks --Gary Link to comment Share on other sites More sharing options...
Soma Posted December 29, 2013 Share Posted December 29, 2013 You lost me somewhere in between. Keep it simple maybe with code example. Link to comment Share on other sites More sharing options...
Gazley Posted December 29, 2013 Author Share Posted December 29, 2013 Let's see. $pages->get('/microdata/software-application/') The above returns the correct page but you can only "see" the Title field. The other fields in the page are "missing". Link to comment Share on other sites More sharing options...
Joss Posted December 30, 2013 Share Posted December 30, 2013 You need to drill down to the fields, I think, via your repeater field so, Page, then repeater, then pagefield, then field You can also render the whole page output that is selected by the page field by using render() That way you can use the template for the pages selected by the page field to do the layout for that particular little set of fields. Assuming you are looping through your repeat, it should be something like: foreach($page->repeater as $p){ echo $p->render(); } Something like that - I have no notes with me so I am trying to remember what I have done in similar circumstances http://wiki.processwire.com/index.php/Including_a_page_in_another_page 1 Link to comment Share on other sites More sharing options...
Gazley Posted December 30, 2013 Author Share Posted December 30, 2013 Thanks Joss - that helped. Is that a Strat in the background of your picture? Link to comment Share on other sites More sharing options...
Joss Posted December 30, 2013 Share Posted December 30, 2013 Er yep - American Custom. My day job. Link to comment Share on other sites More sharing options...
Gazley Posted December 30, 2013 Author Share Posted December 30, 2013 I've got an original Feb'61. I bought it 30yrs ago on the way to a gig. It's the third of three pre-cbs Strats that I've owned. I don't play it any more - last time I played professionally was circa 1986. I'd like to get it set up and maybe I'd play it again. The wiring and pots were in need of some attention the last time I played it. Years ago, I used Ted Lee and then, Gordon Whittam of "Gordon Smith" guitar fame. I haven't a clue who I could trust with it now from the POV of understanding these old guitars. If you know anyone, maybe you could let me know. Cheers. Link to comment Share on other sites More sharing options...
Joss Posted December 31, 2013 Share Posted December 31, 2013 I dont really - I used to use Andy's in Denmark Street, London, but he became more than a bit, erm, untrustworthy and then very bankrupt. This strat is only about 15 years old and I just get it serviced by the local shop occasionally. No idea who this guy is, but he might be worth checking up on: http://www.manchesterguitartech.co.uk/ Link to comment Share on other sites More sharing options...
Gazley Posted December 31, 2013 Author Share Posted December 31, 2013 Thanks Joss - I've contact him and he seems like a good guy! It's amazing what you find out in the ProcessWire forums Thanks again. 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