cancel
Showing results for 
Search instead for 
Did you mean: 

Changing CategoriesBlock

stefan_zatloukal
Explorer
0 Kudos

Hello guys,

in Standard CategoriesBlock-Control, there are the global variables

public bool ShowName = false;

public bool ShowImage = true;

public bool ShowDescription = false;

set to default values.

My question is how i can set ShowDescription to "true" if i use for example a clone of the OECCategoriesBlock-Plugin and want the Description to be visible?

thanks

Stefan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Stefan,

I'm not completely sure I'm understanding what you are doing.

Normally, you will declare the control in the .aspx or .ascx as follows:

<%@ register tagprefix="np" TagName="cblock" src="controls/CategoriesBlock.ascx"%>

And use it on the page as follows:

<np:cblock id="npcblock" runat="server" Catalog="oec" ParentID="0" BorderWidth="0" CatsPerCol="2"
		ShowName="False" ShowImage="True" ShowDescription="True" />

This is the code from ~/catalog/categories.aspx.

So, all you should need to do is set the ShowDescription="True" on the .aspx that the control is on.

stefan_zatloukal
Explorer
0 Kudos

Many thanks Shane,

i think that will solve it.

regards

Stefan

Answers (0)