antknight Posted November 21, 2012 Share Posted November 21, 2012 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 Link to comment Share on other sites More sharing options...
diogo Posted November 21, 2012 Share Posted November 21, 2012 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 More sharing options...
antknight Posted November 21, 2012 Author Share Posted November 21, 2012 Thanks, I did think that would be the better way Link to comment Share on other sites More sharing options...
onjegolders Posted November 21, 2012 Share Posted November 21, 2012 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 More sharing options...
antknight Posted November 25, 2012 Author Share Posted November 25, 2012 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 More sharing options...
diogo Posted November 26, 2012 Share Posted November 26, 2012 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. 1 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