Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Plugin Controller And ParentPageContext
luiz@wise.com.br
#1 Posted : Saturday, May 08, 2010 1:34:40 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
There is a property ParentPageContext in the ModuleController, but not in the ControllerPluginBase

why is that?

I could use the htmlhelper.encode to return some properties.

How can i do this?
GazNewt
#2 Posted : Saturday, May 08, 2010 3:20:27 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 2/2/2010(UTC)
Posts: 122
Location: England
Not sure but could you add the properties to viewstate and encode in the view?
luiz@wise.com.br
#3 Posted : Saturday, May 08, 2010 3:21:58 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
I'm returning a Json
jifeng
#4 Posted : Saturday, May 08, 2010 8:33:11 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
HI
The plugin is executed in the controller before the view result returned, we can not get the HtmlHelper before the ViewResult is executed. The Html.Encode is calling HttpUtility.HtmlEncode, it is a static method, you can use it directly.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
vincent
#5 Posted : Saturday, May 08, 2010 9:03:29 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 4/29/2010(UTC)
Posts: 62
Location: xiamen
luiz,

There is a architect chart here which might help you understand the Kooboo request lifecycle better. However I just realize that Pageplugin is missing from the Chart.

http://www.kooboo.com/do...ail/Kooboo-CMS-architect
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.243 seconds.