Page 1 of 1

Freetag plugin: Can we please make it more flexible?

Posted: Tue Jun 03, 2008 12:35 pm
by yellowled
Hi,

there are two things about the freetag plugin (event) which drive me crazy all the time.

For starters, I (and some other people) would like to be able to modify the text which preceded the actual tag list. Currently, it's something like "Defined tags for this entry" - it would be awesome to have a plugin option to modify this text. (Yes, I know I could probably overwrite this using some config.inc.php wizardry, but think about the John Does among us.)

Second, newer versions of the plugin have an option to emit the tags to a smarty variable, which is great. But this variable contains the actual tags line as well as the related articles part (if activated). This really should be seperated in two variables. Users and templates designers might want to put those two parts in different areas (i.e. tags before the entry, related articles below it).

(I hope this isn't too much of a coding hassle. If so, I apologize :))

YL

Re: Freetag plugin: Can we please make it more flexible?

Posted: Tue Jun 03, 2008 2:13 pm
by garvinhicking
Hi!

The danger of this text is that it will be swept away when the user changes his language. Currently, they would read english if their browser is english, etc. When you fix it to your own one, it will stay like this.

Because of that danger, I really suggest that only advanced users should change it, which they can do by using smarty and placing the freetag with smarty templating.

As per your second suggestion, this would be reasonable to introduce new variables. Let the old one stay as it is, and add new ones for split usage. If someone wants to take on this, please have a go and submit a patch.

Regards,
Garvin