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 ...Page Template Folder and Default Page Template Settings Lost for One of Several PortalsPage Template Folder and Default Page Template Settings Lost for One of Several Portals
Previous
 
Next
New Post
2/3/2015 9:16 AM
 

I have a DNN 7.3.4 install that has one parent portal and 30 child portals.  The DNN Framework has been upgraded several times and started as a DNN 5.x website.

Somewhere along the line, the Settings for the Default Page Template Folder and the Default Page Template has been lost for the parent portal only.  This previously worked, although I don't know when it got broken.

On the parent portal, when I "Add New Page" the "Template Folder" dropdown is not initially set to "Templates" and instead shows "Select A Folder".  As a result, the "Page Template" dropdown is empty. 

All other child portals that I have reviewed, the Template Folder is set to Templates and the Page Template is set to Default as normal.

I have checked that the Template folder exists and has a valid Default.page.template file.  I checked the folder permissions (which shouldn't matter for me as an admin) and have done a full File Re-Sync on the portal.

I've also searched the DNN database and cannot seem to find where these settings are stored.

How can I reconnect these default settings for a portal?



 
New Post
2/5/2015 5:42 PM
 

To rephrase more simply;

Where are the settings that control the Default Page Template when creating a New Page?

 
New Post
2/5/2015 8:55 PM
Accepted Answer 

if you mean the addpage dialog from the control panel then the relevant code looks like this:

ArrayList templateFiles = Globals.GetFileList(PortalSettings.PortalId, "page.template", false, "Templates/");

in other words on a default install it would look in Portals\0\Templates

it then removes the ".page.template" portion to get the template names so the "Default.page.template" becomes "Default" -the code then checks (case-sensitive it seems) if the template is called "Default" and if so selects it

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/6/2015 8:51 AM
 

Thanks Cathal for your detailed reply.

It did, in fact, have to do with permissions for the Templates Folder on that Portal.  Something I thought not possible while being logged in with a Host Account.

After comparing with another portal I reset the permissions and all is well.

Thanks again!

 
New Post
2/6/2015 10:27 AM
 
not a problem - note: I just fixed an issue around admin permissions on portals installed via the blank portal template, if you used that template then it may be the root cause of your problem

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Page Template Folder and Default Page Template Settings Lost for One of Several PortalsPage Template Folder and Default Page Template Settings Lost for One of Several Portals


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out