[pmwiki-users] Keeping recipes up to date -- updated

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 16 08:13:56 CST 2007


On Fri, Feb 16, 2007 at 01:44:19PM +0000, Hans wrote:
> Friday, February 16, 2007, 5:19:17 AM, Patrick wrote:
> 
> > I've also started a page at
> > http://www.pmwiki.org/wiki/Cookbook/RecipeMap
> > that maps script names to the corresponding recipe page 
> > (e.g., 'mimetex.php' maps to Cookbook:MimeTex).  This allows
> > RecipeCheck to report pmwiki.org version information 
> > even for those scripts that don't set $RecipeInfo.
> > However, the Cookbook.RecipeMap is still incomplete -- if you 
> > find an older recipe that needs to be mapped, feel free to add it
> > to the page or report it here and someone can add it.
> 
> the page contains entries for which the php file got a $RecipeInfo
> declaration. Any reason for them being on the page? Should they be
> removed? For instance:
> grouptitle.php       Cookbook:GroupTitle
> views.php            Cookbook:ViewModes
> togglelink.php       Cookbook:ShowHide

They should remain.  Even if the current version of the recipe
has $RecipeInfo declaration, people may have older versions of
the recipe installed that don't have $RecipeInfo.  (I know this
because pmwiki.org had them, which is why I made the entries. :-)

So, we need to keep them there for the benefit of those sites
that have older copies of the recipes -- at least for a while.

> The last is special, as togglelink.php contains:
> $RecipeInfo['ToggleLink']['Version'] = '2007-01-06';
> but shares the same page as showhide.php on Cookbook.ShowHide, so
> naturally RecipeCheck will not find the pmwiki.org page to check.
> Any idea what to do in this case? 

I'm still thinking about how to handle the case where two
different recipes are trying to share the same page.  For now,
the simple workaround may be to create a Cookbook.ToggleLink
recipe that contains

    (:redirect ShowHide:)
    Version: 2007-01-06

which provides the version number for ToggleLink, but still
redirects people to the ShowHide page.  (I'm not sure that
I like this as a general solution, because it means we may
end up putting lots of extra pages into the Cookbook.  But it
works for now.)

Pm



More information about the pmwiki-users mailing list