Announcement

Collapse
No announcement yet.

Product/Section Names as Captions in BX Slider

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

    Product/Section Names as Captions in BX Slider

    If you are using your BX slider to link to products and/or sections you can show the product or section name by changing the caption layout slightly.

    Remove the BlockIf from around the carousel-caption div, then edit that div layout.

    Code:
     <div class="carousel-caption">
    <a href="<actinic:variable name="ItemLink" selectable="false" />"><h3><actinic:variable name="SectionName"/> <actinic:variable name="ProductName" /></h3></a>
    </div>
    It works really well as the caption draws on the target for the title.

    The only issue is that Sellerdeck flags the variable name="SectionName" as an error:

    Click image for larger version

Name:	sectionerrorsple.jpg
Views:	138
Size:	30.5 KB
ID:	554794

    Putting an 'Is Page Type Section' blockif doesn't work as the home page is not a section page!

    How may I show the Section Name in the Promotional List Entry Layout without triggering an error?

    Thank you!
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    There's a variable ItemType that is 0 for a Product type link and 1 for a Section type link.
    Use that to only display each Product / Section name where appropriate:
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ItemType%22%20%2f%3e%20%3d%3d%200" ><actinic:variable name="ProductName" /></actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ItemType%22%20%2f%3e%20%3d%3d%201" ><actinic:variable name="SectionName"/></actinic:block>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Amazing - thank you so much Norman
      Jonathan Chappell
      Website Designer
      SellerDeck Website Designer
      Actinic to SellerDeck upgrades
      Graphicz Limited - www.graphicz.co.uk

      Comment

      Working...
      X