Recent Topics

1 Dec 27, 2005 10:23    

How do you get b2evo to place article/story url link in the articles/stories title that's posted to the main page (Front Page)? I have looked around the forum and tried search but haven't been able to find the solution.

Thanks in Advance

2 Dec 27, 2005 14:39

<h3 class="bTitle">
<?php // link the title to the permalink if there is no other url
if( $Item->get('url') ) {
	$Item->title();
	} else { ?>
	<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title( '', '', false ); ?></a>
	<?php } ?>
</h3>


If you use the link to url field then the title will go there. If not it'll go to the permalink page.

3 Dec 28, 2005 07:11

Thank you for your reply. Worked just as I had hoped for. Thanks so much.

4 Aug 19, 2006 20:38

Will this work for 1.8 as well? I ask because I can't seem to make it work. I'm trying to automatically make the title of each post be linked to the permalink for that post unless I've designated a link already.

5 Aug 19, 2006 23:41

I use this in 1.8

<?php $Item->permanent_link( '#title#','The ALT-text when clicking on the title' ); ?>


Form is loading...