You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Showing a list of users
Showing or hiding content based on external data (logged in user, a cookie, current url, etc.)
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:
It would be interesting if macros could describe themselves and their parameters, to facilitatie some GUI-assistance in invoking these macros. This might also be useful on a shorter term to maybe generate documentation about available macros and their available parameters, to be shown to users.
The macro base class might need some extra helper functions, in particular for parsing attributes (arguments)
Add pagination to the pagelist macro
Optimize pagelist sorting (i.e. cache dates in the index so you do not need to read all page XML files)
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: