Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-01-24 11:51:43

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Class and ID for txp:comment_name_input

I want the tag <txp:comment_name_input /> to output

<input type=“text” class=“field” id=“name-field” />

How to achieve this?

Offline

#2 2016-01-24 12:11:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: Class and ID for txp:comment_name_input

I am not sure if it will work but did you try just inserting it in your comments layout instead of using the tag?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2016-01-24 14:06:41

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Re: Class and ID for txp:comment_name_input

What you mean?

Offline

#4 2016-01-24 16:09:20

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: Class and ID for txp:comment_name_input

In Presentation>Forms>comment_form, try replacing <txp:comment_name_input /> with <input type="text" class="field" id="name-field" />


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2016-01-24 18:41:30

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Re: Class and ID for txp:comment_name_input

No it does not work.

I needed this to mod my form to fit the style, I went the other route now, i’m modding my style to fit my form.

Offline

#6 2016-01-24 19:14:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: Class and ID for txp:comment_name_input

sochicomputerRU wrote #297563:

I needed this to mod my form to fit the style, I went the other route now, i’m modding my style to fit my form.

That is indeed easier and possibly more future proof with txp updates.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2016-01-24 19:18:20

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Re: Class and ID for txp:comment_name_input

Actually I said it too early. If I enter this into comments form, it works.

<input type=“text” value=”“ name=“name” size=“25” class=“comment_name_input field” id=“name-field” required />

Notice the styling class field. That is what I need!

Offline

Board footer

Powered by FluxBB