Bill Moseley wrote:
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?
Of course, silly me :)
But that's easy. We just prepare a special template during the rendering, which will be an html with everything inside + a placeholder for search results. Piece of cake. Right? We should need only one static page for this as all the hits will have their links from /.
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.
so you say that it didn't copy the dot files from the search directory, right?
BTW, update your cvs, I've added an .htaccess file at the root dir already.
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!)
no prob, once it works for you, send me the patch or just tell me what did work and I'll fix it. Whichever way is more convenient to you.
<!-- 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?
If all you need is this:
>>> <!-- SwishCommand index --> >>> [% content %] >>> <!-- SwishCommand noindex -->
I'll commit it immediately.
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?
If my reply to the first para of your post above solves the problem, there is no need for this.
_____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
