Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2015-01-09 15:57:49
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Link to more
I would like to set up a link to “more”. How can I do? When I click on more I wish I would open the entire article.,
Offline
Re: Link to more
The code below will give you a hint
<txp:article>
<txp:excerpt />
<p><txp:permlink>more</txp:permlink></p>
</txp:article>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2015-01-09 17:01:16
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Link to more
I have done so:
<div class="singleNew">
<div class="newsImg">
<txp:article_image escape="" thumbnail="1" />
</div><!-- newsImg -->
<div class="newsDesc">
<h3><txp:title /></h3>
<txp:article>
<txp:excerpt />
<p><txp:permlink>more</txp:permlink></p>
</txp:article>
</div>
you bust all the css
[Ruud: used bc. to make the code loop pretty. Please do this yourself next time. Pierlu.]
Offline
Re: Link to more
How are you calling the article image tag and the title tag outside of an article tag wrapper?
If you have them wrapped in an article tag (but are not showing them in your code here), why did you add a second article wrapper?
Last edited by maverick (2015-01-10 00:51:30)
Offline
Re: Link to more
Looks like maybe you only needed this part of cloak’s suggestion:
<txp:permlink>more</txp:permlink>
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Link to more
Pierlu, your code looks fine. Does it not work?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#7 2015-01-10 10:59:25
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Link to more
I wish that I would open another page with the article body
Offline
Re: Link to more
pierlu wrote #287231:
I wish that I would open another page with the article body
That is exactly what that code is doing. Please do let us know of the address of your site for us to check what might be going wrong or ask us the question more descriptively in your own language as we will be able to help depending on your sharing more information.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#9 2015-01-10 12:33:14
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Link to more
Il sito non è online, vorrei praticamente avere poche righe dell’articolo e al link “leggi tutto” che si aprisse un altra pagina con l’intero articolo
Ruud: Google Translate: The site is not online, I would pretty much have a few lines of the article and the link “more” that would open another page with the full article
Offline
#10 2015-01-10 13:11:18
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Link to more
pierlu, have you tried to apply MattD’s hint?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Link to more
pierlu wrote #287238:
Il sito non è online, vorrei praticamente avere poche righe dell’articolo e al link “leggi tutto” che si aprisse un altra pagina con l’intero articolo
Well, the code above should do it but where do you have it? In the class description it says singleNew
which sounds like (if there is any semantic meaning to the class) you are calling it from an individual article page as opposed to an article list page.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#12 2015-01-10 15:06:05
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Link to more
The more link is normally in a article list context, and the article view in an individual article context.
<txp:if_article_list>
article list context, for example, titel, excerpt and more links
<txp:else />
individual article context
</txp:if_article_list>
Offline