Announcement

Collapse
No announcement yet.

Site root for embedded HTML .....

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

    Site root for embedded HTML .....

    I am using the ability to type HTML into description boxes in Actinic using the !!< >!! tags.

    What i noticed was that a link in Actinic always has

    file:///C:/ etc etc /Site1/PreviewHTML/afile.html

    So when i placed some HTML links in tags i typed,

    HTML Code:
    !!<
    <table width="100%" border="0" align="right" cellpadding="0" cellspacing="1">
      <tr> 
        <td><div align="right"><font color="#0066FF" size="1" face="Arial, Helvetica, sans-serif"><a href="../PreviewHTML/EYE_PROTECTION.html">Eye 
            Protection signs</a></font></div></td>
      </tr>
      <tr> 
        <td><div align="right"><font color="#0066FF" size="1" face="Arial, Helvetica, sans-serif"><a href="../PreviewHTML/Mandatory.html">Mandatory 
            signs</a></font></div></td>
      </tr>
      <tr> 
        <td><div align="right"><font color="#0066FF" size="1" face="Arial, Helvetica, sans-serif"><a href="../PreviewHTML/Pick__n__Mix.html">Pick 
            'n' Mix</a></font></div></td>
      </tr>
    </table>
    >!!
    But what happens when I generate my site ?

    I assume, and only assume, that the links will no longer have /PreviewHTML/ in the path ?

    If this is so i will need to change my above code ?

    Any advice, Simon.

    P.S. I tried just "../afile.html" and it didn't work when doing an offline preview.
    esafetysigns.co.uk
    your instant download portal for self printable health and safety signs and posters
    ... download once use as many times as you like !


    http://www.esafetysigns.co.uk/index.html
    http://www.esafetysigns.co.uk/acatalog/index.html

    #2
    When previewing, actinic substitutes a local reference for links it generates so that it will work in preview mode. When uploading to the website, actinic then changes those links to the coorect reference for the website.

    If you hand code a link, then you are responsible for putting in the correct link path. If you want it to work on the website then you need to use the website reference (i.e. http://www.domainname.com/acatalog/pagename.html).

    Actinic doesn't know about and won't change any links you hard code.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Hi Mike,

      So i should eventually hard code like this;

      HTML Code:
      !!<
      <table width="100%" border="0" align="right" cellpadding="0" cellspacing="1">
        <tr> 
          <td><div align="right"><font color="#0066FF" size="1" face="Arial, Helvetica, sans-serif"><a href="../acatalog/EYE_PROTECTION.html">Eye 
              Protection signs</a></font></div></td>
        </tr>
        <tr> 
          <td><div align="right"><font color="#0066FF" size="1" face="Arial, Helvetica, sans-serif"><a href="../acatalog/Mandatory.html">Mandatory 
              signs</a></font></div></td>
        </tr>
        <tr> 
          <td><div align="right"><font color="#0066FF" size="1" face="Arial, Helvetica, sans-serif"><a href="../acatalog/Pick__n__Mix.html">Pick 
              'n' Mix</a></font></div></td>
        </tr>
      </table>
      >!!
      Simon?
      esafetysigns.co.uk
      your instant download portal for self printable health and safety signs and posters
      ... download once use as many times as you like !


      http://www.esafetysigns.co.uk/index.html
      http://www.esafetysigns.co.uk/acatalog/index.html

      Comment


        #4
        If you are typing the above into the description boxes under Actinic then you will already be in the acatalog folder when the site is published so you will only need the page name eg:

        Code:
        <a href="EYE_PROTECTION.html">
        This won't work in preview mode though as the path is wrong - you need to put the whole path to check it works in preview mode as Mike pointed out above eg:

        Code:
        <a href="http://www.site.com/acatalog/EYE_PROTECTION.html">


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Cheers, got it.
          esafetysigns.co.uk
          your instant download portal for self printable health and safety signs and posters
          ... download once use as many times as you like !


          http://www.esafetysigns.co.uk/index.html
          http://www.esafetysigns.co.uk/acatalog/index.html

          Comment


            #6
            Related to this.....

            I am configuring Links on product duplicates which display brief details, the link needs to link to the URL for the source product which will have more detailed information. The problem is that I cannot insert a URL that doesn't yet exist. Should I therefore do the same as above and enter the link as a full external URL? Will Actinic change this link to a relative link when it builds the site?

            Duncan
            Last edited by Duncan Rounding; 10-Oct-2005, 05:49 AM. Reason: grammar

            Comment


              #7
              My understanding ....

              Hi Duncan,

              From what Mike and Jont have said;

              a) Link and embedded URL's have to be correct, so if you don't know them how can they be checked.

              You can plan some form of link code, e.g. if you have a Section called MySection.html, which you will know, call the link page MySection_Link1.html, MySection_Link2.html. At least giving you some knowledge and structure to play with later, and not get lost with pages everywhere. If a link, links from more than one section, maybe call it its 'ParentSection'_Link1.html ?

              Not a great explanation but sketch out a family tree style plan of your site and at least encode the pages until your ready with your pre-release html mames.

              Also, bare in mind, that Actinic keeps the original html title for a newly input section, even if you change the name later. It does this for page ranking reasons, as re-titling may upset your ranking, but if its a new site, this doesn't really matter, rename later.

              You asked ...
              Will Actinic change this link to a relative link when it builds the site?
              From what mike says, NO !

              b) /acatalog/, is your root.

              You asked ...
              Should I therefore do the same as above and enter the link as a full external URL?
              Not necessary, from what JonT is saying, remember your root is /acatalog/, so normal root relative path references are fine.

              Hope this helps, Simon.
              Last edited by simonwar; 10-Oct-2005, 07:42 AM. Reason: More clarity ...
              esafetysigns.co.uk
              your instant download portal for self printable health and safety signs and posters
              ... download once use as many times as you like !


              http://www.esafetysigns.co.uk/index.html
              http://www.esafetysigns.co.uk/acatalog/index.html

              Comment


                #8
                Simon - After your edit for clarity...therefore...

                So it seems that to achieve this (below) I will have to hard code as an external URL...

                What I am doing in Actinic is configuring the Links/Simple Link for the product. Actinic will only let me enter an external URL or a local file that exists. What I want is that when the site is live the product Link will link to another Actinic generated product page. (Which of course doesn't exist yet - or at least only in the PreviewHTML directory)

                Duncan
                Last edited by Duncan Rounding; 10-Oct-2005, 08:05 AM. Reason: reference to edit in above post

                Comment


                  #9
                  Hi Duncan - not at an actinic PC at the moment so from memory...

                  If you have created a duplicate which is a cut down simple listing and you want to create a link back to the master product you should use the LINK tab against the master product and then beneath you have the option to link to a product - from the drop down box select the master product - be careful as it can be tricky to spot the difference between the master and the duplicate other than the indentation of the list (something which needs sorting by actinic on a wish list) ... in the link text put something like View Full Details and then in the duplicates description put in [LINK] ... that will then create the link back to the master product for the full details


                  Bikster
                  SellerDeck Designs and Responsive Themes

                  Comment


                    #10
                    Thanks Jont.

                    Thats exactly what I want. I didn't think about an Advanced Link.

                    Cheers.

                    Duncan

                    Comment


                      #11
                      There's still a bit more........

                      I now have my text link top my product - great, but how do I make my duplicates' image clickable to also go to the master product?
                      The box in the Advanced Link next to Link Text is always greyed out.

                      Duncan

                      Comment


                        #12
                        resolved...

                        I found from a previous thread that this is only for fragments (bummer).

                        I guess I'll have to modify my Act_ProductLine template.
                        Can anyone help me how to modify it to make it clickable to the master product please?????

                        Duncan
                        Last edited by Duncan Rounding; 10-Oct-2005, 12:30 PM. Reason: more info

                        Comment

                        Working...
                        X