Forums / Cotonti / Extensions / Slots and Tags

Extension to use TPL tags and functions in menu slots

Kingsley
#36383 2012-12-02 17:07
#36376 Trustmaster:

That's a cool thing! Any real world use case examples?

Here's another idea that i never had time to implement: so we have N slots in configuration by default. Why not make an admin tool that would add any slots you need on demand, using its own table and making them available via global tags like {PHP.out.slots.my_super_slot}.

That would be a good one for some (personally I frequently use the slots). But wouldnt that in combination with making plugin tags availible too, make a it a more versetile tool? I never really liked the restrictions that many plugins have. Maybe an simple example is in order: Take the latest donations plugin for example. It only shows on the index. and when I want to display that for example in a certain list, I have to do crazy stuff to add it in there, whilst if it were possible to add it via a slots, it will be easy peasy to achieve.

Yeah, and i know that for the lot of you achieving that example is something you can do blind. But he, limited to html/css here, so yeah, I am always looking for ways to make my own life a bit easier, which with this neet little plugin already is helping (thank you Macik).  I for one am keeping my fingers crossed that this can be achieved..