I have a custom module I am building that uses custom content that extends the baseContent class of ContentBox 2.1.0. Any event that I try to set the view (setView) to an event in another module (often contentbox-admin) fails to point to the foreign module. Instead, setView always points to the root of the ContentBox site (which is two folders down from the wwwroot within inetpub: “intepub/wwwroot/client/folder/”).
This happens regardless of how I try to set the view:
-
event.setView(view="/versions/index", module=“contentbox-admin”);
-
event.setView(view=“versions/index”, module=“contentbox-admin”);
-
event.setView(view=“contentbox-admin:versions/index”);
What the include set in setView should be: [site-root]/cbadmin/views/versions/index.cfm
What I get instead is: [site-root]/views/versions/index.cfm
Checking the value from getCurrentView() and getCurrentViewModule() show that the object has indeed been set. It’s just ignoring the module concept all together and looking in the root. But while setView does not work, renderview accurately points to the foreign module as expected. So the problem is only with setview.
I’m guessing I have something set incorrectly somewhere as this would seem to be a major impediment to module developers.
Thanks in advance.
John