Jump to content

Recommended Posts

Posted

I need help porting a wordpress site to PW. I am just struggling with how I would set up this one page: http://goo.gl/9eiNU (I didn't build that site) to give the client the ability to add new dealers. I need to maintain the current layout with the anchor links at the top. Would I use a repeatable?

Many Thanks

Posted

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>"
}
Posted

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

Posted

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'

Posted

If you create a template without a file they won't be accessible on the site or search engines, they will only exist as database content. You're safe to just leave them like this.

  • Like 1

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
  • Recently Browsing   0 members

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