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:

  1. View Listing Link
  2. Image links to see all the images for that listing
  3. Title of the image

There are three places that offer links to images:

  1. Feature Listing Block
  2. Feature Listing Page
  3. Listing

Feature Listing Block

  1. View Listing Link – not displayed
  2. Image links to see all the images for that listing – not displayed
  3. Title of the image – not displayed

Featured Listing PAGE

  1. View Listing Link –displayed – great! 
  2. Image links to see all the images for that listing – not displayed, it does show a image 1 of 1, but does not show links to other images in the listing. 
  3. Title of the image –  displayed – great! 

View Listing Page works great! 

  1. Contains the "View Listing" link
  2. Contains the title
  3. Contains a link to other images for this listing

Comments

MtRoxx’s picture

Feature 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
Only local images are allowed.

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

Only local images are allowed.

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

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 199796)