[pmwiki-users] wikistyles question
Patrick R. Michaud
pmichaud at pobox.com
Fri Aug 5 11:47:31 CDT 2005
On Fri, Aug 05, 2005 at 04:57:47PM +0100, Ed W wrote:
> I think I ought to be able to write:
> %block style=clear:both%, but this doesn't work
WikiStyles don't allow one to write arbitrary CSS properties or HTML
attributes -- only the ones that are specifically enabled by
PmWiki or a customization.
> Also it ought to be possible to use something like:
> $WikiStyleCSS = 'clear:both';
> In local/config.php and then use it as:
> But I can't figure out that syntax either
Close. It would be
$WikiStyleCSS = 'clear'; #enable the "clear" CSS property
and then in the markup %clear:both% will work (as well as
%clear:left% and %clear:right%).
> Nor can I figure out how to use
> %define=blockbreak style=clear:both%
but also one can do
and then %clear%, %clear=left%, %clear=right% all do what you would
want them to do.
The administrator can predefine the %clear% wikistyle with
$WikiStyle['clear']['clear'] = 'both';
(this corresponds to %define=clear clear=both%).
Sorry for the terseness of this answer -- I'm on a flaky network
connection at the moment. I can write more later if desired.
More information about the pmwiki-users