[pmwiki-users] Using pagelist output with template to output csv
Patrick R. Michaud
pmichaud at pobox.com
Tue Jan 4 23:18:00 CST 2011
On Tue, Jan 04, 2011 at 04:03:13PM -0600, Chris Cox wrote:
> On 01/04/2011 04:59 AM, Eemeli Aro wrote:
> > On 3 January 2011 22:45, <ccox at endlessnow.com> wrote:
> >> I created a pagelist template that extracts some PTVs and the format looks
> >> like CSV.
> >> With a special skin (basically a do nothing skin) and with localized
> >> change of content-type, it's almost perfect.... except the pagelist output
> >> does contain just a bit of html formatting.
> >> So.... anyone got an "easy" way to pull this off?
> > What exactly is the HTML that's left over? Also, try adding wrap=none
> > to the (:pagelist:) command.
> <div id='wikitext'>
> <p>my text, my text, my text </br>
> my text, my text, my text </br>
Try adding the following to skin.php for your minimal skin:
# eliminate <div id='wikitext'> ... </div>
global $PageTextStartFmt, $PageTextEndFmt;
$PageTextStartFmt = '';
$PageTextEndFmt = '';
# eliminate the <br /> at the ends of lines
$HTMLPNewline = '';
# eliminate the <p>...</p>
$BlockMarkups['p'] = array('','','',0);
If that doesn't work... perhaps you could send me a copy of your
minimal skin and/or pagelist template and I can tune it a bit
More information about the pmwiki-users