Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-12 09:26:06

amyng
Member
Registered: 2007-01-05
Posts: 55

Changing labels (or legends)

How do I change the (text) labels for Name, Email and Message that is currently on display on the <txp:comment_form> tag?

Or even the <txp:comments_invite>, I want it to say something like “Leave a message”, instead of it being the default “Comment”.

And as well, I am also looking to how I could do this with the zem_contact plugin. Some will say that it’s within the <legend> tag, but if a default tag doesn’t show the <legend> tag in it’s structure, how am I to modify it? For example: <txp:zem_contact mailto=“dest@example.com” />.

I can’t put to use the info in the help pages as well, because I think I’m confused by the structure of this whole tag and plugins thing. (I did construct my pages and it turned out okay, I’m rolling up my sleeves for more customisation of the tags).

It just boggles me! Help, anyone?

Amy

Last edited by amyng (2007-01-12 09:28:56)

Offline

#2 2007-01-12 10:11:51

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

Re: Changing labels (or legends)

For the first two things:

  1. Look at the “comments_form” form.
  2. In the Write tab, click on “More”.

Offline

#3 2007-01-12 13:07:48

amyng
Member
Registered: 2007-01-05
Posts: 55

Re: Changing labels (or legends)

Thanks Mary!

But I’ve looked at the “comments_form” and can’t seem to decipher it… Could you help me elaborate on it a little more please?

Sorry, I’m such a noob.

Offline

#4 2007-01-13 02:03:55

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

Re: Changing labels (or legends)

You should see a couple tags like:

<txp:text item="comment_name" />

Those tags output the labels for your form (it’s so that the default texts are translatable). So, you can simply replace them with whatever text you like.

Offline

#5 2007-01-13 13:23:27

amyng
Member
Registered: 2007-01-05
Posts: 55

Re: Changing labels (or legends)

Thanks so much Mary! I finally got the hang of it… now, on to more tags and forms!

Offline

Board footer

Powered by FluxBB