[pmwiki-users] Acronyms
Jan Hegewald
hegewald at cab.bau.tu-bs.de
Thu Dec 14 06:14:41 CST 2006
Hello,
Am 14.12.2006 um 12:20 schrieb Stirling Westrup:
> Jan Hegewald wrote:
>
>> I just found your QuickReplace recipe. From the description it looks
>> as if it is capable of the acronyms feature and so much more!
>> I installed it but I am not sure where to put the acronyms. I have
>> added
>>
>> include_once('cookbook/quickreplace.php');$QuickReplace['Acronyms']
>> = array
>> ( 'flags' => 'e'
>> , 'page' => array
>> ( '{$SiteGroup}.Acronyms'
>> , '{$Group}.Acronyms'
>> , '{$FullName}-Acronyms'
>> )
>> , 'match' => '{$1}'
>> , 'output' => 'Keep(PSS("<abbr title=\"$2\">$1</abbr>"))'
>> );
>> to the config page and now I wonder if the acronyms should go in
>> Site.QuickReplace or a special acronyms page?
>
> Well, if you're using the above configuration, then its saying that
> the
> Acronyms for a page called SomeGroup.SomePage should be looked for
> in the
> pages called Site.Acronyms, SomeGroup.Acronyms and
> SomeGroup.SomePage-Acronyms
> in that order.
I have a Misc.Acronyms where I inserted
[@
'axxb' => 'XX Replacement Text'
@]
In Misc.Misc I tried axxb and {axxb} but nothing changed. Now I am
stuck. I guess I misunderstood something. Please be patient with me (-;
> You can change which pages it looks at, by changing the value of
> the 'page'
> configuration entry. 'page' is documented fully at the bottom of
> the Cookbook
> page. Let me know if it doesn't make sense.
Seems to make sense. But I can not really tell until it is working.
> Oh, and you need to do the include_once AFTER setting the value in the
> QuickReplace array, not before, like it says on the cookbook page
understood.
Cheers,
-- Jan
More information about the pmwiki-users
mailing list