Sterc / seosuite

This repository contains the SEOSuite 2.x MODX extra.
GNU General Public License v2.0
13 stars 18 forks source link

More control over output #108

Open momon opened 1 year ago

momon commented 1 year ago

I guess this is mainly a feature request because I feel somewhat stuck. I would like to have more control over the output by specifying the order in which I want meta tags to show.

I could achieve it using the placeholders approach where I know I have total control, however the placeholder approach uses the built in templates which contains self closing tags. So in order for me to get rid of self closing tags I instead use the snippet call with my own templates. But when using the snippets call with my own templates I no longer have control over the order in which the tags are shown. See my dilema?

I guess I could use an output filter on each placeholder to address the self closing tag but that would be (in my opinion) unnecessary processing and considering this would be happening on each page then it is a waste of resources (again this is in my personal opinion). So I wished there was a way to gain a bit more control over the output with the snippet call and perhaps define an order in which I want the output of all tags to show (maybe an outer template could work here, then we can use the same placeholder approach on the outer template).

Thanks!