Yes. Follow the link on Normans post above!
Announcement
Collapse
No announcement yet.
V8 Sitemap Format
Collapse
X
-
Lee,
Did this with me too, although not on every line. My fix was to turn off error reporting in PHP, likey so:-
Code:<actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e" > <actinic:block php="true"> error_reporting(0); $thislevel = <actinic:variable name="SectionLevel" encoding="perl" selectable="false"/>; if ( $thislevel > $lastlevel ) { while ( $lastlevel < $thislevel ) { echo "<ul>"; $lastlevel++; } } else if ( $thislevel < $lastlevel ) { while ( $lastlevel > $thislevel ) { echo "</ul>"; $lastlevel--; } } </actinic:block><li><a href='<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>'><Actinic:Variable Name="SectionName"></a></li></actinic:block>
So, if the site map displays correctly but has those lines in it, this should fix it.
Although it doesn't carry the Finlayson cast iron guarantee!
Comment
-
You mean i can finally setup (quickly) a sitemap that looks like something half decent and doesn't plaster with error messages. Well tyvm, continually looking at the piece of crap we are served up with at the moment has contributed considerably to my bulimia.
I look forward to putting some weight on now.
Cheers buddy.
Comment
-
Dave,
I had tried the various proposed solutions on the Forum before posting, but none quite achieved the desired layout. Normans suggestion was the best, but I also got the error message, curiously only on the first section link?
I have just repeated the suggested solution again and I do get a more attractive sitemap, but I still end up with a gap between some of the section links. When the next link is a a lower section, i.e. section, sub-section, there is no gap, but when the next link is a higher section, for example, sub-section, section, sub-section, there is a gap between the first sub-section and the section links. I think that makes sense, if not please see attached picture!
Saying that I think it looks a vast improvement upon the original.
Thanks for the 'Finlayson fix'!Attached Files
Comment
-
Originally posted by dave_finlaysonLee,
Have a wee poke around your Actinic CSS file for ul formatting and I am sure you will see the problem!!!
Anyway, its the ul styling as Dave points out, it starts on line 524 and looks like:
ul{
line-height: 150%;
padding: 0px 0px 0px 1px;
margin: 0px 0px 18px 15px;
Change that to:
ul{
line-height: 150%;
padding: 0px 0px 0px 1px;
margin: 0px 0px 0px 15px;
Job done.
Thanks Dave.
Comment
-
Dave & Lee,
Excellent job! It was the same problem, and now the sitemap looks much improved.
Sorry about the user name, this is my childhood obsession with Trumpton resurfacing. In the end I had to resort to having kids in order to cover up this addiction. Some say that 'Clapton is god' but I reckon Gordon Murray must come pretty close, after all he created a whole shire!
Thanks again for a job well done.
Comment
-
Originally posted by Chippy Minton, this is my childhood obsession with Trumpton resurfacing.
Weekdays...8.15pm, Nick Jr Classics...
Compulsory viewing!!
Back on topic...would somebody mind explaining, in step by step English, what I should be editting with that code of Norman's, pretty please?
I read the post...but it's all *whoosh* over my headTracey
Comment
-
Tracey,
Give this a try. Do a snapshot first!!!!!!!!!!!!!!!!!!!!!!!!!!
1.Bring up your sitemap in the design tab (actual layout name Site Map Section Link) then navigate up from that layout (using the yellow up (parent) icon) till you get to Site Map Section List layout.
2. Click on 'Click here to edit list layout settings
3. In the Start of List box enter:-
Code:<actinic:block php="true">$lastlevel = 1;</actinic:block> <ul>
Code:</ul>
6. Go back to the Sitemap Section Link layout
7. Replace all the code in this layout with:-
Code:<actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e" > <actinic:block php="true"> error_reporting(0); $thislevel = <actinic:variable name="SectionLevel" encoding="perl" selectable="false"/>; if ( $thislevel > $lastlevel ) { while ( $lastlevel < $thislevel ) { echo "<ul>"; $lastlevel++; } } else if ( $thislevel < $lastlevel ) { while ( $lastlevel > $thislevel ) { echo "</ul>"; $lastlevel--; } } </actinic:block><li><a href='<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>'><Actinic:Variable Name="SectionName"></a></li></actinic:block>
8. If you have problems like Lee with spaces inbetween certain sections go to the Actinic Stylesheet and change:-
Code:ul{ line-height: 150%; padding: 0px 0px 0px 1px; margin: 0px 0px 18px 15px;
Code:ul{ line-height: 150%; padding: 0px 0px 0px 1px; margin: 0px 0px 0px 15px;
Hopefully that should be you. Post back if it doesn't work!
Comment
-
Thanks David
Looks much better....however..I do have a gap..but I don't have the same in my actinic.css to edit
I've looked through and can't see where in the css the gap could be coming from...can you see where I need to change it?
Sorry to be a pain
Thanks
ETS...site map is HERE
dur...sorry lolTracey
Comment
Comment