Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Ordering Blocks via template manager ?

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Possibly not the best title, but I was wondering if there is a way to adjust the ordering (via template manager) of the various blocks ?

Pretty simple really .. move the Menu block above the Tabs and Banner blocks .. or to the top (ala Navbar-Fixed-Top) or fixed bottom for that matter ?

There may already be a way to do this that I've missed somewhere ?

Thanks :-)

As for more general ZGF4 feedback, really think it's good, the only "feature" I'd like is more "mega" menu layout control, similar to T3 which was quite simple once you got your head around it.

Cheers
  • martinb1's Avatar
  • martinb1
  • 3 Month Basic
  • 99 posts
  • 2 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hey mate - nice to hear from you :)

It's not possible in the interface right now but changing the blocks is a matter of changing the positions.json files in the settings/layout folder.

1. positions.json is the "master" layout file.
So if you change the following:
"top": {
        "top1": "3",
        "top2": "3",
        "top3": "3",
        "top4": "3"
    },

to this:
"top": {
        "harry": "3",
        "top2": "3",
        "top3": "3",
        "top4": "3"
    },

You will get a module called harry in the layout tool.

You can now publish a module to the position called Harry.

To move the blocks around you need to edit the code itself:

go to tpls/default.php

and move the position of the blocks. For example if you move this block so it's above the top position it will render int he top position.
$zen->loadBlock('header');

Ill look at making this more flexible in future versions :)

Cheers
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Ah ha ! Thanks Anthony (I owe you a beer or three FYI)

It was the tpls/default.php bit that I was after ...

At some stage I'd like to build a site with the menu up the top (fixed-top) but leave the remained as is .. so that's handy to know :-)
  • martinb1's Avatar
  • martinb1
  • 3 Month Basic
  • 99 posts
  • 2 Thanks
  • Karma: 1
The administrator has disabled public write access.
I'll pass on the beer offer :)

Good luck with the site

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers