Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-09-21 09:19:39

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 177
Website

Using the website comment field for other data types.

For an internal project, I’d like to use the website field in the comments table to store other data, say for example a userid.

Unfortunately, when you use the <txp:comment_web> tag it extracts the info from the database, which is stored as entered, but adds the http://… to make it a link.

Is there any way I can surpress this or easily retrieve the info from the comment display form?

Thanks,
Doug.

Offline

#2 2012-09-21 10:48:05

etc
Plugin Author
Registered: 2010-11-11
Posts: 1,232
Website

Re: Using the website comment field for other data types.

Retrieve – yes, with <txp:rah_replace from="http://" to=""><txp:comment_web /></rah_replace>, but it will work in comment form only. Suppress – I am not sure.


etc_[ query | search | pagination | date | tree | url ]

Offline

#3 2012-09-21 11:24:28

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 177
Website

Re: Using the website comment field for other data types.

That’ll do! :-) Thanks for that!

Offline

Board footer

Powered by FluxBB