Ethan;6130 wrote:
Hi Ella,
Why not add a plugin to the view? case you do that you can get view parameters in your plugin.
Page ----------> Page plugins
Layout ----------> Layout plugins
View ----------> View plugins
When I develop the view "ContactForm" I like add "ContactFormPlugin" to the view that way I can easy add the form data to my db.
Oh, I'm not sure that I understand your answer, Ethan.
My question was: "how to get the view parameter in the view plugin? In view I get it like this: @Page_Context.Current["param1"], but in plugin it doesn't work."
But jifeng answered me:
jifeng;5992 wrote:it is impossible to get the view parameter in the plugins, because the plugins is run before the view is rendered.
If you know, how to do it, please write some example code.