Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

StatusIcon

<< | Page list | >>

Test a recipe that provides markup to insert small 'status icons'. This also documents the use of this markup. This markup might be used in the page NewInLyX16 and NewInLyX20. Also see Devel.Status

Examples

Bla bla
(:statusicon:)

Bla bla

Default... no nothing probably:-)
Bla bla
(:statusicon undocumented:)

Bla bla

No documentation available yet

Making it centered:

Bla bla
%center%(:statusicon undocumented:)

Bla bla

No documentation available yet

A documented feature

Bla bla
%center%(:statusicon documented:)

Bla bla

Documented

Implemenation and configuration

The icon images are stored here:

The recipe file is on Aussie in the file

/home/lyx/www/pmwiki/farm.d/cookbook/statusicon.php

However, it's configured in

/home/lyx/www/pmwiki/farm.d/local/farmconfig.php

by the following piece of code:

if(true) {
  $StatusIconTypeFmt =
    array('default' =>
          '[[Devel/Status#default | uploads:/Site/statusicon/default.gif"Default... no nothing probably:-)"]]',
          'undocumented'
          => '[[Devel/Status#undocumented | uploads:/Site/statusicon/undocumented.gif"No documentation available yet"]]',
          'documented'
          => '[[Devel/Status#documented | uploads:/Site/statusicon/documented.gif"Documented"]]'
          );
  include_once("$FarmD/cookbook/statusicon.php");
 }

So in order to add more types of icons, modify $StatusIconTypeFmt. The key in the array is what is to be given as argument to (:statusicon <key>:). The value in the array is what's exported into the wiki markup.

Categories

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2008-11-16 20:51 CET