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
As of now, only alltags is available globally and it only contains String list of tag names. For one of the blogs, on home page, I want to show number of documents in each tag, which doesn't seem possible or easily achievable. May be alltags can return list of Tag model where Tag object could be a map of { "name" : "test", "noOfDocuments": 30, page-url: "{name/sanitizedname}"} or more elements.
I can write a script in template to iterate over published_posts or published_content and then get the stats but that will slow down rendering along with adding other scripting complexities to templates.
P.S. I actually wanted to show categories and their post count but until #293 is available in release, I am choosing tags. Although, even categories then should be made available globally with more data elements.
The text was updated successfully, but these errors were encountered:
Accidentally closed it while adding previous comment, I will keep it open for review to see if more data about tags should be exposed? I am going to use the solution specified in #216 .
As of now, only
alltags
is available globally and it only contains String list of tag names. For one of the blogs, on home page, I want to show number of documents in each tag, which doesn't seem possible or easily achievable. May be alltags can return list of Tag model where Tag object could be a map of{ "name" : "test", "noOfDocuments": 30, page-url: "{name/sanitizedname}"}
or more elements.I can write a script in template to iterate over
published_posts
orpublished_content
and then get the stats but that will slow down rendering along with adding other scripting complexities to templates.P.S. I actually wanted to show categories and their post count but until #293 is available in release, I am choosing tags. Although, even categories then should be made available globally with more data elements.
The text was updated successfully, but these errors were encountered: