1 gfindlay Feb 06, 2005 13:54
3 gfindlay Feb 06, 2005 15:23
Is this the entry you mean?
<h3 class="storytitle"><a href="<?php $Item->permalink() ?>" rel="bookmark" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title(); ?></a></h3>
Taken from the wpm_aubmach skin.
4 graham Feb 06, 2005 15:31
Change it to be this:
<h3 class="storytitle"><a href="<?php $Item->permalink() ?>" rel="bookmark" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title('','',false); ?></a></h3>
The first two parameters are if you want to put anything infront or after the title (they're two ' not one "), the third is a true or false statement about whether you wish to display the url title or not. You can either do that, or delete the permalink stuff if you'd rather show the url.
http://doc.b2evolution.net/0.9.0/evocore/Item.html#methodtitle
5 gfindlay Feb 06, 2005 16:24
Thanks for that. I actually had a play after seeing your alteration. This is what I came up with (and it works for my tests).
<?php // ------------------------------------ DISPLAY URL OR PERMALINK ----------------------------------------
echo '<h3 class="storytitle"><a href="';
if( $Item->get('url') )
{
echo $Item->get('url'),'" title="URL to linked item" ';
}
else
{
echo $Item->permalink(),'" title="Permanent link to full entry" ';
}
echo 'rel="bookmark">',$Item->get('title'),'</a></h3>';
?>
What code do you have in your _main.php for generating your title?