Announcement

Collapse
No announcement yet.

Help with Html

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

    Help with Html

    Hi

    I am trying to write code to allow fragment text to link to the Section URL. This is what I have written. Can anyone tell me what is wrong?


    !!<<span style='font-size: 13px;'>>!!!!<<strong>>!!!!<<span style='color: #595959;'> <a href="SectionURL"><u> Kids T-Shirt <br> £14.99 <br> <span style='color: #b70a04;'> BUY </u></a> <br></span>>!!!!<</strong>>!!!!<</span> >!!

    Thanks in advance
    Stardust Funky Kids T-Shirts

    #2
    This should really be styled in your stylesheet as a class and applied but here's a nasty way to do it (without the underline):

    Code:
    !!<<span style='font-size: 13px;color: #595959; font-weight:bold;'>
    <a href='<actinic:variable name="SectionURL" />'>Kids T-Shirt<br />£14.99<br /><span style='color: #b70a04;'>BUY</span></a>
    <br /></span> >!!

    Comment


      #3
      Hi

      Thanks for your reply. I have put the code in but the link doesn't seem to work eg http://www.stardustkids.co.uk/acatal..._t_shirts.html. If you click on the link the variable come up in the browser box.
      Stardust Funky Kids T-Shirts

      Comment


        #4
        Try using

        <a href="[SectionURL]">

        instead of the full <actinic:variable ..... /> stuff.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Hi, it still doesn't seem to work.
          Stardust Funky Kids T-Shirts

          Comment


            #6
            Weird. Works for me. However, I'm not clear what you're trying to achieve. If you want the text to link to the same place as the Fragment image, there's probably a better way to go about this.

            It might help if you post the Fragment Layout code that you're using. Post it between [c o d e] and [/c o d e] tags (type them without the spaces) for readability.

            Also explain how you're using the Links capability.

            It may be possible to put your price description into the Link Text field.

            And finally, there are techniques for automating the display of product prices in a Section list. You have a single product per Section and can add some code to the Section Link Layout that displays the price for that Sections product. Thus no manual typing of prices needed and the price updates whenever you change it on the product.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Hi,

              Yes, I would like to link to the same page as the section image. I couldn't get the code tags to work as the coding included lots of weird stuff. Attached is an image showing the code.

              Here is my coding within the fragment:
              !!<<span style='font-size: 13px;color: #595959; font-weight:bold;'> <a href="[SectionURL]">Kids T-Shirt<br />£14.99<br /><span style='color: #b70a04;'>BUY</span></a> <br /></span> <span style='font-size: 10px;color: #595959; font-weight:bold;'> <a href="http://www.stardustkids.co.uk/acatalog/Kids_Clothes.html" >Full Range of Kids Clothes<br /></span>>!!

              I would like to include
              User entered description
              Price
              BUY
              Link to parent section (or user defined location) ideally including fragment/section name

              Thanks for your help on a Sunday!
              Attached Files
              Stardust Funky Kids T-Shirts

              Comment


                #8
                The image you have attached is truncated and I'd have to retype it all from the picture in order to help (which no-one's going to want to do).

                Please post the Fragment Layout code that you're using as text. Post it between [c o d e] and [/c o d e] tags (type them without the spaces) for readability.

                Also don't post any code without naming the Layout it comes from.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Stardust Standard Small Section Layout

                  Code:
                   <actinic:block if="%3cactinic%3avariable%20name%3d%22starHideSection%22%20%2f%3e%20%3d%3d%20%22No%22%20AND%20%3cactinic%3avariable%20name%3d%22starHideSection%22%20%2f%3e%20%21%3d%20%22Yes%22" >
                  <div class="propodwrap">
                   <div class="propod">
                      <h3><actinic:variable name="SectionName" encoding="strip"/></h3>
                      <p class="pimg"><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>" title="<actinic:variable name="SectionName" encoding="strip"/>"><img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" width="160" /></a></p>
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionDescription%22%20%2f%3e%20%21%3d%20%22%22"><p><actinic:variable name="SectionDescription" /></p></actinic:block>
                  </div>
                  </div>
                  </actinic:block>
                  Stardust Funky Kids T-Shirts

                  Comment


                    #10
                    Now confused. Your original post was "write code to allow fragment text to link to the Section URL". So I naturally assume you're talking about a Fragment Layout as that's the only place Fragment Text is displayed. The code you've posted above is for a Section Link Layout.

                    Could you explain what I'm looking at when I look at the page you mentioned - http://www.stardustkids.co.uk/acatal..._t_shirts.html - and is the first item "Cool Kids Shirts" a Fragment or a Section Link?
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Sorry, you are correct. This is a section not fragment. So I wanted the link to go to the same place as the image ie section url.
                      Stardust Funky Kids T-Shirts

                      Comment


                        #12
                        O.K. The amended Section Link Layout below will make both the image and description clickable:
                        Code:
                        <actinic:block if="%3cactinic%3avariable%20name%3d%22starHideSection%22%20%2f%3e%20%3d%3d%20%22No%22%20AND%20%3cactinic%3avariable%20name%3d%22starHideSection%22%20%2f%3e%20%21%3d%20%22Yes%22" >
                        	<div class="propodwrap">
                        		<div class="propod">
                        			<h3><actinic:variable name="SectionName" encoding="strip"/></h3>
                        			<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>" title="<actinic:variable name="SectionName" encoding="strip"/>">
                        				<p class="pimg"><img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" width="160" /></p>
                        				<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionDescription%22%20%2f%3e%20%21%3d%20%22%22"><p><actinic:variable name="SectionDescription" /></p></actinic:block>
                        			</a>
                        		</div>
                        	</div>
                        </actinic:block>
                        If you also want the Section Title to be clickable move the line

                        <a href=".....>

                        to just above the

                        <h3>....</h3>

                        line.

                        Now there's no need to embed any links in the description text.

                        Also see http://community.actinic.com/showthread.php?t=30435 for how to display the Product Price in the Section Links (assuming there's a single product per Section).
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          This works! Thanks for helping me and sorry for confusing you with the fragment reference.
                          Stardust Funky Kids T-Shirts

                          Comment

                          Working...
                          X