[pmwiki-users] Using inote markup as a systemwide LatestNews flag/sticky
Patrick R. Michaud
pmichaud at pobox.com
Fri Aug 12 07:43:53 CDT 2005
On Fri, Aug 12, 2005 at 10:20:33AM +0100, K.A.Bouton wrote:
> Within WIkiStyle where does rframe fit?
>
> $WikiStyle['LatestNews']['width'] = '150px';
> $WikiStyle['LatestNews']['bgcolor'] = 'pink';
> $WikiStyle['LatestNews']['font'] = 'smaller';
> $WikiStyle['LatestNews']['???'] = 'rframe';
Well, 'rframe' is another wikistyle that gets merged with
the current one, so you'd need to copy rframe's settings
into LatestNews. In wikistyles.php, 'rframe' is defined as
$WikiStyle['rframe']['class'] = 'frame rfloat';
so you'll want to do the same in LatestNews:
$WikiStyle['LatestNews']['class'] = 'frame rfloat';
This just makes use of the .frame and .rfloat CSS definitions.
It's also possible to make it work without referring to the
CSS definitions at all:
$WikiStyle['LatestNews']['float'] = 'right'; # rfloat
$WikiStyle['LatestNews']['margin-left'] = '0.5em';
$WikiStyle['LatestNews']['border'] = '1px solid #cccccc'; # frame
$WikiStyle['LatestNews']['padding'] = '4px';
$WikiStyle['LatestNews']['background-color'] = '#f9f9f9';
Pm
More information about the pmwiki-users
mailing list