Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2014-02-10 03:21:20

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,278
Website Mastodon

Re: best way to output 5 articles on homepage

GugUser wrote #278736:

If you use <txp:upm_article_image /> then you’re depending on an old and today unnecessary plugin. It could be that this plugin will no longer work with a future version of Textpattern.

right. and i know i was planning on stoping to using that plugin.


…. texted postive

Offline

#17 2014-02-10 03:31:08

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,278
Website Mastodon

Re: best way to output 5 articles on homepage

GugUser wrote #278735:

Only call once <txp:article_custom id="6" form="home_static" />.

And change te form home_static to:

<article role="article" itemscope itemtype="http://schema.org/Article" class="grid__cell unit-1-3 feature">...

wow! that works!

But i would have never figured that out, as none of the documentation gives such an example. I know I am thick but …

Thank-you so much!, Having your example I will easily be able to add the other three article outputs.

P.S. i now see that having one Form will be applicable to all Four articles as the command outputs the article by id :

<txp:article_custom id="6" form="home_static" />

Last edited by bici (2014-02-10 03:35:41)


…. texted postive

Offline

#18 2014-02-10 08:26:57

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

Re: best way to output 5 articles on homepage

I’ve added an example of this to the in-progress docs rewrite now

Offline

#19 2014-02-10 17:13:51

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,278
Website Mastodon

Re: best way to output 5 articles on homepage

philwareham wrote #278744:

I’ve added an example of this to the in-progress docs rewrite now

Yes. Well done! and with the added bonus of the if image tag:

<txp:if_article_image>
Many thanks!

PS speaking of images: on your github docs for article_image can an example be added using the timthumb.php.

Last edited by bici (2014-02-10 17:25:18)


…. texted postive

Offline

#20 2014-02-11 12:00:11

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

Re: best way to output 5 articles on homepage

bici wrote #278761:

PS speaking of images: on your github docs for article_image can an example be added using the timthumb.php.

This is done now, but I’ve added it to the txp:if_article_image tag reference which is the correct place for it.

Offline

#21 2014-02-11 18:33:00

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,278
Website Mastodon

Re: best way to output 5 articles on homepage

philwareham wrote #278811:

This is done now, but I’ve added it to the txp:if_article_image tag reference which is the correct place for it.

I am so looking forward to the new documentation …


…. texted postive

Offline

Board footer

Powered by FluxBB