PDA

View Full Version : Site root for embedded HTML .....


simonwar
06-Oct-2005, 09:18 AM
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,

!!<
<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.

Mike Hughes
06-Oct-2005, 10:11 AM
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

simonwar
09-Oct-2005, 05:29 PM
Hi Mike,

So i should eventually hard code like this;

!!<
<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?

jont
09-Oct-2005, 05:41 PM
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:


<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:


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

simonwar
09-Oct-2005, 07:06 PM
Cheers, got it.

Duncan Rounding
10-Oct-2005, 05:43 AM
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

simonwar
10-Oct-2005, 07:37 AM
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.

Duncan Rounding
10-Oct-2005, 08:00 AM
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

jont
10-Oct-2005, 09:34 AM
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

Duncan Rounding
10-Oct-2005, 09:50 AM
Thanks Jont.

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

Cheers.

Duncan

Duncan Rounding
10-Oct-2005, 11:36 AM
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

Duncan Rounding
10-Oct-2005, 12:25 PM
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