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...Skins, Themes, ...Skins, Themes, ...SQL Query to reset skin pane positionssSQL Query to reset skin pane positionss
Previous
 
Next
New Post
4/25/2013 5:38 AM
 

Hi, I dont know if this is possible but we are in the process of moving a customers site from an external hosts CMS to our local government hosting and DNN.
The client wanted to keep their existing look and to cut a long story short I have finally overcame their reservations and persuaded them to move from their current look to a mobile responsive skin.

Now, I have a number of pages already built using their current design and I would like to be able to move the pages to the new responsive skin and containers in SQL, I have some SQL from Chris Hammond which will let me update the skins and containers no problem.
What I would like some help with:
 I also want to assign custom templates to these pages, can I and if so where?.

Can I also change the pane names that the content are currently using to the new responsive skin panes.

 

 
New Post
4/25/2013 6:05 AM
 
I don't know much about templates, but I suspect that a page does not 'own' a template. I think the template is no more than a fast typist in prescribing how a page is initially set up.

The pane name must be the column PaneName in the table TabModules. This records the fact that a module is sited in a specific pane on a specific page. Pages used to be called Tabs so lots of DNN related things use Tabs/Pages synonymously.

I have NO IDEA if there are any consequences to updating the panename with raw sql, give it a go on a copy of the site!

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/25/2013 7:23 AM
 

Well, I tried updating the skin of a page via sql,
Update Tabs set skinsrc = '[G]Skins/myskinHome.ascx' where TabID = 105
(I copied an existing skin reference).

And although it worked it would not refresh (despite shutting down the browser and opening again, not until I logged into the edit page apearance where the new skin was actually referenced and clicked update.

Similar position for a content pane update.

Is there a way to force a refresh for all pages in one go?.

I tried this via sql management studio, and running the site sql tool .

Any advice

 
New Post
4/25/2013 7:52 AM
 
Yep.

DNN Caches a load of stuff from the database. If you change it behind the app's back it has no way of knowing about the changes. That's part of the added value in the API calls I referred to earlier.

If you are logged in as host there is a button on Host Settings - Restart Application. Alternatively you can stop/start IIS. It should work if you recycle the Application Pool as well.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/25/2013 10:23 AM
 

Thanks Richard.
That worked a treat, I was able to change skins and containers and rename the content panes and after a restart all was fine.
Test this on our dev system so no danger of anything going wrong.

In case anyone wants to do the same here is the SQL I used.

/*select all child tabs with parent name*/
SELECT a.tabID, a.title,a.SkinSrc,a.ContainerSrc, a.IsVisible,COALESCE(b.tabName,'-') AS 'ParentName'
FROM Tabs AS a LEFT JOIN Tabs AS b on a.parentID = b.tabID
where a.IsDeleted =0
-- To limit a selection
AND a.tabID in('101','105')


/* see skins and containers by tab *****************************************************
*************************************************************************************************/
select tabID,tabname title,SkinSrc,ContainerSrc from Tabs where PortalID=0 AND IsDeleted =0
and tabID in('101','105')
--update
Update Tabs set skinsrc = '[G]Skins/SkinFolderName/SkinName.ascx'where TabID = 105



/* see Panes by TabModuleID*****************************************************
*************************************************************************************************/
--
select TabModuleID, TabID,PaneName,ModuleTitle from TabModules where tabID in('101','105')

Update TabModules set PaneName = 'NewPaneName'where TabModuleID=195

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...SQL Query to reset skin pane positionssSQL Query to reset skin pane positionss


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