Go to main content

Textpattern CMS support 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: 182
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
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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.

Offline

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

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

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

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

Offline

Board footer

Powered by FluxBB