Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-10 19:59:25

sanchothefat
New Member
Registered: 2007-01-10
Posts: 2

How do I alter the ID given to form inputs?

Hi there,

I know its not necessary but when you install TXP the comments form has labels with ‘for’ attributes that do not correspond to the input ids, it was breaking my page validation.

Is there a way to alter the generated input id or shall i just change all the form labels to match?

Cheers,

Rob

Offline

#2 2007-01-10 22:30:49

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: How do I alter the ID given to form inputs?

I would just redo do the default form ‘ form > comment_form’ … with correct form “for” labels … I did make a new comment_form_new and called that from my article form

<txp:if_comments_allowed>
<txp:comments_form form=“comment_form_new” />
</txp:if_comments_allowed>


nuff-respec ::: dannyb

Offline

#3 2007-01-11 02:32:17

sanchothefat
New Member
Registered: 2007-01-10
Posts: 2

Re: How do I alter the ID given to form inputs?

Cheers Danny,

If it aint broke dont fix it

sorted, restecp to you

Offline

#4 2007-01-11 08:23:51

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

Re: How do I alter the ID given to form inputs?

Thanks for letting us know, I’ve corrected this in svn (so it should be correct in the next release). :)

Offline

Board footer

Powered by FluxBB