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.

Change layout of Zentools2 Elements

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

Hi Guys

I have been playing around with Zentools on the corporation template, and I have made a change to /modules/mod_zentools2/tmpl/elements/category.php, just to wrap the CatTitle link in a h2 tag.

My question is how can I add this as a new layout/option so my changes dont get overridden on the next Zentools update? Is this possible just by adding some code to the helper files?

Cheers

Chris
  • Chris French's Avatar
  • Chris French
  • 12 Month Developer
  • 68 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Chris,
You can actually just add your own layout file.

- so add category_chris.php to the tpls/elements/ folder
- then add category_chris to the settings/sources/joomla.xml file like this:
<item>category_chris</item>

Then you will have category chris in the layout tool.

Thanks!
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
The following user(s) said Thank You: Chris French
Beautiful thanks Anthony, I knew it was going to be easy, I just couldn't figure out which xml file file to add it too.

Thanks again
  • Chris French's Avatar
  • Chris French
  • 12 Month Developer
  • 68 posts
  • Karma: 0
The administrator has disabled public write access.
Thanks Chris

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