By fatfish on
Hi.
How can I use an image as link using the l() function. I've noticed HTML tags for img (i.e.
) are filtered out.
TNX
Hi.
How can I use an image as link using the l() function. I've noticed HTML tags for img (i.e.
) are filtered out.
TNX
Comments
bbcode maybe try
bbcode maybe
try http://drupal.org/project/bbcode
there is an optional
there is an optional parameter you can pass to tell drupal you are passing html in the link. By default this is set to false.
The l function location
I want to see the coding of this l function, can any one tell me?
Thanks
Elvis Lam
all of the core api is at
all of the core api is at http://api.drupal.org
the link function (4.7) is at http://api.drupal.org/api/4.7/function/l
Try this
..:| Tomer Fish |:..
fatFish - Lean Mean Coding Machine
This works perfectly. FYI:
This works perfectly. FYI: the function definition is on http://api.drupal.org/api/function/l/5.
______________________
Dominik Lukes
http://www.dominiklukes.net
http://www.hermeneuticheretic.net
For Drupal 6
For Drupal 6, this became something like:
Christian Nally - B.C., Canada - http://sticksallison.com
l() with ImageCache and/or Lightbox2
In D6 you can also do this:
Simple:
With ImageCache module:
With ImageCache module and Lightbox2 module:
(formerly anstosser)
DOMAIN anstoss.de FOR SALE
Kasalla Media :: www.kasalla-media.de
image module and l function
Can somebody tell me how to convert in function
l($text,'node/'.$node->nid, array('html'=>TRUE));$node->nid to original picture location?
I use image module and there is something like:
l(image_display($image, IMAGE_THUMBNAIL), 'node/'. $image->nid, array('html'=>true));and it produce link to a node - I wanna make link to original location of image on disk. Any idea?
Just use l()
My snippet is like
Hope it helps you
D7 version
Snippet from my template.php