Announcement

Collapse
No announcement yet.

Setting Fragment Links to Open in a New Window

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

    Setting Fragment Links to Open in a New Window

    Hi all,

    I am currently in the process of devleoping a new site and am trying to work out how to edit the layout of the fragment link so that it opens in a new window as opposed to opening in the same one.

    I have managed to do this for the fragment image link by adding target="_BLANK" but havent been able to find the code in the design to do this for the link text - where you add [link] in to the product description.

    Does anyone know how i can do this?

    Regards

    Jon
    Jon
    www.designtoplease.co.uk
    www.getmeoutofahole.com
    www.toys4james.co.uk
    Located in Herts

    #2
    !!<<a href="mypage.html" target="_blank">My link text</a>>!!


    try this block of code to make a link in a fragment. instead of the built in [LINK]

    you could also search the site html in design > text. this is where the code is that builds these links (as i recall from somewhere) if anyone can remember the number, then that'd be great, but i cant

    Comment


      #3
      You can make the [LINK] open in it's own window by doing this (with quotation marks exactly as they are!):
      mylinkpage.htm" target="_blank

      Comment


        #4
        You can make the [LINK] open in it's own window by doing this (with quotation marks exactly as they are!):
        mylinkpage.htm" target="_blank
        Would you place this in the url part of the links tab?
        Jon
        www.designtoplease.co.uk
        www.getmeoutofahole.com
        www.toys4james.co.uk
        Located in Herts

        Comment


          #5
          Yes, you may need the full URL such as:
          http://www.mydomain.co.uk/acatalog/mylinkpage.htm" target="_blank

          EDIT: Just realised that I have used this for the simple LINK in the product but not tested for a fragment - but I expect it would also work there.

          Comment


            #6
            Many thanks for that, I will test it out when i get home tonight - do you know if it is also possible to add class=" in this url box?
            Jon
            www.designtoplease.co.uk
            www.getmeoutofahole.com
            www.toys4james.co.uk
            Located in Herts

            Comment


              #7
              If it's something global or something you will use a lot of the time, add the class to the layout instead.

              Comment


                #8
                A query regarding this thread. I have created a duplicate Fragment image layout and wish to have clickable images opening in a new window. I cannot see in the following layout where I can enter the code target="blank".

                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentImageALink%22%20%2f%3e" >
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToURL%22%20%2f%3e" >
                <a href="<actinic:variable name="FragmentLinkedItemID" />">
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToProduct%22%20%2f%3e" >
                <a href="<Actinic:Variable Name="SearchCGIURL"/>?PRODREF=<actinic:variable name="FragmentLinkedItemID" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<Actinic:Variable Name="ShopID"/></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e">&amp;NOLOGIN=1</actinic:block>">
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToSection%22%20%2f%3e" >
                <a href="<Actinic:Variable Name="SearchCGIURL"/>?SECTIONID=<actinic:variable name="FragmentLinkedItemID" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<Actinic:Variable Name="ShopID"/></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e">&amp;NOLOGIN=1</actinic:block>">
                </actinic:block>
                </actinic:block>
                <img src="<actinic:variable name="FragmentImageFileName" />"
                alt="<actinic:variable name="FragmentTitle" />"
                border="0"
                width="<actinic:variable name="FragmentImageWidth" />"
                height="<actinic:variable name="FragmentImageHeight" />"
                />
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentImageALink%22%20%2f%3e" >
                </a>
                </actinic:block>


                Can anyone assist with this?
                Fitness for life!www.fitness-focus.co.uk


                DIFN - Doing nothing is not an option

                The Supplement Warehouse - Bodybuilding & Fitness Supplements

                Comment


                  #9
                  Hi all sorry for a late reply on this but I managed to get this working using Drouding adivised by using th elink format below in the fragment link section:

                  "mylinkpage.htm" target="_blank

                  You can also add styles by adding class= like so

                  "mylinkpage.htm" target="_blank" class="product_section

                  Many thanks for your help with this.

                  Kind Regards

                  Jon
                  Jon
                  www.designtoplease.co.uk
                  www.getmeoutofahole.com
                  www.toys4james.co.uk
                  Located in Herts

                  Comment


                    #10
                    You shouldn't have those leading quotes. Links should be e.g.

                    mylinkpage.htm" target="_blank

                    mylinkpage.htm" target="_blank" class="product_section
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Hi,

                      You shouldn't have those leading quotes. Links should be e.g.
                      Sorry I didnt mean to add the those when I posted (I dont actually have them on my links just added them by accident when posting). Cheers for pointing that out Norman.
                      Jon
                      www.designtoplease.co.uk
                      www.getmeoutofahole.com
                      www.toys4james.co.uk
                      Located in Herts

                      Comment


                        #12
                        Hi,

                        I just upgraded to v8.5.1 from v8 and although I thought the upgrade had gone OK I have just noticed that all my simple links now do not open in a new window. They did before the upgrade.

                        Why was that change made? I only noticed because a customer was having difficulties using the link and then finding she had left my store.

                        What I guess I am asking is if v8 did open simple links in a new window and for some reason someone decided to change that for v8.5.1? Or is there some option I need to change back in order to get things how they were before?

                        Also, my links and my prompts are now showing under my 'more info' button, which looks rather silly and makes them easy to miss. Before the upgrade the links and prompts were located after any product options and before product description, which was much better. Does anyone know how I move them back please?

                        Thanks in advance for any help.

                        Jenny

                        Comment


                          #13
                          Jenny,

                          Have you managed to sort this issue out as yet? You may need to check your product layout to see if you are using the correct one. The parent value can be set at 'Settings | Site Options | Layouts'.

                          Kind regards,
                          Bruce King
                          SellerDeck

                          Comment


                            #14
                            Thanks for replying.

                            I was in a bit of a hurry to solve it so I did the only thing I could think to do... I removed all the Actinic designed links, vowed never to reply on those options ever again and made my own links, including the 'blank' phrase of course.

                            So a sort of solution

                            Comment


                              #15
                              Setting an image to link into a new window to an external website

                              Hi, I have read all the posts here and still cant get my head around how to do it. I have added the html so that a text link will open into a new window but the I have some Images that I need an external link adding but fore it to open into a new window not the same one as I will loose the customer.

                              So as there is no text the text field will be empty and in the URL field what do I put in here to make it open into a new window?

                              The website it needs to direct to is www.dermalogica.com/uk/

                              Would anybody be able to help with this one please??

                              www.beautythings.co.uk

                              Comment

                              Working...
                              X