SOLVED: Pulling array of variables into separate content page
Posted: Mon Apr 12, 2010 6:41 pm
Most of the sites I've been building with CMSMS so far have been pretty simple/straightforward, but I had a question about using the "Extra Page Attribute" fields for something in a project I'm working on...
Basically, this site will have a group of pages in which each page represents a house for sale. There will be a small spot for an integrated Google Maps box, which I could do manually for each house with no problem. However, I'd also like to have a separate page with a larger map that plots out each house automatically using the coordinates from each individual page.
I was wondering if it's possible to use an "Extra Page Attribute" field for the Google Maps coordinates, and to pull that string from each house page to generate the larger map. Specifically I want to call all child pages from a particular parent (e.g. a section called "Houses"), check if they have a value for Extra Page Attribute 1, and plug that into {foreach} to plot the map coordinates with a link to the corresponding page. Does that make sense?
Any help you guys can provide would be appreciated! Thanks!
EDIT: Subject changed to reflect using content block variables instead of Extra Page Attribute fields.
Basically, this site will have a group of pages in which each page represents a house for sale. There will be a small spot for an integrated Google Maps box, which I could do manually for each house with no problem. However, I'd also like to have a separate page with a larger map that plots out each house automatically using the coordinates from each individual page.
I was wondering if it's possible to use an "Extra Page Attribute" field for the Google Maps coordinates, and to pull that string from each house page to generate the larger map. Specifically I want to call all child pages from a particular parent (e.g. a section called "Houses"), check if they have a value for Extra Page Attribute 1, and plug that into {foreach} to plot the map coordinates with a link to the corresponding page. Does that make sense?
Any help you guys can provide would be appreciated! Thanks!
EDIT: Subject changed to reflect using content block variables instead of Extra Page Attribute fields.