Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2015-02-16 20:39:29
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
excerpt
I’m doing the form of an article using the following code:
<txp:if_article_list>
<txp:permlink><txp:title /></txp:permlink>
<txp:excerpt />
<div class=“more”>
<txp:permlink><button id=“pulsante”>Leggi tutto</button></txp:permlink>
</div>
<txp:else />
<txp:body />
</txp:if_article_list>
I would like the link more to send me to another page with the entire article. I thought that the code used was fine instead something does not work.
Offline
#2 2015-02-16 22:00:51
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: excerpt
<txp:if_article_list>
<h2><a href="<txp:permlink />"><txp:title /></a></h2>
<txp:excerpt />
<a href="<txp:permlink />" class="more pulsante">Leggi tutto</a>
<txp:else />
<h2><txp:title /></h2>
<txp:body />
</txp:if_article_list>
Note: If you have more than one article in the article list, then you may not use ID! A class is a better solution.
Offline
Pages: 1