Announcement

Collapse
No announcement yet.

Links

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

    Links

    Could anyone tell me the best way to edit the 'links' layout within a product page?

    I want to be able to change the colour of the text and also include an image to show that the link is a pdf file.

    Also it would be good to create it as an external link.

    Thanks

    Olly

    #2
    Hi Olly,

    The link comes from the 'Design | Text' menu. For the 'Simple Link', click on the 'Go To' button at the bottom left corner of the window and type -1 in the 'Phase' field (default) and 1191 in the 'ID field' and click 'OK'. This will take you to a prompt that shows:

    <A HREF="%s">

    To change the colour of the text you could create a style in the style sheet and apply it to this tag, ie:

    <A CLASS="mystyle" HREF="%s">

    For the Advanced Links the following prompts are used:

    ID 2056 - for the product link
    ID 2057 - for the section link
    ID 2058 - for the URL link

    To use an image for the 'Advanced Links' you can simply add the image code into the 'Link Text' field, for example:

    <img src="image.gif" border="0">

    It is not so easy to add in an image for the 'Simple Link' as the prompt in Design | Text is also used for the 'Extended Info' text link. If you are using the same image for all your pdf links then it would be better to hard-code this into a custom product line template used only on products that have a link to a pdf file. To do this:

    1. Open a current 'Product Line' template (Advanced | Template Manager | Section tab (Click 'Change View' if you do not see the tabs) | Product Line button (to open the default product line template)).

    2. Search for NETQUOTEVAR:PRODUCTBEGINLINK and place your image code directly after this to have it included in the link, ie:

    NETQUOTEVAR:PRODUCTBEGINLINK <img src="image.gif" border="0">

    or before it so that the image is not clickable, ie:

    <img src="image.gif" border="0">NETQUOTEVAR:PRODUCTBEGINLINK

    If you want to have a different image for different products then you could use a custom property to set the image.

    3. Save the template with a different name and apply this to the relevant products.

    Also it would be good to create it as an external link.
    I'm sorry but I'm not sure what you mean by this.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Originally posted by Olly
      Also it would be good to create it as an external link.
      Do you mean open in a new window? If so add target="_blank" into the HREF

      For PDF's it is generally good practice to show the file size as part of the link so the user can make a choice as to open at 20mb file or not


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment

      Working...
      X