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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to add custom templates for same skin for more than one Repository Module?How to add custom templates for same skin for more than one Repository Module?
Previous
 
Next
New Post
4/2/2010 1:26 PM
 

 Hi,

Here is my requirement. I need to add multiple repository module on different pages and I also have to define custom template for most of them. For example, I using Article Skin of Repository Module on page 1 and another Article Skin of Repository  Module on page 2. I know that when you add a Rep module, it adds "Repository" module as "WebRoot\Portals\0\Repository" folder and I know that  I can create a directory "RepositoryTemplate" as " WebRoot\Portals\0\RepositoryTemplates" and then can add subdirectory "articles" as "WebRoot\Portals\0\RepositoryTemplates\articles" and put my templates in this "articles" directory to override the defaults. And I am able to achieve this for the module on page 1.

Now I have added the same Article Skin of Rep Module on page 2 and want to use a different template for this page. How can I do that? In the configuration of the module, I have changed the root of the approved, unapproved, and anonymous file location to different directory as "WebRoot\Portals\0\Repository_Article1" and then I manually created another directory for the templates as "WebRoot\Portals\0\Repository_Articles1Templates" in the hope that page 2 module will look into this directory. But it is picking up from "WebRoot\Portals\0\RepositoryTemplate" folder.

How can achieve this? Any help will be appreciated.

Navnish

 
New Post
4/4/2010 10:18 PM
 
Anybody?
 
New Post
4/5/2010 8:14 AM
 

you would do it the same way you did for the module on page 1

WebRoot\Portals\0\RepositoryTemplates\articles  -- customized template for page 1
WebRoot\Portals\0\RepositoryTemplates\articles2 -- customized template for page 2

You must make sure they are not named the same (ie: you can't have two folders with the same name under the RepositoryTemplates folder). Then for module 1, set the skin to articles and for module2, set the skin to articles2

NOTE: To change the location where the files will be physically stored, you MUST log in using the HOST account. Then on the module settings for each repository module you can tell it where to look for it's files

WebRoot\Portals\0\Repository\articles -- file location for page 1
WebRoot\Portals\0\Repository\articles2  --  file location for page 2

 
New Post
4/7/2010 10:55 PM
 

 Thank you Steve, I will try it and let you know the result.

Navnish

 
New Post
4/9/2010 10:22 PM
 
Hi Steve, now I know what you mean. At first, I was not clear but I am trying to do it now and now I know what you mean. Thank you very much. Navnish
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to add custom templates for same skin for more than one Repository Module?How to add custom templates for same skin for more than one Repository Module?


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