Announcement

Collapse
No announcement yet.

Same Level Section Links in Product Layout

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

    Same Level Section Links in Product Layout

    The title isn't great, but it's difficult to convey what I'd like to achieve in one line.

    A few weeks ago I helped Simon, the guy who some of you thought was spamming the forum LOL.

    He was manually entering links to other items within the same Parent Section into his Product Layout. Which apart from being time consuming and labour intensive it became out of date very quickly when new items were listed.

    We worked out some code that code be put in the product layouts and using a couple of variables it produced a list of sections (SPP):

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ShowTTLinks%22%20%2f%3e%20%3d%3d%20true">
    <actinic:block type="EntireSectionList" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22Indoor%20List%22%20%2f%3e%20%3d%3d%20true" >
     <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>" target="_self"><actinic:variable name='SectionName'/></a>
      
    </actinic:block>
    </actinic:block>
    </actinic:block>
    The only downside to this code is that a new CV has to be created and set for each section.

    I've been playing around with a blockif/variable combination that would only produce a list of sections that are all in the same parent section, but can't do it.

    Does anyone have any thoughts, or perhaps you've already done it using a similar or completely different method.

    I've searched the forum/KB and AUG because I'm sure this would have come up before, but don't think I'm using the correct search terms because the articles I find aren't relevant.

    It's not rush job, don't even know if I'm going to use it, but it's been niggling at me for a few weeks and I'd like to take it, sorry put it to bed

    If it's still unclear as to what I want let me know.

    Army Gore-tex
    Winter Climbing Mitts
    webD's Blog: Website design, SEO and other ramblings…
    Twitter LinkedIN

    If you think a post is good, rate it!

    Find the answers in the Knowledge Base | Have you read the User Guides


    #2
    Hi Rich,

    Does this thread help with what you are trying to achieve?
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Hey Tracey thanks for picking this up and the link.

      I'll have another few reads of that post and a little play later.

      I only want to show sections within the same parent section that could be 3/4 section levels deep, so from what I read I'd have to give each section a number, which would take some time on an established site. Also keeping track of what numbers have been used on large sites could cause issues.

      I think the fact I want this to work on a SPP Products is causing the difficulty, but I'll keep plugging away.

      Thanks again,

      Rich

      Army Gore-tex
      Winter Climbing Mitts
      webD's Blog: Website design, SEO and other ramblings…
      Twitter LinkedIN

      If you think a post is good, rate it!

      Find the answers in the Knowledge Base | Have you read the User Guides

      Comment

      Working...
      X