[pmwiki-users] Prevent the "html" elements of returned values from pagelist

Christopher Cox ccox at endlessnow.com
Sat Nov 16 22:02:33 PST 2019


My solution.  I created a page specific php file (Test.UsersByDepartment.php) 
and inside it I put:

<?php
global $BlockMarkups;
$BlockMarkups['p'] = array('','','',0);

This got rid of the extraneous <p> around the (:pagelist wrap=none....

This is so I can use a pagelist to produce graphing data.  See: 
https://endlessnow.com/wiki2/Test/UsersByDepartment


On 11/16/19 10:11 PM, Christopher Cox wrote:
> That didn't format well.  I figured out some thing I had wrong.  Added wrap=none 
> to get id of the div.  Found my extraneous newliune in my pagelist.  What I'm 
> trying to do is embed the output of the pagelist in the middle of raw html on a 
> page to draw a chart.  But now I'm down to:
> 
> <p>['', 43],
> ['Sales', 174],
> ['Development', 46],
> ['IT', 116],
> ['Customer Support', 145],
> ['HR', 21],
> ['Product Management', 28],
> ['Finance', 35],
> </p>
> 
> I just need to somehow get rid of the paragraph around it all.
> 
> 
> On 11/16/19 9:54 PM, Christopher Cox wrote:
>> Is there any way to just have the values and not the html from a pagelist (as 
>> in what gets returned in the page source)?
>>
>> <div class='fpltemplate'><pclass='vspace'>['Sales', 174], </p> 
>> <pclass='vspace'>['Development', 46], </p> <pclass='vspace'>['IT', 116], </p> 
>> <pclass='vspace'>['Customer Support', 145], </p> <pclass='vspace'>['HR', 21], 
>> </p> <pclass='vspace'>['Product Management', 28], </p> 
>> <pclass='vspace'>['Finance', 35], </p> </div> Instead, I'd like just: 
>> ['Development', 46], ['IT', 116], etc...
>>
> 
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 




More information about the pmwiki-users mailing list