Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-21 18:56:18

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

semantic html navigation

due to semantic html and for accessibillity reasons I suggest to abandon the active class for category list and section list. I propose to use a wrapping strong tag around the link to the current section or category.

Furthermore I think nested list rendered from categories tab in which nested list are created should be developed for textpattern core.


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#2 2008-03-21 22:53:37

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: semantic html navigation

How is extra markup more “semantic” than a class?

Would you rephrase the second sentence? I cannot understand what you’re saying.

Offline

#3 2008-03-21 23:27:04

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: semantic html navigation

Mary schrieb:

How is extra markup more “semantic” than a class?

I believe a strong tag would be more semantic html because you cannot tell what the current category is without css. its not the html telling the current category. to find out it is necessary to view the source code.

Would you rephrase the second sentence? I cannot understand what you’re saying.

what I wanted to say was that when I create categories with child-categories within textpattern the category_list tag should be able to output category sensitive nested lists.


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#4 2008-03-22 02:16:03

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: semantic html navigation

The active element shouldn’t be linked if you’re really pushing semantics and interface design. However, <txp:category_list/> and <txp:section_list/> could have active_element and linked=[1, 0] as attributes. If set, active_class would still work the same.

Personally, I think the strong element is worthless in a navigational any setting. But that’s another can o’ worms.

Could you provide a clear example (content and desired HTML) of your second sentence?

Offline

#5 2008-03-22 10:14:23

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: semantic html navigation

jm schrieb:

The active element shouldn’t be linked if you’re really pushing semantics and interface design. However, <txp:category_list/> and <txp:section_list/> could have active_element and linked=[1, 0] as attributes. If set, active_class would still work the same.

my thinking exactly.

Personally, I think the strong element is worthless in a navigational any setting. But that’s another can o’ worms.

why ist that? it provides clear emphasis to the active category. however with an active wrap tag we are all free to use what we think is best.

Could you provide a clear example (content and desired HTML) of your second sentence?

content:

  • category 1 + subcatetgory + subcatetgory
  • category 2
  • category + subcatetgory + subcatetgory

html:

<ul> <li>category 1 <ul> <li>subcatetgory</li> <li>subcatetgory</li> </ul> </li> <li>category 2</li> <li>category 3 <ul> <li>subcatetgory</li> <li>subcatetgory</li> </ul> </li> </ul>

this isn’t showing well. just a nested list displaying the structe of the categories created in txp. with case sensitive I meant that the subcats should only show if their parent category is the active category.


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

Board footer

Powered by FluxBB