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 ForumsRepositoryRepositoryPer portal templatePer portal template
Previous
 
Next
New Post
7/15/2007 5:12 AM
 

HI,

I've read somewhere It is possible to use per portal templates, placing the the template under the portal root instead of  default /desktopmodules/.... dir

It is really possible, and HOW?

thanks

lele

 
New Post
7/15/2007 9:41 AM
 

create a folder named 'Repository Templates' under your Portal/# folder and place your template files in folders there. The logic for loading templates is to look in the /Portals/#/Repository Template/[templatename] folder first, and if not found, then look in /DesktopModules/Repository/Templates/[templatename].

You can even place partial templates under the Portals structure, for example...

Assuming your setting up a customized version of the default template for portal #2

1. Create a new folder...  /Portals/2/Repository Templates/default
2. copy just the 2 files, template.html and template.xml from /DesktopModules/Repository/Templates/default to the new folder
3. modify those 2 files in the Portals folder
4. now, in the Module Settings page for a Repository module on Portal 2, you'll see that the default template has an asterisk next to it indicated that it's using a customized version

when the template files are loaded, the template.html and template.xml files will be loaded from the Portals folder and all the rest of the template files will be loaded form the DesktopModule folder.

Of course, you can also create an entirely new template and place all of the files in the Portals folder structure.

 
New Post
7/15/2007 5:18 PM
 

HI,

If I move a template (say Eutube) from desktopmodules/repository/templates/Eutube to portals/0/Repository Template/Eutube I get the error "ERROR: UNABLE TO READ REPOSITORY HEADER TEMPLATE:".

If I copy the directory instad of move, and do some small modifications, just to distingush between them I see the shared (desktopmodules/... ) template.

Im using the repository 03.01.12 version, and  dnn 04.05.03 version. I'm not able to download the 03.01.13 version from the download page. Ad if I try to install 03.01.14 (downloaded from www.gooddogs.com) I get this error : ... ExceptionSystem.UnauthorizedAccessException: Access to the path 'Z:\...\bin\DotNetNuke.Modules.Repository.dll' is denied...

So, Im NOT able to do that you explaned before.

Thanks

 
New Post
7/15/2007 5:25 PM
 

portals/0/Repository Templates/Eutube

you have to spell the folder exactly as shown  "Repository Templates"  plural

 
New Post
7/15/2007 6:26 PM
 

Hi,

I tried the portals/0/RepositoryTemplates/Eutube and it works. Note the absence of spacing between Repository and Templates word.

Thanks, also to the module authors.

lele

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryPer portal templatePer portal template


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