Popular Tags

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

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

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

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