icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » [Expression Engine] Some help needed

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old April 7th, 2008, 1:28 PM   #1 (permalink)
Surpassing Dutch
Super #1
 
Edwin's Avatar
 
Joined in Sep 2004
Hosted on SH98
2,548 posts
Gave thanks: 188
Thanked 45 times
Smile [Expression Engine] Some help needed

(should have been in techny stuff)

(I would have tried this on their site, but I find the support for Core users not really good)

I've been using the 'related entries' for some time, and once I had it so, that I could post a link on my post, instead of the complete post.

Code:
{related_entries id="Relatie"}
 {if no_related_entries}
<h3>No relation found</h3>
 {/if}
 <h3>{title}</h3>
 {body}
{/related_entries}
is what I have now. The body should be something else, so that I only am left with the link to the related post. I know it's something simple. I've done it before, but forgot to keep a copy when I switched to another template/theme.
__________________
sh98
Edwin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 7th, 2008, 6:12 PM   #2 (permalink)
pineapples are sharp
Super #1
 
Brandonnn's Avatar
 
Joined in Dec 2005
5,777 posts
Gave thanks: 147
Thanked 151 times
This should do it...
Code:
{related_entries id="Relatie"}
 {if no_related_entries}
<h3>No relation found</h3>
 {/if}
<a href="{title_permalink={my_template_group}/comments}">{title}</a><br/>
{/related_entries}
__________________
poof
Brandonnn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 7th, 2008, 6:40 PM   #3 (permalink)
Surpassing Dutch
Super #1
 
Edwin's Avatar
 
Joined in Sep 2004
Hosted on SH98
2,548 posts
Gave thanks: 188
Thanked 45 times
Thanks B. That was exactly what I was looking for.
__________________
sh98
Edwin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 7th, 2008, 6:49 PM   #4 (permalink)
pineapples are sharp
Super #1
 
Brandonnn's Avatar
 
Joined in Dec 2005
5,777 posts
Gave thanks: 147
Thanked 151 times
cool beans
__________________
poof
Brandonnn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On