Popular Tags

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
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?
Hace 13 años
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?
Hace 13 años
Edit the masterpages and remove or (preferably) comment out the following lines:

<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" />
            <div class="clear">
            </div>
Hace 13 años
I'm not familiar with .Net. How do you comment the code?
Hace 13 años
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 */
Hace 13 años
on the stated page, you would need to use   <!--  -->  eg

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

<nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" visible="false" />
Hace 13 años
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?
Hace 13 años
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. ;)
Hace 13 años
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.