Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Preserving dynamic_preserve via plugin

Quote Reply
Preserving dynamic_preserve via plugin
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?
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 &amp; Web Development.
rgbworld.com
Subject Author Views Date
Thread Preserving dynamic_preserve via plugin rgbworld 2680 Jun 3, 2006, 10:22 AM
Thread Re: [rgbworld] Preserving dynamic_preserve via plugin
rgbworld 2616 Jun 3, 2006, 11:07 AM
Post Re: [rgbworld] Preserving dynamic_preserve via plugin
pugdog 2567 Jun 15, 2006, 2:37 PM