Mercury theme – Front page -> Filter by: Maintag -> has no effect on …
- This topic has 11 replies, 3 voices, and was last updated 2 weeks, 5 days ago by .
January 23, 2024 at 8:41 am #11623much.fun
Dear all –
I am using Mercury 126.96.36.199 with Publii 0.44.4 (build 16557).
I created several posts, added tags and a Maintag to each post, and now I would like to show the Maintags on the Frontpage, only.
Under Theme -> Layout -> Front page -> Filter by: I chose Maintag, but this has no effect at all. Does this functionality not work, or is there anything I forgot to adjust ?
Thanks in advance, MichaelJanuary 26, 2024 at 3:42 am #11641candidexmedia
Create with helper: https://forum.getpublii.com/topic/get-posts-by-main-tag/January 26, 2024 at 7:49 am #11649much.fun
Thank you, @candidexmedia,
I have seen these forum entries, but my question is, why there is this Maintag filter thing in Publii, if it does not work. It is quite irritating for users like me, who want to use Publii without further programming.
My suggestion to the Publii team ist, either to remove this filter from the App or make it work the way the name promises. I would prefer the second solution.
Cheers, MichaelFebruary 1, 2024 at 11:31 pm #11685candidexmedia
Hi @much.fun: sorry for misunderstanding your post! I even went back to the first link and realized that the helper has to do with displaying posts based on their maintag, but nothing to do with only displaying or fetching tags that are used at least once as a maintag.much.fun wrote:
why there is this Maintag filter thing in Publii, if it does not work.
The filter does work, in the sense that clicking on the name of a tag should only show posts that have that tag as a main tag. The issue is that all the tags are displayed — even the ones that aren’t used as main tags in any post. Clicking on those returns no posts. I think most of us would expect those tags to not be displayed in the list of tags when we select “Filter by: Maintag”. There needs to be an additional checkbox called “Hide non-Maintags from the list of filters” or something, but based on what I’ve read in the dev docs, this isn’t possible.
I’m also in need of a way to only display Maintags for a new site I’m working on. For now, though, I’ll use the getTagsHelper technique and manually select the tags that I want to display as filters. Once I get around to doing that, I’ll share a patch of the Mercury theme with Theme settings options to make this a bit easier.February 2, 2024 at 9:51 am #11687much.fun
thanks for all your effort in this issue.
I am still not sure, what the programmers thought, what these Maintags are good for, in respect of the App. I mean, I can set them when writing a post, but there is no functionality which uses it ( except I go for programming ).February 2, 2024 at 10:40 am #11688b0fh
Could this helper possibly achieve the goal?February 2, 2024 at 11:49 am #11689much.fun
I am quite sure it does, but it does not solve the issue with the Publii AppFebruary 2, 2024 at 6:17 pm #11692candidexmedia
I’ve created a feature request: https://github.com/GetPublii/Publii/issues/1329
Feel free to chime inFebruary 2, 2024 at 7:02 pm #11693candidexmediamuch.fun wrote:
I am still not sure, what the programmers thought, what these Maintags are good for, in respect of the App. I mean, I can set them when writing a post, but there is no functionality which uses it ( except I go for programming ).
My original, detailed reply never posted, but the Maintags feature is separate from the filtering function present in certain themes.
Maintags are used in and useful for themes that:February 2, 2024 at 7:24 pm #11694much.funFebruary 3, 2024 at 2:38 am #11700candidexmediamuch.fun wrote:
Again: If the Publii App provide the possibility to set a filter for the Frontpage to use Maintags, only, I would like to see only Maintags in the List of tags on the Frontpage.
This is an issue with the Theme(s) that display this setting, not the app or Maintags in itself — that’s why it’s under Theme settings. Theme developers can set certain parameters that can be edited in the app, but don’t come from the app out of the box. That’s why different themes have different Theme settings.
First, Publii (or someone out there with the skillset) needs to create some kind of helper that can fetch all the tags that have been used as Maintags in order for the listed tags to be modified. Right now, as a developer, it’s only possible to list every single tag, or only display tags that the user has handpicked by ID.
That is what this GitHub issue is hoping to address: https://github.com/GetPublii/Publii/issues/1329
Once that helper mechanism has been created, the theme files can be modified and allow users to filter down the list of displayed tags automatically.February 5, 2024 at 5:24 pm #11741much.fun
Ok, I see. Not very happy with this answer though, but as a user I will wait vor the mentioned helper thing.
Thanks again for all your explanations and patience 🙂
- The topic ‘Mercury theme – Front page -> Filter by: Maintag -> has no effect on …’ is closed to new replies.