Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
I want to show two specific articles on a page/section
How do i have two articles display on one Page / Section?
I want to have the user be able to edit a couple of specific entries that appear on the About Page.,
I am assuming it is used with the ID function but i am unable to find an example of how to construct the tag.
Last edited by bici (2011-08-24 14:50:07)
…. texted postive
Offline
Re: I want to show two specific articles on a page/section
I’m not sure I understood. What you want is display two article in the About page?
If this is your case you can do that with article_custom using the id attribute.
Is this your case?
Last edited by wornout (2011-08-24 08:20:22)
Offline
Re: I want to show two specific articles on a page/section
wornout wrote:
I’m not sure I understood. What you want is display two article in the About page?
If this is your case you can do that with article_custom using the id attribute.
Is this your case?
Yes, but on that page there is no example of how to output an article entry by id #.
Assuming i have an article id 73 and an article id 81, what would the tag structure be?
can one use entry_id=“73” e.g.: <txp:article entry_id=“73” /> ??
…. texted postive
Offline
Re: I want to show two specific articles on a page/section
You can use this:
<txp:article_custom id="73,81" />
The order of id isn’t the final sort criteria.
Offline
Re: I want to show two specific articles on a page/section
wornout wrote:
You can use this:
<txp:article_custom id="73,81" />
The order of id isn’t the final sort criteria.
Millie grazie for your quick reply.
As I want one article to appear in one area and another on another adjacent area I will use that tag twice in my Page and display the entry by id .
PS I have always found the lack of concrete examples on the tag Reference page to be frustrating.
…. texted postive
Offline
Re: I want to show two specific articles on a page/section
bici wrote:
I have always found the lack of concrete examples on the tag Reference page to be frustrating.
You can always request a wiki account and add better examples yourself :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
Re: I want to show two specific articles on a page/section
Bloke wrote:
You can always request a wiki account and add better examples yourself :-)
of course i need to know how to add the examples. In this case credit is due to Edoard
EDIT: Sorry, I killed your post because I hit ‘Edit’ instead of ‘Quote’. Bah, fat mouse. I’ve put it back to (almost) how it was.
Last edited by Bloke (2011-08-24 16:25:53)
…. texted postive
Offline
Re: I want to show two specific articles on a page/section
I added a new example using wornout’s code.
Offline
Re: I want to show two specific articles on a page/section
Bloke wrote:
Ummm, that’s the <txp:article_id />
page, not <txp:article_custom />
! Michael’s added it on the latter page.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
Re: I want to show two specific articles on a page/section
Bloke wrote:
Bloke wrote:
Ummm, that’s the <txp:article_id />
page, not <txp:article_custom />
! Michael’s added it on the latter page.
my bad. it should be removed if not i will
…. texted postive
Offline