 |

reubs
New User
Jun 19, 2008, 4:21 AM
Post #1 of 6
(1307 views)
Shortcut
|
|
Sitemap at the bottom of each page
|
Can't Post
|
|
Hi, my client wants to add a sitemap to the bottom of each page of his website much like this one on http://www.plumbermanor.co.uk/. Is there a way of doing this in Article Manager so that it updates every time he adds a new category or changes the name of an existing category? Ideally we want the list to use the Category Summary Header placeholder from each page. Any ideas if this is possible? Thanks
|
|
|  |
 |

Jake
Staff
/ Moderator

Jun 19, 2008, 12:31 PM
Post #2 of 6
(1281 views)
Shortcut
|
|
Re: [reubs] Sitemap at the bottom of each page
[In reply to]
|
Can't Post
|
|
Hi reubs, This is possible to do - just create a new "category menu" publishing rule that's set to publish all of the categories on your site, and then create a new template for this rule that displays the category names in the format you desire. You can use the code below as a starting point for your template:
<!-- templatecell : categoryRow --> <a href="$published.categoryIndex.url$">$category.name$</a> <!-- /templatecell : categoryRow --> You don't have to use the $category.name$ placeholder for the link names if you don't want - just add in the placeholder for your category summary header instead. Then all you need to do is add an include to your other template files where you want this displayed which brings in this list of categories. If your rule has a placeholder set name of "categorySiteMap", then your include would look like this: <!--#include virtual="$published.categorySiteMap.webpath$" --> Let us know if you need anything else. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

reubs
New User
Jul 4, 2008, 3:42 AM
Post #3 of 6
(1185 views)
Shortcut
|
|
Re: [reubs] Sitemap at the bottom of each page
[In reply to]
|
Can't Post
|
|
Hi Jake, Thanks for that. I'm a bit of a newbie to this so is it possible to give me a slightly more step by step guide how to do this? Ideally I would like it to go in under the footer of the page. Thanks again for your help.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 4, 2008, 11:58 AM
Post #4 of 6
(1154 views)
Shortcut
|
|
Re: [reubs] Sitemap at the bottom of each page
[In reply to]
|
Can't Post
|
|
Hi reubs, The first step here will be to create the template file. Make a file called "categoryFooter.html", and put this code inside of it:
<!-- templateinsert: $categoryList$ --> <!-- templatecell : categoryRow --> <a href="$published.categoryIndex.url$">$category.name$</a> <!-- /templatecell : categoryRow --> Now upload that to Article Manager's /templates/categoryMenus directory. Now log in to the software and go to Admin -> Publishing and click the "Create" button on the bottom-right part of the page. Here are the settings you'll want to use here: Rule Name: Category Footer Rule Description: Displays categories at bottom of page Rule Type: a category menu Template: categoryFooter.html Placeholder Set Name: categoryFooter Published Files: One File Filename: categoryFooter The rest of the settings here should be fine as they are, so you can go ahead and save the rule. Now you just need to edit the templates where you'd like this list of categories to appear - in most cases this would be your articlePage.html, globalIndex.html, and categoryIndex.html pages. You may also want to add this to your searchForm.html and searchResults.html templates. You'll want to add this line of code into those templates where you'd like the list of categories to appear: <!--#include virtual="$published.categoryFooter.webpath$" --> That should be it - if you go to Admin -> Publishing and click "Publish All", you should see the list of categories at the bottom of your page. I hope this helps. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
(This post was edited by Jake on Jul 8, 2008, 12:37 PM)
|
|
|  |
 |

reubs
New User
Jul 7, 2008, 2:47 AM
Post #5 of 6
(906 views)
Shortcut
|
|
Re: [Jake] Sitemap at the bottom of each page
[In reply to]
|
Can't Post
|
|
Hi Jake, Many thanks for your help. I have managed to get it to work on the bottom of this page - http://www.beechfieldhouse.co.uk/country_house_hotel/index.shtml but it only seems to be displaying the name of the category I am on and I need it to display the names of all the categories of the whole site. Have a not done some correctly? Also is it possible to make these links so that you can click on them and they will take you to the relevant page? Cheers.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 7, 2008, 12:26 PM
Post #6 of 6
(842 views)
Shortcut
|
|
Re: [reubs] Sitemap at the bottom of each page
[In reply to]
|
Can't Post
|
|
Hi reubs, Did you use the code I provided above for the template? It's already set up to link to the relevant category. In regards to all of the category names not displaying, what do you have set for your "Menu Format" option for this publishing rule? If it's set to "Show All", it should be displaying all of the categories. Let us know if there's anything else we can help with here. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|