Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-06 18:02:06

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

[textile] Name attribute

Can textile do this, or am I stuck with hardcoded HTML?

basically I would love to have [div name=whatever”]

Offline

#2 2007-01-06 18:43:53

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [textile] Name attribute

I believe, one would have to hack textile to do this.( For ID and classes )
Why does it work on headers and paragraphs and not on divisions, I really don’t know ?

This works:

 h1(#topstory).  What's up today on TXP Planet.

( What do you want the name attribute on a division for though ? this is invalid in XHTML strict )
BTW.: Check your mail also.

regards, marios

Last edited by marios (2007-01-06 19:10:19)


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2007-01-07 02:36:46

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [textile] Name attribute

name should not be used. So no, not in textile.

Offline

#4 2007-01-07 02:45:29

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

Re: [textile] Name attribute

Textile can output ids, but not names.

In case it’s misunderstood: you can create anchor references using the id attribute rather than name, i.e.:

<p><a href="#whatever">Go to Whatever</a></p>

<div id="whatever">
	<p>Whatever</p>
</div>

Offline

#5 2007-01-07 03:59:04

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [textile] Name attribute

And in textile:

"link":#a
h3(#a). title with anchor

Alex

Offline

#6 2007-01-07 12:21:53

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [textile] Name attribute

Thanks for the help folks,

I was using the name attribute for some javascript functionality but have decided against it since my pages wont validate.

Offline

Board footer

Powered by FluxBB