Jump to content

Fields In Page Object Not Showing


Gazley
 Share

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...