Hi everyone,
I am very new to DNN and having a similar problem AJSANSONE. Thanks to Gilles for posting where we could find some info about editing the template of the store module. Here is a direct link to
Template design guide for anyone who is overlooked it on the website.
Although this was very informative, I still have a few questions about how I could edit the store tokens.
If I wanted to Edit the Product tokens such as MODELNUMBER and change the corresponding token to represent say the year it was manufactured. Where would I make this change so it also changes the Token name in the database for search related purposes.
Would I have to edit the productadmin.ascx as well as changing the token names in productdeail.htm ?
So the old looks like this...
<
asp:TemplateColumn
>
<
HeaderTemplate
>
<
asp:Label
id
=
"lblModelNumber"
runat
=
"server"
resourcekey
=
"lblModelNumber"
cssclass
=
"NormalBold"
>Model Number</
asp:Label
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:label
id
=
"labelModelNumber"
runat
=
"server"
cssclass
=
"Normal"
> <%# DataBinder.Eval(Container.DataItem, "ModelNumber") %> </
asp:label
>
</
ItemTemplate
>
</
asp:TemplateColumn
>
So should my new code if I was to Change the modelnumber to Year look like this below? Also do I need to create the lblYear for my store database or am I already doing that within this ascx file ?
<
asp:TemplateColumn
>
<
HeaderTemplate
>
<
asp:Label
id
=
"lblYear"
runat
=
"server"
resourcekey
=
"lblYear"
cssclass
=
"NormalBold"
>Production Year</
asp:Label
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:label
id
=
"labelYear"
runat
=
"server"
cssclass
=
"Normal"
> <%# DataBinder.Eval(Container.DataItem, "Year") %> </
asp:label
>
</
ItemTemplate
>
</
asp:TemplateColumn
>
Any help would be greatly appreciated, Also I am running Store module 3.0 on DNN 6.0
If I am way off about editing this, if someone could point me in the direction of a good tutorial or a forum post so that they don't have to re-write something that has already been said before.
Look forward to hearing back from someone - Will