Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-15 16:16:08

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Custom field not displaying

Latest rev

Not sure if this is a bug or I’m using it wrong. I have one article in a section called house, that is using custom fields. The following displays the body of the article OK.
<code><txp:if_section name=“house”>
<txp:article_custom allowoverride=“0” pgonly=“0” section=“house” form=“default” />
</txp:if_section></code>

I was expecting this tag to display the custom field contents:
<code><txp:custom_field name=“Sleeps” /></code>

The url displaying the article is www.site.com/house

Bug or me not using it right?

Cheers, Lee

Offline

#2 2006-09-15 16:35:22

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: Custom field not displaying

Do you have <code><txp:custom_field name=“Sleeps” /></code> in the <code>form=“default” /></code>? If yes. It should appear


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2006-09-15 16:54:39

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Custom field not displaying

No. The default form displays the body of the article in the center column of the site, the custom fields are in the side bar of the site. But I can now see they need to be in an article form, but how? I just tried putting the custom_fields in an article form and they still didn’t display.

Thanks for helping me out, much appreciated.

Offline

#4 2006-09-15 17:39:54

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Custom field not displaying

Thanks for the help colak, all sorted.

Offline

Board footer

Powered by FluxBB