PlanBCode / hypha

1 stars 8 forks source link

Further improve macros and implement more macros #367

Open matthijskooijman opened 3 years ago

matthijskooijman commented 3 years ago

This is a bit of a placeholder issue for further Macros-related improvements and a followup of #298. If specific parts of this issue are prioritized, they might warrant a separate issue for further discussion.

Some ideas on additional usecases for this

Note that something like "Showing related articles" is not really a macro at first glance, since you wouldl likely want to put that on every article, not only the ones where you manually include this macro code. However, that suggests another use for macros: Maybe you could globally config something like "On all pages with type=peer_reviewed_article, append the related_articles macro to the #pagefooter element". This would certainly be a later addition, though.

As for improving macros themselves: