Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-12 00:19:27

dotkraft
New Member
Registered: 2006-08-12
Posts: 9

custom fields not showing up on the page :-(

Hello everyone,

I’ve been trying to implement custom fields into my pages without success.

Here’s what I’ve got:

1. An article with several custom fields. I named the first custom field “bild”. Into this field I added some sample text, here it was just the word “testing”.
2. In my page, I have a div that is meant to output the contents of the custom field “bild”. But that does not work. Nothing shows up.

The div assigned is called “leftcolumn” and the code looks like this:

<code><div id=“leftcolumn”><txp:custom_field name=“bild” /></div></code>

That, however, does not work. So I tried it with a form instead and named the form “leftcolumn” and added the same code as seen above into the form and entered the following lines into my page:

<code><txp output_form form=“leftcolumn” /></code>

Again, nothing shows up. The <code><div id=“leftcolumn”></div></code> shows up but empty. :-(

What could be wrong?

I am using the txp version that is available for download on the txp homepage.

Thank you in advance for any advice

Offline

#2 2006-08-12 00:49:43

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: custom fields not showing up on the page :-(

Is it an article form and is “auto-append comments to articles” turned off?

Offline

#3 2006-08-12 14:53:25

dotkraft
New Member
Registered: 2006-08-12
Posts: 9

Re: custom fields not showing up on the page :-(

Hello,

thank you for your response. I tried both versions, with auto append on and off and I also tried it with adding the custom field directly into the page template instead of using a form but nothing works. :-(

Offline

#4 2006-08-12 16:50:03

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: custom fields not showing up on the page :-(

It definitely needs to be in an article form..
And you’re calling the specific article’s page?

Maybe try the rei_show_custom plugin and see if that works for you?


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#5 2006-08-12 16:55:03

dotkraft
New Member
Registered: 2006-08-12
Posts: 9

Re: custom fields not showing up on the page :-(

Hello alicson,

thank you for your response. I will test out your tips and will see if that works.

Kind regards

Offline

#6 2006-08-12 17:00:05

dotkraft
New Member
Registered: 2006-08-12
Posts: 9

Re: custom fields not showing up on the page :-(

Hi alicson. I just tried it. And it works! You saved me a lot of headache. Thank you. :-)

If I use the article form tag in the page it works. Wonderful. :-)

Offline

#7 2006-08-12 17:57:13

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: custom fields not showing up on the page :-(

Glad to hear you managed to sort it out.

It’s still a bit surprising that your original approach didn’t work. I reviewed the TXP Tag Reference and it seems you did go by the book.

Cheers Martin

Offline

#8 2006-08-12 18:03:37

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: custom fields not showing up on the page :-(

glad it worked out :)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

Board footer

Powered by FluxBB