Skip Menu |
 

This queue is for tickets about the Kwiki-CachedDisplay CPAN distribution.

Report information
The Basics
Id: 12123
Status: resolved
Priority: 0/
Queue: Kwiki-CachedDisplay

People
Owner: Nobody in particular
Requestors: miyagawa [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: It doesn't play with *Blocks plugin
Download (untitled) / with headers
text/plain 204b
Kwiki::CachedDisplay seems not play nicely with *Blocks plugin (like Kwiki::ShellBlocks), because the cached pages are missing <link/> tags to css files. Sorry I can't provide any patch but a bug report.
Download (untitled) / with headers
text/plain 1.1k
[MIYAGAWA - Sat Apr 2 22:37:50 2005]: Show quoted text
> Kwiki::CachedDisplay seems not play nicely with *Blocks plugin (like > Kwiki::ShellBlocks), because the cached pages are missing <link/> tags > to css files. > > Sorry I can't provide any patch but a bug report.
Hi, miyagawa After hours of tracing I finally foudn the killer of those missing css files. It is because that, cache_display will prevent formatter->text_to_html being called from time to time, but the loading time of *Blocks classes are just during formatter. Which means, if a page contains a ".shell" wafl block, the corresponding css file "css/shell_blocks.css" will be added into <link> tags, however, for pages not containing a ".shell" wafl block, "css/shell_blocks.css" will not be added into <link> tags. Beacuse a cached page will not invoke text_to_html(), so non of those wafl block CSSes would be added into <link> tags. Now I can try to give a work-around in this cached_display plugin that load all all wafl plugins's CSS, however, I think it's better to let Kwiki it self generate all those css file <link> by default, instead of lazy-loading them. :/ Thanks for this bug report :) Cheers, Kang-min Liu
Hi miyagawa, this bug is been solved by hook on display:display. Please update to 0.02 :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.