Layouts customization

  • Mike
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago #86362 by Mike
Replied by Mike on topic Layouts customization

Mike wrote: After upgrade to 2.10
Timeline layout:

Code:
<?php echo $event->categories; ?>
prints only word 'Array'

Have you any suggestion about it?

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

More
8 years 10 months ago #86376 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Layouts customization
Hi Mike

No categories? Just an empty array? That's strange to me. Could you please submit a support ticket sending us super admin account of the site and the link to the page so that I can check it directly on your site?

Regards,

Tuan

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

  • Mike
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago - 8 years 10 months ago #86586 by Mike
Replied by Mike on topic Layouts customization
How can I include mod_eb_cities into timeline layout?
I need the same result as mod_eb_cities but in the top of the timeline layout only.
I've tried this code - it causes fatal error of the php.
Code:
<?php include JPATH_ROOT . '/modules/mod_eb_cities/mod_eb_cities.php' ?>
I suggest, that the problem is with the $params that is used in mod_eb_cities.php
Last edit: 8 years 10 months ago by Mike.

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

  • Mike
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago #86595 by Mike
Replied by Mike on topic Layouts customization
Can you help me to find the definition of $params that is used in /modules/mod_eb_cities/mod_eb_cities.php?

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

More
8 years 10 months ago #86671 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Layouts customization
That variable allow you to get the variable which you setup in the module parameter. I don't think you can include that file directly. Try to look at this solution, it might work docs.joomla.org/JModuleHelper/renderModule

(I haven't tried yet, just tried to google for a solution for your problem)

Tuan

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

  • Mike
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago - 8 years 10 months ago #86733 by Mike
Replied by Mike on topic Layouts customization

Try to look at this solution, it might work docs.joomla.org/JModuleHelper/renderModule

Thanks a lot, It works.
Code:
jimport( 'joomla.application.module.helper' ); $module = JModuleHelper::getModule( 'mod_eb_cities'); $attribs['style'] = 'xhtml'; echo JModuleHelper::renderModule( $module, $attribs );
Last edit: 8 years 10 months ago by Mike.

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

More
8 years 10 months ago #86747 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Layouts customization
Great :)

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

Moderators: Tuan Pham Ngoc