Forums: [SOLVED] Adding a Hyperlink to a {$value} - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

[SOLVED] Adding a Hyperlink to a {$value} Has something changed w/ v 5.2? Rate Topic: -----

#1 User is offline   powersitedesign 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 62
  • Joined: 13-October 06
  • Gender:Male
  • Location:Arkansas

Posted 09 April 2010 - 06:35 PM

I used to be able to go into my list pages and add custom URL's that would pull up search results from another table using the {$value} as the search term but for some reason I am unable to make this happen and I have been going back and forth over it for 2 days now. Here's what I am working on:

ARCB - List of State Associations
ARCB - Search Results for "Arkansas" - (this is what I want the link to go out to)

Here's the source code from inside my smarty template:

{BEGIN school_association_state_fieldcolumn}<TR>
          <TD style="WIDTH: 30%" class=shade></TD>
          <TD align=left><a href="http://www.arcb.net/arcb-database/state_associations_list.php?ctlSearchFor={$school_association_state_value}&simpleSrchTypeComboNot=&a=integrated&id=1&criteria=and">{$school_association_state_value}</a> 
          </TD></TR>{END school_association_state_fieldcolumn}


But as you can tell it's not working for me. I know that this is possible because the site used to do this before I went in to make some other updates. I even tried to add a hyperlink to this but didn't know where to put the long URL path in at? I also looked at custom but didn't know what that would look like either... Can someone help me out?

Posted Image

This is probably something simple that I am forgetting, I have gotten real rusty w/ my PHPR skills.
Thanks for your help in advance!!!
0

#2 User is offline   powersitedesign 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 62
  • Joined: 13-October 06
  • Gender:Male
  • Location:Arkansas

Posted 09 April 2010 - 08:47 PM

Also, here's another example of what I am trying to accomplish (that is actually working). Something has happened however now w/ the search feature I guess that has stopped that sort of linking w/ a {$value} in the URL??
0

#3 User is offline   powersitedesign 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 62
  • Joined: 13-October 06
  • Gender:Male
  • Location:Arkansas

Posted 10 April 2010 - 07:35 AM

Just an update, it's 2:30am and I have been looking at how to maybe fix this using Custom Selection in the Visual Editor, I dropped this snippet in but it wouldn't work for me either, but I think I might have been close...

global $data;
$value = "<a target=_blank href=\"http://www.arcb.net/arcb-database/state_associations_list.php?ctlSearchFor=".$data["school_association_state"]." ".$data["&simpleSrchTypeComboNot=&a=integrated&id=1&criteria=and"]." \">ALSO NEED TO CALL SCHOOL_ASSOCIATION_STATE_VALUE HERE!</a>";

0

#4 User is offline   powersitedesign 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 62
  • Joined: 13-October 06
  • Gender:Male
  • Location:Arkansas

Posted 10 April 2010 - 11:35 AM

I was finally able to accomplish what I was wanting to do but had to go about it in a lot different way than I was used to. Here's what I had to do...
I had to use the Visual Editor to locate the {$field_value} and then set it up as a hyperlink w/ the prefix being:

state_associations_list.php?a=search&value=1&SearchOption=Equals&SearchFor=


I also selected that particular value in the drop down at the bottom of your options screen. Everything seems to be working now but I was curious as to why all of a sudden this technique changed? Thanks for your help in advance...
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users