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.097 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started