Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Create a new TemplateView.ascx
Last Post 09/09/2010 9:33 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
James Nagy
New Member
New Member
Posts:4


--
09/07/2010 7:31 PM

I've spent some time customizing the look of the DMX TemplateView for an individual instance of the module.  I got it to work the way the client wanted.  Now they want to add it several other pages, which as far as I can tell means that I have to update the PageTemplate, ItemTemplate, etc... in all instances.  Which is fine if I do it, but they want to add it themselves and they don't want to mess with the Template stuff.  Is there a way to create a new TemplateView.ascx.resx file that will be used to create the individual instances of PageTemplate, ItemTemplate, etc...

Really what I am asking is there an automated way to take a set of view files already defined and working in a particular module instance and turn them back into a TemplateView.ascx.resx (or another file that can be used as default)?  Or do I have to hand modify the TemplateView.ascx.resx to achieve what I am looking for?  

Thanks for the help and advise.  

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/09/2010 7:07 PM
Hi James,

This is on my list of todos but it isn't done yet. I want the ability to upload tempates as a zip file ... but other things took priority. For now you can tweak the resource file to achieve this but (1) you have the risk that it is overwritten with an update and (2) it's for the whole portal or even the whole installation.

Peter
James Nagy
New Member
New Member
Posts:4


--
09/09/2010 7:23 PM
Peter,

Thank you for the reply.

Uploading a zip would be cool or what about a way to point to a file or better yet a set of files from within the UI. Basically I want to be able to have the same look/feel for every instance of the Module and there will be many of those instances on my clients website. I want a way that a user can do this easily without me having to train them on how to do this themselves (they will never get it) Also, maybe this is just me, but when I update the styles template, it doesn't take. I have to go in behind the scenes and copy in a styles.css file to get the changes to pickup.

Any thought on creating a way to specify a folder where the templates are profiled? (While still maintaining a way to override the templates the way you have it now.)

I'm really hoping to avoid hand modifying that XML file, and I really don't want to lose those changes in an upgrade.

Thanks again for your help, I really appreciate it.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/09/2010 9:33 PM
Hi James,

The only way I know is if you have disk access. The templates are stored under portals/[id]/DMX/ViewTemplates/[moduleid]. So if someone creates a DMX in template view then you will see the new folder pop up. You can just drop the other files over it and the templates are in place.

Other than that it's the end of the line I'm afraid.

Peter
You are not authorized to post a reply.