ModuleWrapper in master

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/21/2009 4:45:54 PM
Nux
Gravatar
Total Posts 183

ModuleWrapper in master

Hey,

I don't know if I'm doing something wrong, but I got some strange things with a custom module.

So i made a custom module to login (thanks Joe to help me out with the translations), and everything is looking good.
Since it's a login module, I set the property to hide it for authenticated users. No problem so far.
But I don't want to add this module on every page, so I put it in the master. And than it goes wrong.
The link to the edit page of the module has a pageid=-1 and it loses it's property of hiding it for authenticated users.

Can someone check this? I can't check this on the demo site, so...

Thanks

Stef

11/22/2009 1:42:45 PM
Nux
Gravatar
Total Posts 183

Re: ModuleWrapper in master

I found another example of custom modules and I got the same, so I guess this is a bug, ... if anyone read this...

11/24/2009 1:58:49 PM
Gravatar
Total Posts 18439

Re: ModuleWrapper in master

Not every included module can work in a modulewrapper. 

In the future I will add a sign in module like you are trying to build but I have no idea why yours is not working.

Best,

Joe

11/24/2009 2:03:16 PM
Nux
Gravatar
Total Posts 183

Re: ModuleWrapper in master

Hey Joe,

the module is working, and I can change the properties, but because edit like has a pageid=-1 you return to the home page after saving the module, which is a but annoying.

I tried the 3 column example of Joe D (table with 3 modules in it) and I got the same. Those modules are just html contents.

Stef

11/25/2009 1:53:11 PM
Nux
Gravatar
Total Posts 183

Re: ModuleWrapper in master

Hey Joe,

I got the impression that the module looses it's properties when adding the module hardcoded in the layout.master.
It knows it's id, but doesn't know the rest. Like, in my example, I checked "Hide From Authenticated Users?". When I add it to the page on a normal way, no problem. If I add it to the master, it stays visible, even if I'm logged in.

I guess this is a bug and has nothing to do with the type of module.
Is there a way I can test this online? Or can you?

Thanks
Stef

11/25/2009 2:08:46 PM
Gravatar
Total Posts 18439

Re: ModuleWrapper in master

I'm contemplating doing away with modulewrapper altogether, it was a hack to begin with. Most features need to enforce page security and therefore need to be attached to a page. I will eventually make another way to add a content instance to all pages via the content manager and will get rid of this thing then.

Best,

Joe

11/25/2009 2:53:18 PM
Nux
Gravatar
Total Posts 183

Re: ModuleWrapper in master

Ok Joe, sounds good :)

I will remove it from the master and looking forward to your changes.

Stef

4/8/2010 11:34:07 AM
Gravatar
Total Posts 4

Re: ModuleWrapper in master

Has there been a decision whether there is going to be a sign-in module?

With my custom sign-in module I, after login I get redirected to the admin for page 0 (home page).

I'm assuming that I don't get Login.aspx.cs as part of the standard download; I will search to see whether I can get the code and amend.

Many thanks,

Martin

You must sign in to post in the forums. This thread is closed to new posts.