[ic] Problems with getting scratch value into area tag
Robert Anderson
interchange-users@icdevgroup.org
Sun Mar 9 02:37:00 2003
This is my problem. I am trying to set a scratch variable in a page and
get the value of this variable into a area tag.
I'm setting some variables with
Page 1
[tmp bc_1_title]Locations[/tmp]
[tmp bc_1_area]locations[/tmp]
Page 2
[tmp bc_1_title]Locations[/tmp]
[tmp bc_1_area]locations[/tmp]
[tmp bc_2_title]Blenheim[/tmp]
[tmp bc_2_area]blenheim[/tmp]
And in my template I have
<a href="[perl]
$Tag->area( { href => scratch($bc_1_area) } );
[/perl]" class="nav3_item"><b>[scratch bc_1_title]</b></a> »
[if scratch bc_2_title]
<a href="[perl]
$Tag->area( { href => scratch($bc_2_area) } );
[/perl]" class="nav3_item"><b>[scratch bc_2_title]</b></a> »
[/if]
I also tried something like this with no luck.
<a href="[area scratch bc_1_area]" class="nav3_item"><b>[scratch
bc_1_title]</b></a> »
[if scratch bc_2_title]
<a href="[area scratch bc_2_area]" class="nav3_item"><b>[scratch
bc_2_title]</b></a> »
[/if]
Could someone please advise me the correct my I can get the value of a
vaiable into a [area] tag
ting
--
Robert Anderson
Managing Director
Ecommerce Magic Ltd
http://www.ecommerce-magic.com
+64 21 808 525