Popular Tags

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
How do I properly hide the Popular tags module on the left sidebar?
Is there a control in the admin (I looked and cannot find so far) or I have to manually take it out in the code?
13 years ago
I deleted all the tags and the module is hidden now. What if I want to utilize the tags but don't want the module?
13 years ago
Edit the masterpages and remove or (preferably) comment out the following lines:

<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" />
            <div class="clear">
            </div>
13 years ago
I'm not familiar with .Net. How do you comment the code?
13 years ago
shegga wrote:
I'm not familiar with .Net. How do you comment the code?


// is a single line comment
/* */ is a block line comment, meaning you can comment multiple lines between the /* and */
13 years ago
on the stated page, you would need to use   <!--  -->  eg

<!--
<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" />
            <div class="clear">
            </div>
-->
13 years ago
Another option would be to set the control's visibility to false

<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" visible="false" />
13 years ago
haydie wrote:
on the stated page, you would need to use   <!--  -->  eg

<!--
<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" />
            <div class="clear">
            </div>
-->


Oops!  Forgot we were talking about an ASPX page, not the codebehind.  /facepalm

steveeb wrote:
Another option would be to set the control's visibility to false

<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" visible="false" />


That would work too, however if you don't want it displayed, why waste precious bandwidth loading controls that you aren't going to use?
13 years ago
If you choose to comment things out of NopCommerce, I would suggest putting your name or some other constant within the comment so you can easily search for it.  Just make sure you are consistant.

Example:

<!-- STEVE

   The code you're commenting out...

-->

I can then do a global search for "STEVE" to find all the places I messed up. ;)
13 years ago
Thank you. I appreciate it.
Different way to comment in .net
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.