Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tried seeing if there was a way to do this through views, but it looks like anything like the links displayed on a node aren't available as a field with my setup. I was wondering if there's a way to incorporate support for the Flag module with lightbox2?
Comments
Comment #1
JFreed CreditAttribution: JFreed commentedsubcribing
Comment #2
JFreed CreditAttribution: JFreed commentedFound this http://drupal.org/node/474454
I havent tried the patch yet but should allow the inclusion of most views fields.
edit -- I miss understood the aim of this patch and is not relevant to this discussion.
Comment #3
JFreed CreditAttribution: JFreed commentedHello
Ive been trying to get this to work for a while now and have got pretty close by passing the flag link in to the caption var. However the flag link which looks like so
<a class="flag flag-action flag-link-toggle flag-processed" title="" href="/flag/flag/ph_bookms/698?destination=looks_main&token=3ba289210730b9f98f5fb74dfea4d27d">add to lightbox</a>
is full of nasty characters which break the caption var and cause it to return blank. Is there a way to pass this kind of string into the light box caption or similar var with out breaking it or is this just doomed to failure?
Cheers
J
Comment #4
theamoeba CreditAttribution: theamoeba commentedRather use the l() - http://api.drupal.org/api/function/l/6 - or url() - http://api.drupal.org/api/function/url/6 - functions.