How to disable tag cloud

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

wyldbrian
Posts: 16
Joined: Mon Aug 19, 2013 9:35 pm

Re: How to disable tag cloud

Post by wyldbrian » Mon Aug 19, 2013 9:43 pm

Hello,

I've commented out the following lines in artikel.tpl and I still see the tag cloud, is there something I'm missing?

# [tagsAvailable]
# {renderTags}
# [/tagsAvailable]

I'm currently on version 2.8.1

ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: How to disable tag cloud

Post by ubellavance » Tue Aug 20, 2013 12:40 am

You have to use HTML comments, not bash-style commenting.

http://www.w3schools.com/tags/tag_comment.asp

wyldbrian
Posts: 16
Joined: Mon Aug 19, 2013 9:35 pm

Re: How to disable tag cloud

Post by wyldbrian » Tue Aug 20, 2013 6:22 pm

Thanks for that info.

I commented out each line as explained in the linked document and the tagcloud still displays, I also removed all content from tagcloud.tpl. Any other ideas?

ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: How to disable tag cloud

Post by ubellavance » Tue Aug 20, 2013 6:29 pm

All I did in /assets/template/default/artikel.tpl:

Code: Select all

<!-- Commented out to disable tag clouds
                [tagsAvailable]
                {renderTags}
                [/tagsAvailable]
-->
Make sure you're editing the right file, especially if you have more than one template/theme installed.

wyldbrian
Posts: 16
Joined: Mon Aug 19, 2013 9:35 pm

Re: How to disable tag cloud

Post by wyldbrian » Tue Aug 20, 2013 6:59 pm

I added that in and restarted apache, still seeing the Tags option on the right. If I remove all tags I no longer see the tags option on the right when viewing an individual FAQ, but I also lose the "Records in this category section", which is something I want to keep.

I haven't installed any additional themes, I just have the default.

ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: How to disable tag cloud

Post by ubellavance » Tue Aug 20, 2013 7:13 pm

Sorry, I can't help you more than that... I don't know the application that much.

Thorsten
Posts: 15024
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to disable tag cloud

Post by Thorsten » Tue Aug 20, 2013 7:35 pm

Hi,

just delete

Code: Select all

[tagsAvailable]
                {renderTags}
                [/tagsAvailable]
from the template file instead of hiding it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

wyldbrian
Posts: 16
Joined: Mon Aug 19, 2013 9:35 pm

Re: How to disable tag cloud

Post by wyldbrian » Tue Aug 20, 2013 8:04 pm

I removed all 3 of the lines and restarted apache again, same result. When I view individual FAQs I still see the FAQ cloud on the right, is there anywhere else to look?

Thorsten
Posts: 15024
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to disable tag cloud

Post by Thorsten » Tue Aug 20, 2013 8:07 pm

Hi,

check catandtag.tpl, too

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

wyldbrian
Posts: 16
Joined: Mon Aug 19, 2013 9:35 pm

Re: How to disable tag cloud

Post by wyldbrian » Tue Aug 20, 2013 8:14 pm

I commented out the following:

<!-- <section class="well">
<header>
<h3>{writeTagCloudHeader}</h3>
</header>
<div id="tagcloud-content">
{writeTags}
</div>
</section>
-->

And it appears to have fixed the issue. Thanks for the help.

Post Reply