Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » About Entry

#1 2006-03-12 19:23:09

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

About Entry

Hi Guys,

I am trying to create a form which outputs meta data for an article when in perma-mode.

The form code I have consists of:

<code><b>About this entry</b><br />
You are currently reading <i><txp:title /></i>, an entry made on <txp:posted /> and filed under <txp:category1 link=“y” />.</code>

On the main page code I have:

<code><txp:if_individual_article>
<txp:output_form form=“AboutEntry” />
</txp:if_individual_article></code>

The output rendered is:

About this entry
You are currently reading , an entry made on 12/03/2006 and filed under .

Any ideas what may be causing this problem? Thanks

Offline

#2 2006-03-12 19:46:55

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: About Entry

You will need txp:article, not txp:output_form.

Offline

#3 2006-03-12 20:23:10

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: About Entry

Thanks, that worked wonderfully.

Offline

#4 2006-03-14 00:51:31

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: About Entry

That seemed to work until I tried to submit a test comment: http://www.thekhans.me.uk/journal/

Now the comment form and preview are duplicated on the right, and I assume it’s got to do with the output type being a form. Any ideas? Some areas of text are also being duplicated when clicking on preview.

Thanks,

Saj

Last edited by snkhan (2006-03-14 00:53:15)

Offline

#5 2006-03-14 01:00:34

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: About Entry

You need to turn comment auto-append off (admin prefs). Then you need to manually add the contents of the “comments_display” form, by either calling it with another article tag, or adding it’s contents to your article form.

Offline

  1. Index
  2. » Archives
  3. » About Entry

Board footer

Powered by FluxBB