[pmwiki-users] Prevent the "html" elements of returned values from pagelist
Christopher Cox
ccox at endlessnow.com
Sun Nov 17 17:07:45 PST 2019
On 11/17/19 2:01 AM, Petko Yotov wrote:
> On 17/11/2019 07:02, Christopher Cox wrote:
>> My solution. I created a page specific php file
>> (Test.UsersByDepartment.php) and inside it I put:
>>
>> <?php
>> global $BlockMarkups;
>> $BlockMarkups['p'] = array('','','',0);
>
> Didn't this mess your other page content, and the sidebar/header/footer?
>
>>
>> This got rid of the extraneous <p> around the (:pagelist wrap=none....
>
> There is wrap=inline.
I found no difference between wrap=none and wrap=inline. Both produced the
template output embedded in a html paragraph.
>
>> This is so I can use a pagelist to produce graphing data. See:
>> https://endlessnow.com/wiki2/Test/UsersByDepartment
>
> This is not a reply to your question, but another solution to your problem.
>
> In a case of a JavaScript-generated chart, I would let the pagelist output an
> HTML table, then I would parse the data from the table with JavaScript to feed
> it to the Chart API.
>
> (There is another benefit, people with disabled JavaScript or with 3rd party
> blocking would still see the table with the numbers.)
This is a great idea. I'll definitely look into this. Thanks!
snippy the rest (but awesome)...
More information about the pmwiki-users
mailing list