Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: best way to output 5 articles on homepage
I’ve added an example of this to the in-progress docs rewrite now
Offline
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
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
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