At 09:38 AM 01/28/02 +0800, Stas Bekman wrote:
>I don't understand why do you need the template variables. Why swish
>cannot work with the static content?
If it's going to use the same templates as the site to build it's page then
it needs the template variables to build the menus, right? The menu is
generated by DocSet, no?
In DocSet each page is generated with TT, and DocSet sets the template
variables for TT to use. For example, top_level_menu needs data to
generate the menu, right? But if a CGI script is running there's not data
to generate the menu -- that data is only known by DocSet.
So, for the CGI script to generate a page that fits into the site (with the
side menu) it will need to somehow load the same data into TT that DocSet
did. And the two ways I can think of that is
1) had DocSet write a TT config file that can be loaded by the CGI script
with a PRE_PROCESS, or
2) get a module/plugin that reads DocSet's cache and load up TT variables
needed to generate the page.
I like the first, but the 2nd might be easier to implement with your
current modules.
I say all this stuff not knowing DocSet at all, other than the previous
version that I use.
>Did you specify these files in the copy_glob attribute?
I did:
copy_glob => [
qw(
style.css
images/*
robots.txt
search/*
.htaccess
)
],
Where search is the directory.
>> and also didn't keep permissions
>> (so CGI scripts lost their execute bit). At least that's what it looked
>> like. Hum, I'm sure there's a way to do that, but out of time now.
>
>
>That should be easily fixable. I use File::Copy::copy to copy the files,
>so I think I need to move it to File::Copy::syscopy. Can you try if it
>does the trick? see DocSet/Util.pm
Ok, but I'm about to go off line mostly until about Tuesday (It's still
Sunday here!)
..
>> <!-- SwishCommand index -->
>> [% content %]
>> <!-- SwishCommand noindex -->
>> ...
>that's very easy, just put these into tmpl/custom/html/page_body
>next to the #render the content comment.
Do you want diffs? or Is that something you can easily do?
>I still don't understand what are you trying to do here.
>
>Though, all the linkage, titles, abstract info is cached already and
>used by the CacheNavigate to build all the index.html files, menus and
>pre|next navigations. Without it you will have to rebuild the whole site
>when you change one file.
Right, but how does a CGI script that is outside of DocSet make use of that
data?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]