Announcement

Collapse
No announcement yet.

Is there a way of uploading a page but hiding it from the navigation?

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

    #16
    Or just create it as usual and use custom nav bars.
    Football Heaven

    For all kinds of football souvenirs and memorabilia.

    Comment


      #17
      I'm getting to it...sheesh! (have only had 2 hours sleep at most (ill 4yo) so aint exactly got the braincells in working order this morning!)

      I need to re-trace my steps and I will post shortly, I promise
      Tracey

      Comment


        #18
        ok...I have a section and subsections HERE
        that I wanted on my live site but hidden

        Obviously it was appearing in the main Maternity section page so I navigated to my "standard subsection list" and INSIDE it (ie around ALL of its contents) put the following blockif

        Code:
        <actinic:variable name="SectionName" /> !="New Maternity Outfits"
        This prevents the section from appearing in the inner layout.

        Then, I had to tackle the collapso menu layout
        I nearly chickened out several times..it's scary in there but after much (nearly 2 hours) trial and error (I'm fearless really LOL) I found something that worked.
        Whether it's wholely correct or not, I don't know. But it
        a) doesn't give me parsing errors (which a lot of things did)
        b) blocks the section "New Maternity Outfits" AND it's subsections which meant using the following blockif
        Code:
        (<actinic:variable name="SectionName" /> !="New Maternity Outfits") AND (<actinic:variable name="SectionName" /> !="Suits and Workwear") AND (<actinic:variable name="SectionName" /> !="Evening Wear") AND (<actinic:variable name="SectionName" /> !="Smart Casual Wear")
        I have placed that blockif around 3 areas in the code to prevent it showing the section name, url and the little square icon in front (I managed to find other ways to block the section name, but it didn't remove the "button" or the + part)

        I wish I had an un-blockif-ed copy of what I editted so I could paste it in here without completely trashing it with the blockif... but basically, the section of the collapso 5 layout that starts

        Code:
        	// show that previous item has sub-section
        	if ( $onlyfinallinks ) $linkhref = '#';
        The following lines WERE (I hope I got this right, I've copied it to notepad and removed the blockif)
        Code:
        $bits[0] = "<img class=\"hsi\" id=\"im_$linklevel" . "_$linkindex\" src=\"c-p.gif\"/>";
        $bits[1] = "<a class=\"hsa$classadjust\" href=\"$linkhref\">$linkname</a>";
        if ( $iconafter ) $bits = array_reverse($bits);
        echo "<li class=\"hsc\"><div>$bits[0]$iconspacer$bits[1]</div>";
        }
        and I have wrapped 3 blockifs around the <img> tag, the <a> tag and the <li> tag which has completely removed the section listing from my collapso menu.

        Now there's a good chance that there's an easier way to do this..but this was what I came up with last night (when, with hindsight, I should have been in bed)
        I'm also sure that this won't work for everyone as the settings for the menu in the "site options" probably dictate where in the collapso layout these blockifs need to be

        Whether it's strictly right or not, I obviously don't know. but I do know that it works...as you can see HERE

        oh..and having it unsearchable was a handy side-effect of not filling in the "size" variable in the section (which won't get filled in anyway for these sections....each associated product will be within the normal size sections of the store so the products will be searchable that way..much as my "Summer Specials" are)

        I hope that made sense. I don't feel particularly coherent this morning.
        If it doesn't make sense anywhere...just yell, I'll attempt to clarify!
        Tracey

        Comment


          #19
          Tracey,

          Nothing to do with your woraround, but thought I might point this out. If you have 'Allow Searching By Sections' selected in 'Settings | Search Settings', then you will find that your sections have an additional checkbox on the General tab, "Include as Selectable Section on Search Page", this is selected by default. Unchecking removes it from the serch results.

          Regards,
          Bruce King
          SellerDeck

          Comment


            #20
            ahh..thanks for that, Bruce
            The reason I use a custom variable rather than "search by section" is because I have wayyyyyyyy too many sections in one dropdown list using the "search by section" feature where I only really want results filtering by size.

            Useful to know though, cheers
            Tracey

            Comment

            Working...
            X