How does my plugin go about preserving the dynamic_preserve options?
I have read this thread, and it seems old
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=184364#184364
Again, this is from 2002, but do I need to be using clean_output?
The syntax is Links::user_page('template.html', { vars }, { opts });
Alternatively you can call:
Links::clean_output (\$text);
and it will rewrite the URL's in $text.
Cheers,
Alex
It is unclear to me what I have to do to maintain the template set in via "t=template" in the url.
Currently to display a page from my plugin I do this
print $IN->header();
print Links::SiteHTML::display('plugin_page', { %$input, main_title_loop => $mtl });
Do I have to setup the template differently, ie the form action?
Currently
to something like this?
What about maintaining the template? t=foo
Thanks for any advice or help.
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
I have read this thread, and it seems old
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=184364#184364
Again, this is from 2002, but do I need to be using clean_output?
Quote:
If you use Links::user_page() function it will rewrite the URL's for you automatically. The syntax is Links::user_page('template.html', { vars }, { opts });
Alternatively you can call:
Links::clean_output (\$text);
and it will rewrite the URL's in $text.
Cheers,
Alex
It is unclear to me what I have to do to maintain the template set in via "t=template" in the url.
Currently to display a page from my plugin I do this
Code:
# Displaying a plugin page print $IN->header();
print Links::SiteHTML::display('plugin_page', { %$input, main_title_loop => $mtl });
Do I have to setup the template differently, ie the form action?
Currently
Code:
<form action="<%config.db_cgi_url%>/plugin.cgi" method="POST">to something like this?
Code:
<form action="<%config.db_cgi_url%>/plugin.cgi?<%if g%>;g=<%g%><%endif%><%if config.dynamic_pages =1%>;d=1<%endif%>" method="POST">What about maintaining the template? t=foo
Thanks for any advice or help.
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com