Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-27 18:28:43

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

promote to frontpage an article from a section "not-to-frontpage"?

Hi,

Suppose I have in the default page template a simple <code><txp:article /></code> that outputs articles from all sections that are configured to show “in frontpage”.

Then, I write a cool article that belongs to a section that is configured as “not in frontpage”.
I say myself:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“Hey, this is a cool article so I would like to include it in my frontpage article list!”

So, I want that cool article to be listed in the fronpage but it must be listed inside the regular flow of the article list outputed by <code><txp:article /></code>.
Of course, <code><txp:article /></code> (when in default page) outputs only articles from all sections that are configured to show “in frontpage”.

So, what I want is to tell to <code><txp:article /></code>:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“Make the article list with the regular articles (from all “in frontpage” sections) and also include my cool article (from a “not-in-frontpage” section) in this article list”

Is there anyway to do this?

Thanks in advance <small>and excuse my english</small>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2005-10-27 20:12:57

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

Re: promote to frontpage an article from a section "not-to-frontpage"?

> “Is there anyway to do this?”

Hm. Well, no, I don’t think so, but I could be wrong.

Offline

#3 2005-10-27 20:36:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: promote to frontpage an article from a section "not-to-frontpage"?

Maybe this can be a feature in future versions:
<em>Promote article to frontpage</em>

One way to implement this could be: <ol> <li>you write an article</li> <li>you select the section wich the article belongs to</li> <li>you save your article</li> <li>returns to article write tab</li> <li>after article is saved: <ul> <li>if article is saved in a section “not-in-frontpage”, show a checkbox to “Promote this article to frontpage”.<br />Then, this article will be automaticaly added to the list flow outputted by <code><txp:article /></code> in default page template</li> <li>if article is saved in a section “in-frontpage”, do not show nothing</li> </ul> </li> </ol>

This could be similar to a feature in <a href=“http://www.drupal.org”>Satanás CMS</a> (I hope not to offend Satanás) ;).

Please, give feedback about this feature, to evaluate if I will add it as a feature request.

Last edited by maniqui (2005-10-27 20:38:35)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB