By mysocom on
Drupal6
I want to add class='apt' to link.
This work: <a href='site/node/2' class='apt'>Go to apt</a>";
This doesn't
l('Go to apt', 'node/$noda->nid', array('class' => 'apt'));
output: <a href='site/node/2'>Go to apt</a>"; without class!
Comments
Maybe something
Maybe something like
Yes! solved.
Yes! solved.
if you are building a string
can also just embed into the link
l('Go to apt', 'node/$noda->nid', array('attributes' => array('class' => 'apt')));
I need this functionality.
I need this functionality. How do you embed this and where?