Page 1 of 1

New Event Plugin: HTML nuggets inlined in entries

Posted: Fri Feb 09, 2007 1:14 am
by Fanjita
Hi, any interest in a new event plugin for inserting HTML blocks into entry content? Think of it as an HTML macro, e.g.
article text article text {replacer block1} article text
to insert the nugget called "block1" in the article.

I use it to insert inline google ads, but it could be used for all sorts of purposes. It's stackable for multiple nuggets.

Of course, there might be a plugin that does this already (it's pretty basic) but I haven't found it.

One last thing - how would I go about getting this released to Spartacus, if there is any interest?

P.S. I've not been using Serendipity long, but it's a nice system to work with. The plugin framework is particularly nice :) Great stuff!

Re: New Event Plugin: HTML nuggets inlined in entries

Posted: Fri Feb 09, 2007 10:01 am
by garvinhicking
Hi!

Have you had a look at the serendipity_event_includeentry plugin? It also allows to include HTML blocks...? It's available via Spartacus ("Include Entry / Blocks" or something like that) - and might be just what you're looking for?
One last thing - how would I go about getting this released to Spartacus, if there is any interest?
Plugins you'd like to contribute can be announced here, and will be discussed for inclusion - usually we put all plugins in there that adhere to certain coding guidelines (PEAR style), have no obvious security issues and do not duplicate functionality. :)
P.S. I've not been using Serendipity long, but it's a nice system to work with. The plugin framework is particularly nice :) Great stuff!
Very nice to hear that! I'm looking forward to your help and plugin contributions. :-) :-)

Best regards,
Garvin

Posted: Fri Feb 09, 2007 12:12 pm
by Fanjita
Ah, I see it: "Markup: Include entry data/templates/blocks".

Yes, it looks like that would do what I wanted. Ah well, I've got my own now, and it was a good exercise in plugin development.

If I feel a need for any other missing function I'll be sure to knock something together and contribute it.