-
Notifications
You must be signed in to change notification settings - Fork 17
proposed: move category group pages out of /tags #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Well that was an exercise in frustration: anyone have any idea what's going on and how to get this to work? I'm obviously missing something really simple. See the commit storm from 49619ee to ef88ba4 to see what I've tried. Basically, the idea is to factor out the code in all the '/tags/groupname-tags.md' documents so we use one include in each file, instead of repeating the same code over and over. e.g. in the Search tags group:
I want that to dutifully go away and plug in the string "Search tags" anywhere it encounters
Except it doesn't work. It plugs the value in the first two and (presumably) plugs it into the one in the View the source on that page and scroll waaaaay down to about line 700ish. You'll see the start of the comment, the variable string correctly injected into the text headings, twice, and then 500 or so lines of nothing before the closing I've tried different quoting styles, including no quotes, verified that the loop is indeed being executed and returning pages and tags. Even tried capturing the incoming variable into another variable and using that in the loop. Nada. Scanned tonnes of Liquid documentation like this and come up empty. It claims:
Seems to support the theory that the right-hand term will be converted from its internal representation to a string for comparison. But maybe if the left-hand argument isn't a string (is it in this case? who knows) then maybe that conversion's not triggering. I've not found an example of matching a variable with another variable. Maybe it's not possible and Liquid has to match strings? Stupid if so. If anyone has any clues, I'd love to hear them. @philwareham @bloatware @jools-r @petecooper Bueller? Anyone? Bueller? |
Chinese for me, sorry. |
Yeah, it's kinda like Mustache in principle, but with a slightly crappier syntax! |
Maybe /tags/types/? |
Works for me. |
Partially done. Still can't fathom out the syntax for using an include so we'll make do with the non-include version for now and if we can refactor it in future, great. |
Absolute URL of front-end page
(e.g.) https://docs.textpattern.com/tags/conditional-tags
(see #153 also)
The proposal
Subcategory pages are mixed in with tag documents in the /tags directory. Unfortunately, in order to have a dedicated page for each subcat that lists only the tags in that group, a physical file needs to be present.
Idea:
Thoughts?
The text was updated successfully, but these errors were encountered: