Welcome, Guest
Username: Password: Remember me

TOPIC: Question about JDom

Question about JDom 12 Mar 2012 20:34 #1577

  • M4d3L
  • M4d3L's Avatar
  • Offline
  • Senior Member
  • Posts: 45
  • Thank you received: 7
  • Karma: 3
On that code, how I add a class attribut to my link?
<?php echo JDom::_('html.fly', array(
'dataKey' => 'title',
'dataObject' => $row,
'href' => JRoute::_("index.php?option=com_building&view=content&layout=content&cid[]=" . $row->id, false),
)
);?>
Last Edit: 12 Mar 2012 20:35 by M4d3L.
The administrator has disabled public write access.

Re: Question about JDom 16 Mar 2012 16:35 #1614

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140

<?php echo JDom::_('html.fly', array(
'dataKey' => 'title',
'dataObject' => $row,
'href' => JRoute::_("index.php?option=com_building&view=content&layout=content&cid[]=" . $row->id, false),



//HERE :

'linkSelectors' => array(
		'title' => 'My link title',
		'rel' => 'example for rel')
)
);?>
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.136 seconds

Get Started