Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-08 10:48:39

nvictor
Member
Registered: 2005-03-25
Posts: 22

use separate forms for article list and individual article

I’ve noticed that the page that list articles is using the same
form as the page that display individual articles.

It is a problem to me. I’ve customized the default form so
that I don’t get comments, date, authors, etc… And I’ve
added <p>—-</p> so that the articles are nicely separated
on the list.

The problem is that <p>—-</p> appears on the individual page.

help

Offline

#2 2006-11-08 13:37:30

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

Re: use separate forms for article list and individual article

2 of many options.

  • You can do another form which you will be choosing for each article you publish in the write tab (laborious but eventually gives far more options about styling individual articles)
  • Wrap the p tags in an article_list conditional <txp:if_article_list><p>—-</p></txp_if_article_list> (easy and answers your question:)

Edit

A good option. In your default form you can have

  • <txp:if_article_list>do this</txp_if_article_list><txp:if_individual_article>Do that</txp:if_individual_article>

Last edited by colak (2006-11-08 13:48:19)


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-11-08 14:42:36

nvictor
Member
Registered: 2005-03-25
Posts: 22

Re: use separate forms for article list and individual article

cool!

Offline

#4 2006-11-08 14:44:41

nvictor
Member
Registered: 2005-03-25
Posts: 22

Re: use separate forms for article list and individual article

colak. It’s displaying after the list. Not after each article.

Offline

#5 2006-11-08 15:44:41

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

Re: use separate forms for article list and individual article

can you post here what you have in the form?


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

Offline

#6 2006-11-08 18:00:12

nvictor
Member
Registered: 2005-03-25
Posts: 22

Re: use separate forms for article list and individual article

no problem colak. I found a solution.

Last edited by nvictor (2006-11-08 18:00:58)

Offline

#7 2006-11-08 18:20:22

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: use separate forms for article list and individual article

txp:article has a form and a listform tag for that exact purpose, so individual articles can use a different form from lists. It’s al in Textbook…

Offline

Board footer

Powered by FluxBB