PDA

View Full Version : My CUSTOMVAR Link is not working ...


simonwar
21-Oct-2005, 09:47 AM
Hi,

I want to have a CUSTOM image complete with text that Links to a page, so i created;

CUSTOMVAR:AD1IMAGE > Text > path to my image.
CUSTOMVAR:AD1TEXT > Text > "the text"
CUSTOMVAR:AD1LINK > Text > path for the link.

I modified my primary template as follows:
<td><div align="center"><a href="CUSTOMVAR:AD1LINK"><img src="CUSTOMVAR:AD1IMAGE" border="0"></a></div></td> but this does not work or even show that a link exists, (looking at the status bar in browser when i roll-over the image or test).

What am i doing wrong ?

Simon.

jont
21-Oct-2005, 09:49 AM
What does the generated code show?

jont
21-Oct-2005, 10:00 AM
Just added the following :


<a href="CUSTOMVAR:LINK"><img src="CUSTOMVAR:IMAGE" border="0"></a>


added the CMV to the list and against each property put

link - http://www.site.com/index.htm - use as CMV ticked
image - logo.gif - use as CMV and file name ticked

the image is in the root of the site. It previewd OK and the link worked

simonwar
21-Oct-2005, 10:26 AM
Its working now but as you mention, relative to the root.

But, how do i test the link if all my pages are in PreviewHTML, but the link is to the root ?

Simon.

jont
21-Oct-2005, 10:37 AM
You will either have to add the full URL ie http://www.etc or trust in your coding :rolleyes:

If your site is live try publishing just the one product with the new CMV and check the links are working

simonwar
21-Oct-2005, 11:24 AM
The links are to Sections within the site.
Perhaps there is a better way of doing this ? (I know about Fragments).

So I'll initially enter \PreviewHTML\thepage.html into the Value section of the properties tab and modify it just before release.

Cheers, Simon.

jont
21-Oct-2005, 12:00 PM
If you have a lot of these CMV's then export the file to excel and remove or concatanate the links accordingly - save you a lot of time and you won't miss any

simonwar
21-Oct-2005, 12:01 PM
Got to go out but would like to know more about the linking to a spreadsheet and importing the data.

Is there any decent literature around, or can you summise it ?

Cheers, Simon.