Announcement

Collapse
No announcement yet.

V8 Sitemap Format

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Yes. Follow the link on Normans post above!
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    Comment


      #17
      When i have used that, it always comes up with this error actually within the sitemap:

      Notice: Undefined variable: lastlevel in main on line 3 Notice: Undefined variable: lastlevel in main on line 5
      Notice: Undefined variable: lastlevel in main on line 8

      Comment


        #18
        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>
        Note the 'error_reporting(0);' after opening the PHP 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!
        Cheers

        David
        Located in Edinburgh UK

        http://twitter.com/mcfinster

        Comment


          #19
          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


            #20
            Well I think the real credit goes to DJ Normski who is slowly spinning the decks of Actinic salvation!
            Cheers

            David
            Located in Edinburgh UK

            http://twitter.com/mcfinster

            Comment


              #21
              Nice one Dave, that's solved most of the problems with the solution. Any ideas on removing the space below 3rd level sections? Go on you know you can do it. We should then have a full nice looking uniform sitemap at last.

              Comment


                #22
                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


                  #23
                  Lee,

                  Have a wee poke around your Actinic CSS file for ul formatting and I am sure you will see the problem!!!
                  Cheers

                  David
                  Located in Edinburgh UK

                  http://twitter.com/mcfinster

                  Comment


                    #24
                    Robert (excellent user name by the way),

                    Looks like you have the same problem as Lee but need to see your code before I can confirm, have you got a link you can point us too?
                    Cheers

                    David
                    Located in Edinburgh UK

                    http://twitter.com/mcfinster

                    Comment


                      #25
                      Originally posted by dave_finlayson
                      Lee,

                      Have a wee poke around your Actinic CSS file for ul formatting and I am sure you will see the problem!!!
                      Sigh, and i nearly got someone to do something for me without having to think.

                      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


                        #26
                        hehe, I figured you would be up for a wee challenge Lee!
                        Cheers

                        David
                        Located in Edinburgh UK

                        http://twitter.com/mcfinster

                        Comment


                          #27
                          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


                            #28
                            Originally posted by Chippy Minton
                            , this is my childhood obsession with Trumpton resurfacing.
                            ahhh Trumpton
                            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 head
                            Tracey

                            Comment


                              #29
                              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>
                              4. In the End of List box eter:-

                              Code:
                              </ul>
                              5. Click ok
                              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>
                              NOTE: Only use 'error_reporting(0)' if you experience errors like 'undefined variables' AND you are sure it is displaying all your sections properly

                              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;
                              to:-

                              Code:
                               ul{
                              line-height: 150%;
                              padding: 0px 0px 0px 1px;
                              margin: 0px 0px 0px 15px;
                              9. Apply changes and upload

                              Hopefully that should be you. Post back if it doesn't work!
                              Cheers

                              David
                              Located in Edinburgh UK

                              http://twitter.com/mcfinster

                              Comment


                                #30
                                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 lol
                                Tracey

                                Comment

                                Working...
                                X