Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-02 15:35:23

Aeron
Member
Registered: 2009-06-02
Posts: 11

Custom Feilds appearing in Sticky's

Hi everyone,

I’m new to Textpattern, and I must say so far its really awesome. I’ve got a issue with using Custom Fields and Sticky articles. I’ve created a site where sticky’s act as landing pages, and have created Custom Fields for my “Page Title” and “Meta Description”. Basically I’m doing this for SEO purposes. My issue is that if I make the status of the page as a Sticky, then the Custom Fields do not appear on my pages, however I change the status to Live, then it does.

This is how I have set it up:

Page: <txp:output_form form=“head” />

Form: head | Type: Misc-> <txp:article form=“meta_dynamic” />

Form: meta_dynamic | Type: Article ->

<title><txp:custom_field name=“page_title_custom” /></title>
<meta name=“description” content=”<txp:custom_field name=“meta_desc” />” />

Hopefully this makes sense and someone is able to help me out. Let me know if you need more info.

Offline

#2 2009-06-02 16:45:28

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Custom Feilds appearing in Sticky's

Hi

A sticky article are used for special purpose, then there are not shown using txp:article directly, you must add status=“status” like that:

<txp:article form=“meta_dynamic” status="sticky" />

For detail look at here

Cheers

Offline

Board footer

Powered by FluxBB