Sitemap improvement diff attached

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
nivekiam

Sitemap improvement diff attached

Post by nivekiam »

I was playing around with the sitemap feature and noticed that for nested levels, if using a delimiter, that the first item in a nested level didn't get the delimiter so you would end up with this:

Home
Sub-Home1
-->Sub-Home2

Instead of this
Home
-->Sub-Home1
-->Sub-Home2

I've attached a diff, I don't know if it's the best fix, but it works.  I've also attached 2 example images, one showing current behavior and one with the new behavior.

EDIT: helps if I actually attach the diff.

Also, this change adds extra delimiters for levels that are more than the 2nd level.  So level 3 will will have 2 delimiters to show that's it's below level 2.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

sitemap_new.gif
sitemap_old.gif
Last edited by nivekiam on Mon Jan 14, 2008 7:43 am, edited 1 time in total.
Post Reply

Return to “Developers Discussion”