Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-10-21 07:40:07
- Retrax
- Member
- Registered: 2006-10-10
- Posts: 59
A "class" for the <txp:search_input /> Command?
Hello,
is it possible to add in a future version of Textpattern a “class” to the <txp:search_input />
Command? So it would be possible to style the search field a little bit with CSS Commands. For example to have a border around the search field,…
Thank you!
Regards
Last edited by Retrax (2006-10-21 07:41:07)
Offline
Re: A "class" for the <txp:search_input /> Command?
Retrax wrote:
is it possible to add in a future version of Textpattern a “class” to the
<txp:search_input />
Command? So it would be possible to style the search field a little bit with CSS Commands. For example to have a border around the search field,…
Hmm, the tagbuilder has a field to input a class. The bad news is, it doesn’t seem to work at all.
<txp:search_input button="search" class="test1" label="Search" section="articles" size="10" wraptag="div" />
results in
<form action="http://path.to.site/articles/" method="get"><div>Search<br /><input type="text" name="q" value="" size="10" /><input type="submit" value="search" /></div>
That is a bug. I would expect div class="test1"
or input class="test1" type="text"
.
(and an additional feature request then. Can that tag generate an id
and label
?)
I had not noticed before, I build that search form manually.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#3 2006-10-22 17:40:48
- Retrax
- Member
- Registered: 2006-10-10
- Posts: 59
Re: A "class" for the <txp:search_input /> Command?
Hello,
phiw13 schrieb:
>> p. Hmm, the tagbuilder has a field to input a class. The bad news is, it doesn’t seem to work at all.
sorry, but in my admin interface / tag builder there is no such possibility to configure a “class” in the search-input tag!
hmm… i am using txp 4.0.4, do you have another version?
thanks and regards
Last edited by Retrax (2006-10-22 17:41:06)
Offline
Re: A "class" for the <txp:search_input /> Command?
I have the CSS class option in the tagbuilder (4.0.4) too, but taghandlers.php is lacking class
as an atribute for search_input
.
I’ve always made mine manually too.
<form action="<txp:site_url />" method="get">
<label for="query">Search:</label>
<input id="query" name="q" type="text" />
</form>
Offline
#5 2006-10-23 07:30:00
- Retrax
- Member
- Registered: 2006-10-10
- Posts: 59
Re: A "class" for the <txp:search_input /> Command?
Hi,
ok, now i found the Tag Builder, too ;)
It’s right, there is a “class” field and it will not be recognized. It’s a bug.
Offline
#6 2006-12-09 19:34:14
- adamtal
- Member
- Registered: 2006-09-14
- Posts: 25
Re: A "class" for the <txp:search_input /> Command?
Is it possible to make the “value” changeable, so i can get another anchor instead of “submit”?
Also for other items, like ‘Preview comment’, or “Textile Help” (most 40y.o, or 13y.o, don’t know – and don’t want/need to know – what ‘textile’ means)
Offline
#7 2006-12-10 05:18:13
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: A "class" for the <txp:search_input /> Command?
Offline
#8 2006-12-10 12:16:19
- adamtal
- Member
- Registered: 2006-09-14
- Posts: 25
Re: A "class" for the <txp:search_input /> Command?
Hey Mary, it seems your link is broken…
Offline
#9 2006-12-10 12:31:50
- adamtal
- Member
- Registered: 2006-09-14
- Posts: 25
Re: A "class" for the <txp:search_input /> Command?
gotcha. thanks.
any help about the “value” thing while we’re at it?:)
Offline
#10 2006-12-10 12:43:08
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: A "class" for the <txp:search_input /> Command?
Are you asking how to customize the form’s button text (use button attribute)? or the form’s label text (use label attribute)? or something else?
Offline
#11 2006-12-10 12:51:54
- adamtal
- Member
- Registered: 2006-09-14
- Posts: 25
Re: A "class" for the <txp:search_input /> Command?
well, for the search, np.
i’m asking about the comment form.
sorry for the confusion might have been a better idea to open a new thread, just saw this one and thought it would probably be related…
Last edited by adamtal (2006-12-10 12:52:43)
Offline