Jumi Self-Include

A multipurpose module, plugin and component

Jumi Self-Include

New postby HLEBOEUF » Thu Nov 11, 2010 6:26 pm

Is there a way for including a jumi-code into another jumi-code ....

The reason i would like to do this is that i have 1 big coding paging, wich shows several things depeing on the values of some parameters. This works fine for quite a while, but not i'm truing to install joomlastats, and i can't see a difference between all my pages working with this jumi code. What i would like to do is to create separate jumi entries for the most import pages, with different titles. The only code they would have is {jumi [*6]}, where 6 is the index of the real coding page.

But the joomla pages only shows the {jumi [*6]} in the page.

Plugin is installed.
HLEBOEUF
 
Posts: 2
Joined: Thu Nov 11, 2010 6:17 pm

Re: Jumi Self-Include

New postby Edvard » Thu Nov 11, 2010 8:50 pm

You can try to do this instead:
Code: Select all
$db =& JFactory::getDBO();
$db->setQuery('select * from #__jumi where id = 6');
$application = $db->loadObject();
eval('?>'.$application->custom_script);
if(is_file($appl->path))
    require($application->path);
Regards,

Edvard Ananyan - 2GLux Team

Please post a review at the Joomla Extensions Directory. It is very important for us!
Edvard
Site Admin
 
Posts: 1836
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Return to Jumi

Who is online

Users browsing this forum: No registered users and 2 guests

cron