Trying to make a “read more” link
Posted: 05 July 2008 10:45 AM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  19
Joined  07-05-2008

Hi all,

I am new to EE. I think it’s the most flexible cms I’ve tried so far. So i am trying to learn how to use it and i have this question.

I want to display some news in asc order and when the user click the read more link to take him to the full article.

So far I’ve managed to create the news weblog with its custom field group. I’ve made the news template and I’ve published some entries.

I use the following code to get the entries

{exp:weblog:entries weblog="news" sort="desc"}

<h3>{title}</h3>

<
p>{summary}</p>

<
p><a href="??????" title="{title}">Read More</a></p>

{/exp:weblog:entries}

My question is what to insert to the href tag. I think that in order to display the full text i need to make a new template naming it news_fulltext for example.

How do i make the connection?

Thank you in advance.

 Signature 

My personal website

Profile
 
 
Posted: 05 July 2008 12:41 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Avatar
Total Posts:  19
Joined  07-05-2008

Well i think i found a way…

i use in the href this tag

{entry_id_path=news/full_article}

and in the full_article i get the entry_id like this

{exp:weblog:entries weblog="news" entry_id="{segment_3}"}

Is there a better way?

 Signature 

My personal website

Profile
 
 
Posted: 05 July 2008 01:56 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  256
Joined  01-23-2006

See “Linking to the “article” Template” on this page: http://expressionengine.com/docs/quick_start/step_7.html

 Signature 

jeremy douglas media design | Twitter

Profile
 
 
Posted: 05 July 2008 02:19 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  19
Joined  07-05-2008

WOW!! no way!!

This cms just doesn’t stop to amaze me!

 Signature 

My personal website

Profile
 
 
Posted: 11 September 2008 09:16 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  27
Joined  02-25-2005

Yes, indeed WOW. Even *I* could work this one out. Now I just need to remember to put actual text in the summary, or post turn out empty smile

Thanks EE.

 Signature 

Expression Engine 1.64 on my site

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64938 Total Logged-in Users: 55
Total Topics: 81910 Total Anonymous Users: 52
Total Replies: 440319 Total Guests: 287
Total Posts: 522229    
Members ( View Memberlist )