[pmwiki-users] custom parameters in output HTML
Brian Tibbels
brian.tibbels at clickmarlow.co.uk
Tue Dec 17 12:25:14 CST 2013
I use something very similar for Boostrap 3.
$WikiStyleAttr['data-breakpoint'] = 'li|div|p';
then you can use
* %apply=list class="flexnav" data-breakpoint="800"% First Menu Item
Rgds
Brian
On 17 December 2013 17:24, Crisses <crisses at kinhost.org> wrote:
> A wikistyle may not be the right way to do this:
>
> Here's what I need in the HTML output for a navigation menu:
>
> <ul class="flexnav" data-breakpoint="800"> <li>...</li> </ul>
>
>
> Here's the markup I'm trying to use:
>
> *%apply=list class=flexnav db=800%First Menu Item
> *Second Menu Item
> **Nested Menu Item
> *Third Menu Item
>
> Here's the custom php I'm attempting to employ:
> $WikiStyleRepl['/\\bdb(=\d+)/'] = 'data-breakpoint$1';
>
> And the output I'm getting:
> <ul class="flexnav"><li> <a class="wikilink" href="...
>
> The whole "db" part disappears.
>
> ideas?
>
> Thanks! Trying to make a responsive navigation plug-in...
>
> Crisses
>
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20131217/2e7bd186/attachment.html>
More information about the pmwiki-users
mailing list