BWJ
08-26-2008, 08:50 PM
Making custom fields clickable has been a wish for several years. Now I noticed this thread: http://www.vbadvanced.com/forum/showthread.php?t=24734
The following code has been tried within: adv_links_linkbit_custombits template
I have tried numerous times with numerous methods.
Lets say we have custom field group animals with id = 25
Lets say I would like to search MONKEY
1)
The following works:
<div class="smallfont" style="padding-top: $stylevar[cellpadding]px"><em>$cfield[title]:</em> <a href="search.php?$session[sessionurl]do=searchresults&string=MONKEY&catid=0&quicksearch=1&cfields[]=field25" rel="nofollow">$cfieldvalue</a></div>
2)
Now lets say I would like to make any animal clickable within animals with the $cfieldvalue:
<div class="smallfont" style="padding-top: $stylevar[cellpadding]px"><em>$cfield[title]:</em> <a href="search.php?$session[sessionurl]do=searchresults&string=$CFIELDVALUE&catid=0&quicksearch=1&cfields[]=field25" rel="nofollow">$cfieldvalue</a></div>
This does not work
3)
What I really would like to achieve is naturally that you can click any custom field and get similar links with the same custom field. So I would like to get rid of field25 and have it to work for all link categories.
Any suggestion for this?
The following code has been tried within: adv_links_linkbit_custombits template
I have tried numerous times with numerous methods.
Lets say we have custom field group animals with id = 25
Lets say I would like to search MONKEY
1)
The following works:
<div class="smallfont" style="padding-top: $stylevar[cellpadding]px"><em>$cfield[title]:</em> <a href="search.php?$session[sessionurl]do=searchresults&string=MONKEY&catid=0&quicksearch=1&cfields[]=field25" rel="nofollow">$cfieldvalue</a></div>
2)
Now lets say I would like to make any animal clickable within animals with the $cfieldvalue:
<div class="smallfont" style="padding-top: $stylevar[cellpadding]px"><em>$cfield[title]:</em> <a href="search.php?$session[sessionurl]do=searchresults&string=$CFIELDVALUE&catid=0&quicksearch=1&cfields[]=field25" rel="nofollow">$cfieldvalue</a></div>
This does not work
3)
What I really would like to achieve is naturally that you can click any custom field and get similar links with the same custom field. So I would like to get rid of field25 and have it to work for all link categories.
Any suggestion for this?