[pmwiki-users] problem with automatic generated includes

Jan Jacobs Jacobsjan at spector.be
Tue Jun 7 02:54:22 CDT 2005


John,

that did the trick, thank you very much!

Jan


-----Original Message-----
From: John Rankin [mailto:john.rankin at affinity.co.nz]
Sent: dinsdag 7 juni 2005 7:59
To: Pmwiki-users at pmichaud.com; Jan Jacobs
Subject: Re: [pmwiki-users] problem with automatic generated includes


On Monday, 6 June 2005 9:15 PM, Jan Jacobs <Jacobsjan at spector.be> wrote:
>problem with automatic generated includes
>Hi list,
[snip]
>Jan Jacobs
>PS: as a late remark: when I don't put in the DIV's around the
>include, markup seems ok, but with the DIV's, it screws up.
>------------------------------------------------------------------------------------------------------------------------------------------------
>Markup('calendarlist','<include',"/\(:calendarlist:\)/e","CalendarList(\$pagename)");
>function CalendarList($pagename) {
>      $r = "";
>      $date = strtotime("now");
>      $r .= "<div>(:include " . date("Ymd", $date) . ":)</div>";
>        return $r;
>}
>

Try

$r .= "<div>\n(:include " . date("Ymd", $date) . ":)\n</div>";

The 2 newlines should force correct markup processing, with luck...
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list