Welcome, Guest
Username: Password: Remember me

TOPIC: Showing Class with JDOM

Showing Class with JDOM 15 Feb 2013 09:05 #6761

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
Hi Chaps,

I need another quick tip :)

Its in relation to www.j-cook.pro/forum/6-interface-online-...-generated-code#6334

I'm trying to add a class or id in a fly block field so I can grab its value with jQuery.

I'm in components/com_mycom/views/member/memberfrontend_fly.php

To render a class attribute- do I need to add an array element here?
<dd>
 <?php echo JDom::_('html.fly', array(
	'dataKey' => '_company_id_membership_number',
	'dataObject' => $this->item,
	'route' => array('view' => 'company','layout' => 'companyfrontend','cid[]' => $this->item->company_id)
	));
	?>
</dd>

Cheers
Chris
Just call me Chris :)
Last Edit: 15 Feb 2013 09:06 by organicwebs.
The administrator has disabled public write access.

Re: Showing Class with JDOM 15 Feb 2013 15:21 #6767

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi Chris,

Yes, right on the money! However, I cannot remember off the top of my head which...

Let me take a look and get back to you... it's either attribs or selectors (I think)... :unsure:

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
Time to create page: 0.062 seconds

Get Started