Skip to content

proposed: change to /tags directory structure #153

Description

@wion

Just a proposal to sit and think about. Nothing to railroad through.

The current structure of the /tags directory has the following items (if I'm not missing any), plus a whole-lotta tag pages...

  • tags
    • shortcodes
    • tag-basics
    • index.md
    • article-tags.md
    • comment-tags.md
    • conditional-tags.md
    • deprecated-tags.md
    • error-handling-tags.md
    • file-tags.md
    • future-tags.md
    • image-tags.md
    • language-tags.md
    • link-tags.md
    • markup-tags.md
    • navigation-tags.md
    • programmer-tags.md
    • search-tags.md
    • structural-tags.md
    • tag-attributes-cross-reference.md
    • tags-in-development.md

Conceptually speaking, the index.md is currently serving as a 'reference index' for all the tag pages, as opposed to giving all the items in the /tags directory equal weight. As a result it's difficult to find everything available, and especially if the homepage index does not list all the pages (and it currently doesn't).

I'd propose the following kind of structure instead, which accounts for everything as a start (items in bold are new):

  • tags
    • reference (all tag pages only here)
      • . . .
      • index.md
      • . . .
    • shortcodes
    • conditional-tags.md
    • deprecated-tags.md
    • index.md
    • learning-tags.md ('tag basics' becomes a single doc)
    • structural-tags.md
    • tag-attributes-cross-reference.md
    • tags-in-development.md

The revised structure offers several benefits:

  1. It enables setting up consistent use of category include lists for platform categories in the new structure. See issue page: Index2 #144.
  2. It better organizes the parent category directory, separating tag pages from other pages, and provides a dedicated and proper index to tag pages, so the existing reference index can be easily replaced, if but by a new link.
  3. In the case of 'tag basics', we can reduce the number of pages needed by merging those files into a single document; each becoming a section. It works in this case because: 1) most of the files are quite short, and 2) they all fit a common theme/objective, which is to learn Textpattern tags. A single document is thus easier to link to for that purpose and maintain as a narrative from beginning to end.

The only negative from all of this is breaking links to the main index.md page that people likely have come to see as the 'Tags Reference'; and not surprisingly, because that's how the directory was made to appear, though it wasn't the sole function.

IMO, the compromise is worthwhile for the benefits gained by a more logical structure. And since we now have root-relative links working, all in-page links to tag pages should not be affected, only the few links to the 'tags reference'. But since that will now just become a clear link on the main page, and the new index list (No. 1 above), the 'reference' index is still easily findable by the old link, and will still look exactly the same when people arrive there. Everything will smooth out in short time, I'm sure.

cc-ing the folks who have a vested interest in this: @philwareham, @bloatware, @Bloke, @petecooper

Checklist

Checklist moved to #155 since we're not moving tag pages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

platformConcerns site administration issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions