[dokuwiki] Re: general NoLink on images
- From: "Gerry Weißbach" <gerry.w@xxxxxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: 24 Jun 2008 16:18:42 +0200
Thanks Maciej,
is that a thing worth to be included into the core?
Gerry.
Am 24.6.2008 schrieb "Maciej £ebkowski" <m.lebkowski@xxxxxxxxx>:
>On Tue, Jun 24, 2008 at 15:45, Gerry Weißbach
><gerry.w@xxxxxxxxxxxxxxxxxx> wrote:
>> do you know if there is a way that every image rendered by DW comes
>> without a link, as the nolink option does - so to say to revers the
>> current behavior? If there is currently no option - how about
>> introducing one or can that be solved by an action plugin that does more
>> than hard-replace the outputed xhtml ?
>
>Quick fix that changes the default rendering:
>
>./inc/parser/handler.php, line 694
> $linking = 'details';
>
>Changes into:
> $linking = 'nolink';
>
>
>A little slower fix:
>
> } else {
> $linking = 'details';
> }
>
>Turns into:
>
> } else if(preg_match('/details/i', $param)) {
> $linking = 'details';
> } else if (isset($conf['default_linking'])) {
> $linking = $conf['default_linking']; // new config
>variable will be used
> } else {
> $linking = 'nolink'; // if not set, use this global, hardcoded
> default
> }
>
>
>Needs a "global $conf" instruction at the begining of function body for
>the config variable to work.
>
>--
>Maciej £ebkowski, http://lebkowski.info/kontakt.php
>?.Z)"?¨¥?x%?Ëf¢·¢?ú¶m§ÿð?H¬¦Xn¶¢??àÿ¤?f¢?)à?+-
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Re: general NoLink on images
- From: Maciej Łebkowski
Other related posts:
- » [dokuwiki] general NoLink on images
- » [dokuwiki] Re: general NoLink on images
- » [dokuwiki] Re: general NoLink on images
- [dokuwiki] Re: general NoLink on images
- From: Maciej Łebkowski