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

Bring2mind Forums

Automatically Set Template Mode & Root Dir
Last Post 06/18/2009 9:07 PM by Peter Donker. 4 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Gregory T
New Member
New Member
Posts:5


--
06/11/2009 4:44 AM

I am currently interfacing to DMX from another, custom module.  I've been creating folders via the entities controller with excellent results.

I need to know how to override the DMX settings on a specific module instance to set:

  1. root folder for module -> some place other than root
  2. startup screen -> ViewTemplate.ascx
  3. override controlToLoad -> true

 I would imagine these are all in the same location and I did a little digging, but could not find this info.  Please point me the correct direction.

Thanks.

G

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/12/2009 4:32 PM
Hi Gregory,

Module specific settings are in the ModuleSettings table, following normal DNN module design principles. The Common.Settings.ModuleSettings class in DMX reads this info and hard types it.

Peter
Gregory T
New Member
New Member
Posts:5


--
06/16/2009 9:00 PM

Thanks for the pointer.  I was able to find the correct module and settings and modify the values with the ModuleController interface.  I set the following keys:

mc.UpdateModuleSetting(mresult.First().Key, "DefaultPane", "bring2mind/dmx/templateview.ascx");
mc.UpdateModuleSetting(mresult.First().Key, "OverrideControlToLoad", "True");
mc.UpdateModuleSetting(mresult.First().Key, "RootId", this.Company.DmxDocumentsEntityID.ToString());

These settings do get modified correctly in the DB, but the view doesn't change to the Template View.

Can you think of anything I may be missing?

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/18/2009 9:06 PM
Hi Gregory,

Restart the app. Settings get cached.

Peter
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/18/2009 9:07 PM
On another note: from v 5.1 you don't need to select the 'OverrideControlToLoad' anymore.
You are not authorized to post a reply.