Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Class and ID for txp:comment_name_input
What you mean?
Offline
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
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
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
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