[pmwiki-users] Field local CSS customization

marc gmane at auxbuss.com
Wed Nov 1 11:16:28 CST 2006


I use:

  $PageCSSListFmt = array(
    '$FarmD/pub/css/local.css' => $FarmPubDirUrl/css/local.css',
    '$FarmD/pub/css/$Group.css' => '$FarmPubDirUrl/css/$Group.css',
    '$FarmD/pub/css/$FullName.css'	=> '$FarmPubDirUrl/css/
       $FullName.css');

but this does not work for field customizations. 

The doc's description of $PageCSSListFmt says

  If you wish to be able to place css configuration files in both the 
  field's pub directory, and the farm's pub directory, you may want to 
  add these lines to your local/config.php file (as described in 
  Cookbook:SharedPages):

  $PageCSSListFmt = array(
    '$FarmD/pub/css/local.css' => '$FarmPubDirUrl/css/local.css',
    '$FarmD/pub/css/$Group.css' => '$FarmPubDirUrl/css/$Group.css',
    '$FarmD/pub/css/$FullName.css' => '$FarmPubDirUrl/css/
       $FullName.css',
    'pub/css/local.css' => '$PubDirUrl/css/local.css',
    'pub/css/$Group.css' => '$PubDirUrl/css/$Group.css',
    'pub/css/$FullName.css' => '$PubDirUrl/css/$FullName.css');

but the last three lines don't generate <link>s to the field's local 
files, but will recognise that local files exist then point to files in 
$PubDirUrl. 

In other words: when
  /pmwiki/field/pub/css/Testing.css
exists a <link> is generated to
  /pmwiki/pub/css/Testing.css

Currently I force things in the field's config.php with such as

# $PageCSSListFmt['$FarmD/field/pub/css/Testing.css'] = 
    'http://site/pmwiki/field/pub/css/Testing.css';

but I'd prefer to sort the general solution.

Am I doing something wrong or is there a simple method to do this?

-- 
Best,
Marc





More information about the pmwiki-users mailing list