Active
Project:
Lost & found issues
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2008 at 14:56 UTC
Updated:
9 Aug 2008 at 16:59 UTC
Jump to comment: Most recent
Challenge: Currently thickbox picture links contain a variety of the three pieces of information that should be there all the time. There are three pieces of information I'm tracking in a thickbox image:
There are three places that offer links to images:
Feature Listing Block
Featured Listing PAGE
View Listing Page – works great!
Comments
Comment #1
MtRoxx commentedFeature Listing Block
Edited the function _listing_featured_blk()
Updated the thickbox to include a title tag which is the link to the full listing node.
The goal of the our featured listing is just a 'teaser' not the full node.
Keeping that thought in mind, we added a link to the full listing.
This is the original line to the link for the featured listing tn

We created a full_listing_link tag which contains the link to the full node
Ran it through Drupal's check_plain, which allows us to add a link to the thickbox.
Added the title tag in the link and it displays the link in the thickbox
ACTUAL CODE:
$full_listing_link = check_plain(l(t('Explore Listing'), "node/$node_id"));
$RECS .= "
<div id=\"listing_featured_blk\"><span class='title'>$listing_link</span><br />
<a class=\"thickbox\" href=\"".$listing_array['filepath']."\" title=\"$full_listing_link\"><img src=\"".$listing_array['thumbpath']."\" style=\"float:right;\"></a><strong>$money_symbol".$listing_array['price']."</strong><br />
<div class='data'>Beds:".$listing_array['bedroom']."
Baths:".$listing_array['bathroom_full']."</div>
".$listing_array['address']." ".$listing_array['city_name']."
$map_link</div>
";
We hope this helps others and thank you to the author of the rlisting module.
Developing Wings, Inc.
Mt_Roxx