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

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started