Announcement

Collapse
No announcement yet.

Knowledge Base Solution - Sections visible to customer groups

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

    Knowledge Base Solution - Sections visible to customer groups

    hello,

    Looking for some help with this, I have checked the forum about the knowledge base solution but there was no definite answer given.

    I have used the AUG that shows certain sections to be visable to specific customer accounts and i have this working well on my website. However, the code only lets a text link appear, there is no image etc.......does anyone have any advice on this? I have tried adding the img src code in but i cant seem to get this to work? I would like to have all of the information, image, text link etc like i have it for the rest of the website.

    Thanks for your time,

    Elaine

    #2
    Hi,

    I got it to work ok. The problem may be down to double quote marks (") in the HTML. For example, if you use:

    Code:
    <img src="imagename.jpg">
    Then you should remove the quotes surrounding the image name as they are terminating the string too early, so it looks like:

    Code:
    <img src=imagename.jpg>
    I used the following which is based on the 'CSS Section Link Layout':

    Code:
    <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="<div class=product_list>
    			<div class=image_product><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><img alt=<actinic:variable name="SectionName" encoding="strip"/> src=<actinic:variable Name="SectionImageFileName"/> border=0 /></a></div>
    			<div><h3 class=product><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></h3></div>
    			<p><actinic:variable name='SectionDescription'/></p>
    		</div> "/>
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Hi Tracey,

      Thank you for the reply, i have tried your code which works well, however this still changes the section links. I want these to be the same across the website regardless of being logged in or not.

      I am currently using Image above Section Link this is my code:

      Code:
      <table cellpadding="0" cellspacing="0" border="0">
      
          <tr> 
      
            <td align="center" width="180px" cellpadding="0" cellspacing="0" border="0">
      
             <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"> <img alt="<actinic:variable encoding="strip" name="SectionName" />" src="<actinic:variable name="SectionImageFileName" />" border="0"/></a><div class="section_css"><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 formatting="font(Color|ffffff)" name="SectionName" /></a></div><br />
      
               <actinic:variable name="SectionDescription" />
      
            </td>
      
         </tr>
      
      </table>
      Actinic stylesheet looks like this:

      .section_css {
      margin: 0px;
      padding: 3px 0px 3px 0px;
      line-height:normal;
      background-color: #B9C9EF;
      background-image: url("section_image.gif");
      background-repeat: no-repeat;
      width; 180px
      color: white;
      font-weight: 900;
      font-size: 93%;
      }

      Could you possibly tell me what it is im missing??!

      Thanks,

      Elaine

      Comment


        #4
        Hi,

        Could you possibly tell me what it is im missing??!
        Your code works for me. The sections look the same whether logged in or not but obviously when not logged in the section that I'm only allowing for logged in customers doesn't show. They look the same in every other way though.

        Maybe if you supply a url and test login details I can see what is happening.
        ********************
        Tracey
        SellerDeck

        Comment

        Working...
        X