- Posts: 31
- Thank you received: 1
Layouts customization
- Mike
- Topic Author
- Offline
- Junior Member
-
Less
More
8 years 10 months ago #86362
by Mike
Replied by Mike on topic Layouts customization
Have you any suggestion about it?Mike wrote: After upgrade to 2.10
Timeline layout:prints only word 'Array'Code:<?php echo $event->categories; ?>
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
-
Less
More
- Posts: 31
- Thank you received: 1
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.
I suggest, that the problem is with the $params that is used in mod_eb_cities.php
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' ?>
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
-
Less
More
- Posts: 31
- Thank you received: 1
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
(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
-
Less
More
- Posts: 31
- Thank you received: 1
8 years 10 months ago - 8 years 10 months ago #86733
by Mike
Replied by Mike on topic Layouts customization
Thanks a lot, It works.Try to look at this solution, it might work docs.joomla.org/JModuleHelper/renderModule
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.