Using columns right or left

Using columns right or left, a forum discussion on Jojo CMS. Join us for more discussions on Using columns right or left on our Administration (backend and configuration) forum.

Back to Forum Index : Back to Administration (backend and configuration)   RSS

30 Jan 2008
Posts: 28

Hi, is it possible to direct small pages in some sort of menu to show in a column right (or left) depending on the theme? For example, showing your ip is not useful as a page but can be useful as an item in a column. Are you planning some kind of system for this?

Core Developer


30 Jan 2008
Posts: 327

We have a few ways of getting this functionality, though we don't yet have a nice GUI for doing so.

Currently, you can place snippets of content anywhere you like by doing the following...

  • in any plugin or theme, create a global.php file and add some PHP code to do something, then assign that something to Smarty. If we are talking about the IP example, then it might look something like this...
    $smarty->assign('yourip', $_SERVER['REMOTE_ADDR']);

  • Next, create a template in the templates folder of any plugin or theme. Have the template do something. eg...
    <em>Your IP address is {$yourip}.</em>

  • Now that the template is created, you can use it in your main template, or within page body content.
    Simply use the following tag...
    (note the round brackets above should be replaced with square brackets)

Back to Forum Index : Back to Administration (backend and configuration)   RSS
You must be logged in to post a reply

You need to Register or Log In before posting on these forums.