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.

unlink 'category' in ZT2

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

I'm looking to make the category label in the zt module 'unlinked' - just use as a static label. What's the trick? There's no option in the module setting. (this page will get a masonry filter.)

dev page

J364
ZT 232
Buildr something or other. two weeks ago.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
hmmm

and you need to check the category in the drag and drop section e.g. you don't want to remove the category text but don't want the link?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
exactly - i want to keep the category label but disable the link. for categories, there is no option regarding the link in the drag and drop configurator in ZT2, as there is in some of the other options such as image and title.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
hmm I don't think there is a way of doing this

I'll try and grab Rob tomorrow to see

think we are in hack ish territory

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
well the UK and the US have been hacked, so it's a thing.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
yeah and my damn ex-router last week :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
nothing worse than joomla's tag pages. it's like 2006 all over again.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Hi David,

You'd need to create a template override to remove the link from the category.

Copy the file
/modules/mod_zentools2/tmpl/elements/category.php
to your template folder
/html/mod_zentools2/elements/category.php

And then open up the file to remove the link around the text:
<div class="zt-category zt-element zt-<?php echo $element->display;?> zt-element-<?php echo $settings->count;?> zt-<?php echo $element->alignment;?> <?php echo $responsive_class;?>">
	<?php echo $element->pretext;?>
  <?php echo $item->category;?>
</div>
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
The following user(s) said Thank You: manh, blueshift
worked as advertised.

ZT2 feature idea: swap out default joomla category layout (one of the few things joomla is truly awful at) and replace with the ability to go to a page with a ZT2 category module.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
Last Edit: 3 years 9 months ago by blueshift.
The administrator has disabled public write access.
Thanks for the update

It would need to be a component for something along these lines so it wouldn't be possible

We may look at turning zentools2 into a component but this is still under discussion

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

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
a great... what? weekend? what's that?
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
:)

Enjoy a nice ale in that case while thinking of a summer holiday :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The following user(s) said Thank You: blueshift

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

Happy Campers