Static pages: markup plugins

Creating and modifying plugins.
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Static pages: markup plugins

Post by Don Chambers »

Entries have the ability to disable specific markup plugins. Can we get this same ability for each static page? Right now, markup is an "all or nothing" selection.

This probably goes for HTML nuggets too.... might want to allow one specific type of markup, while blocking another.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Static pages: markup plugins

Post by garvinhicking »

Hi!

I believe that could be done with changes in the staticpage plugin only. It would simply need to set an $eventData['properties']['disable_markup_blabla'] value, that could be gathered before it.

It's a lot of work to code, though. I can try to look into it mid-january, if you remind me. :-)
This probably goes for HTML nuggets too.... might want to allow one specific type of markup, while blocking another.
That's a bit more challenging, but it could be done with similar code (but requires core s9y update of course).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Thanks Garvin - I was looking at it from a consistency perspective. An example of it might be that I want to allow the nl2br markup plugin for a static page or html nugget, but disable another one, perhaps serendipity markup, or an optional markup plugin like smarty markup, etc.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Definitely! I think your feature request is very useful and must be implemented.

Maybe you can add it to the Sf.Net feature tracker so that it will not get lost?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply