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

Table of contents (hide)

  1.   1.  Examples
  2.   2.  Implemenation and configuration
  3.   3.  Categories

1.  Examples

Bla bla
(:statusicon:)

Bla bla (:statusicon:)

Bla bla
(:statusicon undocumented:)

Bla bla (:statusicon undocumented:)

Making it centered:

Bla bla
%center%(:statusicon undocumented:)

Bla bla (:statusicon undocumented:)

A documented feature

Bla bla
%center%(:statusicon documented:)

Bla bla (:statusicon documented:)

2.  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.

3.  Categories

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