[pmwiki-users] Multi Prop Custom Styles

Sivakatirswami katir at hindu.org
Mon Apr 25 23:50:15 CDT 2005


Patrick, Hans... outstanding... thank you-- just what is needed. And 
yes, I would consistently use certain styles with certain blocks...  
and for now I am "artificially" spanning blocks with the

\\

contrivance at the end of \\
\\
one paragraph\\
\\
and another...

a bit of a hack, but it works.

Best wishes from Hawaii,
Sivakatirswami


On Apr 25, 2005, at 10:57 AM, Patrick R. Michaud wrote:

> On Mon, Apr 25, 2005 at 09:20:10AM -1000, Sivakatirswami wrote:
>> The documentation and examples for custom wiki styles are a bit 
>> lean...
>> I read through them carefully, but I don't think I get it yet.
>>
>> Goal: set a custom style with multiple CSS properties:
>>
>> Test (entered into /local/config.php for testing)
>>
>>   $WikiStyle['style1']['color'] = 'white' ['padding'] ='10px 10px 10px
>> 10px' ['bgcolor']= 'green';
>
>     $WikiStyle['style1']['color'] = 'white';
>     $WikiStyle['style1']['padding'] = '10px 10px 10px 10px';
>     $WikiStyle['style1']['bgcolor'] = 'green';
>
> You can also write it as:
>
>     $WikiStyle['style1'] = array(
>       'color' => 'white',
>       'padding' => '10px 10px 10px 10px',
>       'bgcolor' => 'green');
>
>> Can someone give a proper example of  a multi-property custom style?
>>
>> I want to use the  %block=MyNewStyle%
>>
>> mark up to paragraphs, bullet lists, post-response discussions on one
>> page etc.
>
> If you know that "style1" is always (normally) going to be applied to
> a block, you can also add:
>
>    $WikiStyle['style1']['apply'] = 'block';
>
> which means that %style1% will always assume it's to be applied
> to the current block.
>
>>  I *really* look forward to some %div% mark up that spans blocks...
>
> So do I.  :-)
>
> Pm
>




More information about the pmwiki-users mailing list