Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-12 07:11:53

jauhari
Member
Registered: 2007-05-24
Posts: 97
Website

How to Display Custom Field on my post?

I have little problem how to do this, and maybe my explanation not good enough. So he we go.

I have some post(exp shoes collection) on my section (exp. box)
On my shoes collection post, I want display list of my shoes. And I was made it some custom field about it like Size of my shoes, Color, etc. and I was post several items of my shoes. Before I posted it, I was make category “My Shoes” to make easy to flag it.

The problem is.
How to display of my shoes list on my shoes collection post? And I want my shoes list like data/table.

Please give me guide how to do this?

Offline

#2 2007-07-12 09:21:02

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

Re: How to Display Custom Field on my post?

custom fields are called from article forms

txp:if_custom_field and you might want to check txp:article_custom

Last edited by colak (2007-07-12 09:23:37)


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 2007-07-12 09:23:11

jauhari
Member
Registered: 2007-05-24
Posts: 97
Website

Re: How to Display Custom Field on my post?

So? any sample from it?
I still confused about it

Thanks

Offline

#4 2007-07-12 09:27:23

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

Re: How to Display Custom Field on my post?

edited the post above…
In an article form (say your default one) you can have something like

<txp:if category name="my_shoes">
<txp:if_custom_field name="custom1">
<txp:custom_field>
</txp:if_custom_field>
etc
</txp:if category>

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

Offline

Board footer

Powered by FluxBB