Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [wiki] Tags Reference
Not sure how up to date the test-wiki is so you might want to sync the databases first or something like that. It would only get updated when I did upgrades or was testing things out.
I need to see what’s involved in deleting all the pages. MW has a lot of foreign constraints on tables.
Shoving is the answer – pusher robot
Offline
Re: [wiki] Tags Reference
hakjoon wrote:
Not sure how up to date the test-wiki is so you might want to sync the databases first or something like that.
Good point. I’ll do it. Suggests we should implement the new skin there too since a lot of categories, templates… are created/used in main, some of which rely on the new css.
I need to see what’s involved in deleting all the pages. MW has a lot of foreign constraints on tables.
No biggie, we can always one-off them from the front-office. Though I think even that does not truly delete them (due to the “recovery” feature) unless someone thereafter uses the newly available page title to overwrite the history trail, theoretically.
Offline
Re: [wiki] Tags Reference
A) With regard to the Tag Reference label, not a lot folks in the TC community chimed in about the form/usage, but suggestions were for:
- Tag Reference
- Tag References (with some interesting explanations why)
Since we had a validation here in the Txp community for Tag Reference, that’s how we’ll do it (still a wiki category, however — category:Tag Refernce).
B) I need some more clarification on structuring the reference going into 4.0.7. Especially looking for ruud and wet’s feedback on this for their knowledge of what’s in the pipeline.
(Note: In the remaining text the term “category” is used a lot. It referes to wiki categories used for organizing wiki pages; it does not mean in this case the specific “category” tag page(s).)
From these insights, it appears we should have both a functional and contextual structure. With that in mind, let’s consider it. Here’s what exists currently:
- Alphabetical Tag Listing (default)
- Tags by Function (not yet populated)
- Attributes Cross-reference
As explained in the past, we’re going to make the Tags Reference default point a wiki category, which obfuscates the alphabetical listing page (a category auto-alphabetizes wiki pages already) and provides batch printing capabilities.
That leaves the Tags by Function and Attributes Cross-ref pages, which are less usable as single pages having multiple lists. Concerning ourselves with functions only, if we knew what the functional categories were supposed to be, then we could use additional wiki categories for these functional divisions, which can be made subcategories of the main reference that filter tag pages by the given functions. For example (where F1, F2, etc are the different functions)…
- category:Tag Reference
- category:F1
- category:F2
- category:F3
- etc
Please realize that in addition to eliminating content redundancy and auto-alphabetizing lists (thus lower content overhead) the subcateogories will serve as subsections in a printed PDF manual. Without them the PDF manual will just be a long doc that goes through the tag pages in alphabetical order (i.e., at the category:Tags Reference level). A given tag page is easily added to one or more functional categories by adding the cat tag(s) to the bottom of the page. The wiki does the rest by auto-alphabetizing the pages in the different cat filters, respectively.
At this point all we need to know is what will the different functions will be so they can be named/created. Extracting this idea from that obsolete thread, it looks like they might be:
- category:Tag Reference
- category:Article Tags
- category:Image Tags
- category:File Tags
- category:Link Tags
- etc.
- Attributes Cross-reference (for lack of knowing what else to do with this page)
Is that Article, Image, File… organization going in the right or wrong direction?
Next is the contextual organization at the tag page level. For this we can use the mininav template I designed and create as many contextual lists as needed (ensuring each custom list is named under a meaningful convention for clarity into the future).
This will be easier to see/realize when we can begin rebuilding the pages under the new titles (soon), and create a working example based on some tag relationships that already exist (your suggestions welcome), but hopefully you get a little bit of the idea.
Anyway, is this on the right track? Clarifications? Better to know now than after 25 attempts. ;)
Offline
Re: [wiki] Tags Reference
In my limited understanding of ‘category’ as it pertains to a wiki (must log in and play now I have an account, but fear I might break something!) your proposition sounds logical.
With reference to:
- Category:Tag Reference
- category:Article Tags
- category:Image Tags
…
I seem to remember mention that some tags would appear in more than one category, e.g. article_image would be both an article category tag and an image category tag, right?
fwiw, to complete the list off the top of my head, I can see a few classifications of tags. Perhaps:
- category:List Tags
- category:Conditional Tags
- category:Comment Tags
- category:Search Tags
- category:Error Handling Tags
- category:Navigation Tags
- e.g. link_to_next/prev/home, breadcrumb, etc
- category:Meta Tags
- meta_keywords, meta_author, page_title, lang??
- category:Programmer Tags
- not sure about this one but it covers txp:variable (4.0.7), txp:php, txp:txp_die, etc
That leaves a few odds and ends like txp:hide, txp:password_protect, txp:text, txp:else, etc that I’m loathe to put in a ‘miscellaneous’ category because misc is totally meaningless but I’m struggling to categorise right now. Is this too many categories>? Can any be consolidated or renamed and still make sense?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#20 2008-10-13 19:14:25
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [wiki] Tags Reference
Maybe something like
- category:Markup tags (not sure about this name, you will probably find something better…)
for txp:css, txp:site_name, txp:site_slogan, txp:page_title, txp:page_url, txp:hide(?)…
Maybe txp:section and txp:category could go in here as well?
Stef, txp:else should go in category:Conditional tags, don’t you think ;)
Offline
Re: [wiki] Tags Reference
Els wrote:
- category:Markup tags
Nice, works for me.
txp:else should go in category:Conditional tags, don’t you think ;)
*cough* haha, of course. D’oh.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: [wiki] Tags Reference
Bloke wrote:
I seem to remember mention that some tags would appear in more than one category, e.g. article_image would be both an article category tag and an image category tag, right?
I think this is exactly what wet and ruud were suggesting, yes, and it’s easy to do with wiki categories. A given tag page can be added to any number of wiki categories (in this case signifying Txp tag functional groups) by simply adding the respective wiki cat tags to the bottom of the txp tag page. (This is how it works.)
A summary of your ideas so far:
- category:Tag Reference
- category:List Tags
- category:Conditional Tags
- category:Comment Tags
- category:Search Tags
- category:Error Handling Tags
- category:Navigation Tags (e.g. link_to_next, link_to_prev, link_to_home, breadcrumb…)
- category:Meta Tags (e.g., meta_keywords, meta_author, page_title, lang??)
- category:Programmer Tags (e.g., variable (4.0.7), php, txp_die…)
- category:Markup Tags (e.g., css, site_name, site_slogan, page_title, page_url, hide??…section, category ??)
Comments:
- “Programmer Tags” makes sense to me as a non-programmer, and it has a stronger distinction than if you tried using “Developer Tags,” which could be more misleading to people…maybe not.
- “Markup Tags” …
could this be “Template Header Tags”? (excepting the section and category tags)Ed. Nix that, clearly they are not all suggestive of HTML header tags, strictly. - “Structural Tags” ?? (e.g., section and category)
Last edited by Destry (2008-10-14 11:22:15)
Offline
Re: [wiki] Tags Reference
Thanks for the category link: helps in my understanding.
Destry wrote:
“Structural Tags” ?? (e.g., section and category)
Yep, that works for me. So adding in the original categories (article, image, link, etc…) gives us, what, 14 categories? Sounds a lot but I suppose if some of the tags are in more than one, it increases the chance of finding what you’re after.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: [wiki] Tags Reference
The Tags Reference conversion is now underway and any help is welcome.
The wiki is now case-sensitive for page titles. This means you can save a page called “Comments” and “comments” as two different pages. (That happens to be the only case where a tag page has the same spelling as an existing page, so the case-sensitivity is a good thing here.)
Here’s the steps as I will be approaching them:
- DONE
[creating (not moving) new tag pages with the new titling convention (e.g., txp:article_custom / now becomes just article_custom) You can follow along with which ones are created by watching the page links change color here. - DONE
Adding the category tage (namely [[category:Tag Reference]]) to bottom of each page so it alphabetizes in the new index location, category:Tag Reference. (Actually, I’ll be doing this at the same time as step 1.) Note: At the same time, change the HTML comment to read just as “Keep at bottom!” so that it’s valid for both wiki category and language link tags. - Organize content to have the following top-down structure (see article as a finished example):
- tag syntax example (in code markup) — this replaces the former “Syntax” section
- description (no header)
- Attributes
- Examples
- Edit content to:
- add the mininav list template tag at very top of the page code (see “article” page as example)
- Wrap the first instance of the tag name in description in double straight brackets (like a wiki link) to make it function as a bold contextual link (not hot)
- remove links referencing “Single Tag”, “Conditional Tag” etc in glossary (which is deprecated). Instead, simply put these in italic text. (Note: definitions for “sigle tag”, “conditional tag” and “container tag” are now in category_talk:Tag_Referenc, if you would rather use that.)
- change section headers so all move up one level. I.e., h3 headers to h2 headers, h4 headers to h3 headers, etc
- edit links referencing old tag pages to reference new pages. (Simply delete the “txp:” prefixes and the tailing “/” from existing links, and removing blank spaces. Keep the underscores in compound tag names!)
- edit links that go to the attributes cross reference using the correct title of that page: Attributes Cross-reference
- remove unnecessary extra blank lines between block element content (headers, paragraphs, etc.)
- Begin subcategorizing tag pages into functional groups (as discussed in the previous posts in this thread).
If anyone can help, feel free to jump ahead to any of the other steps for pages already converted. Together this will be quick work. Otherwise you just have to wait. :/
Last edited by Destry (2008-10-17 13:35:32)
Offline
Re: [wiki] Tags Reference
OK cool, I’m up for giving you a hand. I’m going to try one now to see if I can get my head round it, using article as the template and pasting in the content from the old tag page; I’ll start from the bottom with txp_die since nobody uses it ;-)
One thing in category:tag Reference. Why are article and article_custom filed under “A” while the other tags starting with ‘a’ are filed under lower-case “a”?
Last edited by Bloke (2008-10-17 08:54:03)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: [wiki] Tags Reference
Bloke wrote:
One thing in category:tag Reference. Why are article and article_custom filed under “A” while the other tags starting with ‘a’ are filed under lower-case “a”?
Good catch. That’s because those two pages were created the last time the no-caps config was made, then we undid the config which caused MW to reconvert the “a” to “A”, and now that we made the config again it appears the titles (lowercase) were remembered but not the “A” of the alphabetizing section.
I’ll fix it. I think it’s just a matter of recreating those pages now under the re-implemented no-caps config to retrain MW. :)
Ed. Wait, you still see it that way, because I don’t see it that way. I see just “a” as it should be and all categorized fine. Try clearing by hitting F5, or logging out and back in again.
Last edited by Destry (2008-10-17 09:15:30)
Offline
Re: [wiki] Tags Reference
Destry wrote:
Wait, you still see it that way, because I don’t see it that way. I see just “a” as it should be and all categorized fine.
Whatever you did (or didn’t do ;-) it’s showing up fine under the lower-case ‘a’ now. Top banana.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: [wiki] Tags Reference
Destry wrote:
This means you can save a page called “Comments” and “comments” as two different pages. (That happens to be the only case where a tag page has the same spelling as an existing page, so the case-sensitivity is a good thing here.)
It turns out this is not true after all. Links appear to be treated as different, but if you save content in one form of the caps, you will see it in the edit mode of the other link when followed. Bottom line, it’s the same page having two different link labels to it (even though one link appears in red text).
As mentioned, that was the only wiki page where there was a conflict. In this case we’ll use “comments” for the tag page, and “Comments (admin-side)” for the admin-side Comments panel page (but make it appear as “Comments” on the surface).
No harm here. Carry on.
Last edited by Destry (2008-10-17 09:58:21)
Offline
Re: [wiki] Tags Reference
I’ve made a start on a few tags. Hope they’re ok. I made a deviation from the bottom-up approach after I’d done the thumbnail tag because the image tag had the same attributes and cried out for some copy n paste action.
Sorry I’m a lot slower than you at it. Newbie syndrome. I haven’t done the subcat/ref thing yet. Gotta look at how it’s done first on a few other tags.
Anyway I’d better go and do some ‘real’ work or my boss might notice; I’ll carry on later (if there’s anything left to do judging by your rampant tearing through the tags…!)
ED: if I’ve made any boo-boos in layout/structure, please let me know so I don’t do it again. Think I’ve caught everything based on your post and scrutinizing the article tag.
ED2: Ah, I see you’re mostly copying content directly over right now and will be editing later. That explains the speed; thought you were some kind of cyborg :-)
Last edited by Bloke (2008-10-17 10:37:16)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: [wiki] Tags Reference
Bloke,
The pages you edited look fine.
Yep, I’m just getting them in place first so to complete the new Tag Reference Index and edit the wiki navigation.
I’ll work on the subcategories. I hope folks will just help with the in-page editing that needs done — steps 3 and 4
Thanks for your help.
Offline