We'd like to hide the vertical category navigation on a wholesale site on the signin and signup pages, I was hoping someone could point me in the right direction to achieve this. It's a version 8 ML installation
Thanx in advance
We'd like to hide the vertical category navigation on a wholesale site on the signin and signup pages, I was hoping someone could point me in the right direction to achieve this. It's a version 8 ML installation
Thanx in advance
Open your {root}/skins/skin_#/template.cs and comment out these lines:
Code:<div class="navHeader">Browse (!StringResource Name="AppConfig.CategoryPromptPlural"!)</div> <div class="leftNav" id="categories">(!XmlPackage Name="rev.categories"!)</div>
Thanks for the reply
Sorry if I wasn't a bit clearer with my question. I couldn't find template.cs so I assume you were referring to template.ascx.
Wouldn't the supplied solution hide the categories on all pages that use the skin?
as stated we only want to hide it on on the signin and signup pages.
Would a better approach be testing if a user is logged in or not then showing or hiding the left nav based on that condition? I'm new to aspdnf but would the rev.categories.xml.config in the relevant skin folder be the place to code this conditional dislay for the left nav? or is there a simpler solution
You could put an inline style directly on the createaccount.aspx and signin.aspx pages. So instead of hiding it on all pages, it would only hide on those two pages.
<style type="text/css">
#leftNav
{
display: none;
}
</style>
Or I put logic in the source code to switch the menu XML file based on if the user was signed in or not.
ML9.3.1.1
SQL 2012 Express
VS 2010
Azure VM
You can hide by changing the template on load time
use
void Page_PreInit(object sender, EventArgs e)
{
MasterPageFile = "~/app_templates/skin_1/empty2.master";
}
into the signin.aspx.cs