Announcement

Collapse
No announcement yet.

Custom Section List With Sub Sections

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

    #31
    Lee's method given in post 13 on that thread works a treat and I recently used something similar to split a brochure list and a section list into 2 lists each on a site.
    Tracey

    Comment


      #32
      Great, had a good read through that (a few times!) and I am encouraged, if still slightly confused.

      Conceptually I think I have a handle on Lee's method (very smart it is too), however, I have a few specific querstions...

      1. where are the variables for each section actually set?
      2. Once I set a specific variable for each section, how do I amend the code below so that it only shows a specific variable? Do I change the section marked in red below (this is the code I am using for the side section presently...)

      Code:
       "<ul id="sectionListSide">
      <actinic:block type="EntireSectionList">
      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%21%3d%20%22%22%29"></li></actinic:block>
      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%3d%3d%20%22%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%202%29" ><ul></actinic:block>
      <li<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionID%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainSection%3a%3aSectionID%22%20%2f%3e"> id="currentPage"</actinic:block>><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a>
      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e%20%3d%3d%20%22%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%202%29" ></li></ul></actinic:block>
      <actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22ListCount%22%20%2f%3e"></li></actinic:block>
      </actinic:block>
      </ul>"

      Comment


        #33
        is it just me, or does this just not work how its supposed to?

        missing an ul at the bottom of the structure?

        empty li/a at the top?

        i'm perhaps doing something very wrong?

        Comment


          #34
          I don't think you are doing anything wrong. I've never managed to get this to work either. I'm sure it will work with PHP, but it doesn't work with standard Actinic conditions (well, it does, but it doesn't product 100% w3c-valid HTML).

          I was trying to get a nice hierarchical bulleted list to improve the look of the sitemap in Actinic (which isn't as good as it could be). In the end I just did the following for the site map section links...
          Code:
             <li style="margin-left: <actinic:variable name="SectionLevel" />em;">
             <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>
          To translate, I just added an indent to each item in the bulleted list that indented each bullet by X ems (where X is the SectionLevel of the section). Crude, but it looks nice.

          Comment


            #35
            Ah, this old chestnut is still causing problems, I see... it's been so long since I visited this issue. I seem to remember getting it to work but only with 2 layers of sections. I've since found (read: fudged) another way around what I was originally trying to achieve so I didn't pursue it further. Maybe it would be a good idea to delete this thread? Or I could stick a warning on the first post? It seems to be a dilly of a pickle(!)
            Mark

            Comment


              #36
              i'v got a better idea.

              why dont you post your code?

              Comment


                #37
                haha, I did think about posting my code... I even wrote a tutorial because it isn't just code but then I saw all the confusion I created with this thread so it put me off some what. But, if you like you can have a gander at my work in progress site... I'd like to emphasise WORK IN PROGRESS, I know it looks like... poo. Anyway, you can still see it working on my old trial space HERE. If you click on "Blum CLIP" it will go into the section, show you it's siblings followed by another menu containing it's children, on the left (Does that make sense? I've confused myself!). If you think that kind of thing is useful, I'll post my tutorial. It's all done within Actinic and doesn't use any javascript, which is nice.
                Mark

                Comment


                  #38
                  i stoleded your code for help in a tutorial, hope you dont mind.

                  i'm evolving, into the block ninja.

                  Comment


                    #39
                    I know you linked back to this thread, I was actually checking out your tutorials, no worries at all, thanks for the link back! If it really is that helpful to anyone, that's why I put it out there. I just went about it in the wrong way, I think.
                    Mark

                    Comment


                      #40
                      Nested fly out menu

                      Hello

                      Well i have struggled all day to try and jam Chris' nested list code into a style sheet to get a fly out menu.

                      Some hours ago it looked like I had it. Then I added another section and it all went wrong. Still this does look like a useful link:

                      http://http://www.cssplay.co.uk/menus/flyoutt.html

                      I really wanted a lovely flyout menu. I have hard coded the links till I find one, but no doubt this will all fall over when I go live.

                      I was hoping to find an add on to do flyouts in Actinic v9, but cant find any?? Does anyone know of a nested section, sub section flyout menu that works with Actinic 9. I'm sure someone must have made one?

                      Angel

                      Comment


                        #41
                        have you tried Drillpine.biz?
                        Perhaps the Norlist menu could work for you?
                        Tracey

                        Comment


                          #42
                          Hello Tracy

                          I downloaded the drillpine.biz norlist software, but it came up with an error about not recognising my catalog and then a number. I have actinic v9 which might be a problem.

                          I have hard coded the sections in, but I am not sure this will work when I go live as Actinic puts a "P_" infront of the links.

                          I am sure someone must have one that works on v9 somewhere. I am just getting on with the rest of the site whilst I keep looking.

                          Angel

                          Comment


                            #43
                            You don't download it, you buy it off him normally, he emails it to you (once paid for) and then gives you concise instructions on how to add it.

                            Comment


                              #44
                              Really?

                              I have it running on my PC (See attachments). I'll have another look at the site and see how to get a version for Actinic 9.

                              Thank you.

                              Angel

                              ---------------------------

                              Just found what I need on the drillpine site. thank you!!
                              Attached Files
                              Last edited by Angel_Hart; 26-May-2008, 02:20 PM. Reason: update

                              Comment


                                #45
                                I have no idea what that is, but you were recommended to look at 'NorList' not 'NorTree'.

                                Comment

                                Working...
                                X