Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStorechange the title of a product category change the title of a product category
Previous
 
Next
New Post
5/22/2008 4:11 AM
 

 

 

When i click on a product category in my dnnStore, the catalog displays the products in that category fine, but the title at the top of the page reads 'Category Products'. i want to change that, how do i go about doing that?

i've tried downloading the source for the dnnstore but i think the code will be in DotNetNuke.Modules.Store.WebControls.dll, which i can't find the source code for.

Also has anyone noticed how the source code is not organised into folders? its just one big flat folder of files. why?

any help would be appreciated, thanks

 

 
New Post
5/26/2008 2:25 PM
 

Hi matt, the text on the labels its set on the resource files inside App_LocalResources, and the particular text you seek its on Catalog.ascx.resx file (CPTitle.text), now if you want to change it statically you will be hablo to do so edditing that rsx file and recompiling the proyect. Now if you want to modify it dynamically it will be more difficult. The store module (as i´ve seen modifying it) works on token replace bases, if you check the Catalog.scx control its empty, that its cause a template its loaded, and then, over that template (in this case templates/catalog.htm) and the a unction searchs for tokens and replace them with controls. Anyway, if you want to change dynamically that (and im just guessing here, cause i havent done this before) you could try the pageload of the catalog.ascx control, apparently this line cpTitle = Localization.GetString("CPTitle.Text", this.LocalResourceFile); its the one that sets the text. Ill try to use catalogNav.CategoryID to try to get the current category id, but im not sure.

Hope it helps a bit at least.

P.D.:Remember to work the module as a whole propyect, not just modifing the files directly from the website, otherwise you would be unable to set breakpoints correctly. Good lUck

 
New Post
5/30/2008 6:37 PM
 

 

Hi Matt

To get the module title to change dynamically, you will need to edit the code.  Have a look at my previous post, here:

 

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/114/threadid/215813/scope/posts/Default.aspx

If you are seeing all the store source code files in one single folder, with no sub-folders then you have extracted them from the incorrect file.  To get the source code you should rename the ".resources" file to ".zip" and use that.  Gilles has written a forum post about getting the store source code.

Hope this helps.

Stuart

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStorechange the title of a product category change the title of a product category


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out