Jump to content

Help to get me started


antknight
 Share

Recommended Posts

I wouldn't do this with repeaters. In this case would make more sense, and be more flexible, if you create them as children of this page. Then you just have to do:

foreach($page->children as $dealer){
   echo "<tr><td>{$dealer->title}</td><td>...</td><td>...</td><td>...</td></tr>"
}
Link to comment
Share on other sites

Diogo's right this is perfect for child pages, your dealers template will just loop through all of its children and perhaps grandchildren if you want to set it up organized by country. PW is great at this sort of site, as you will see with many of Ryan's own sites

Link to comment
Share on other sites

Assuming I create a child page for each country and then child pages of each country for the individual dealers, do those pages need to be set to hidden in PW and hidden from search engines if they are not used on the front end?

Do they need their own template.php or can I just use 'Create a new template without a file'

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...