Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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 :)

Please Log in or Create an account to join the conversation.

Last edit: by organicwebs.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
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!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.073 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started