Page 1 of 1

RESOLVED: Category Index/Landing page?

Posted: Wed Jun 08, 2011 4:58 pm
by vhemlani
I'd like to have it so that upon clicking on a specific category, it loads a content page instead of the product grid.

It would be sort of like having a index.html file within a public folder. Browsing to the public folder would automatically load the index.html file. Except in my case, I want it so that browsing to a specific category loads a content page.

Thanks. Any help would be appreciated.

Re: Category Index/Landing page?

Posted: Thu Jun 09, 2011 3:05 am
by s_ismail
You may accomplish this task by creating a user control in conlib folder and insert an asp PlaceHolder control in it. On clicking on specific category read contents of html file and insert into PlaceHolder like this one

Code: Select all

 string path = "Html File Path";
if (File.Exists(path))
{
 StreamReader sr = new StreamReader(File.OpenRead(path), System.Text.Encoding.Default);
 strContents = sr.ReadToEnd();
 sr.Close();
 Literal literal = new Literal();
literal.Text = strContents;
 HtmlContentPH.Controls.Add(literal);
}
Now use this control on Category Page by going on Edit screen.

Re: Category Index/Landing page?

Posted: Thu Jun 09, 2011 6:02 am
by jmestep
Are you wanting to store the content within Able? If so, you can set the category to use the CategoryDetails display page and hide the links- it shows the category description up at the top.It would be like the following, only no links at the bottom.

http://www.perelandra-ltd.com/Environme ... 8C736.aspx

RESOLVED: Category Index/Landing page?

Posted: Tue Jul 05, 2011 12:38 pm
by vhemlani
I ended up using CategoryGrid4 control. I put in my landing page content into the description of the category, and categorygrid4 control pulled it to display at the category level. I also modified categorygrid4 to remove the display of the sub-categories below the description.