1 sopur Dec 13, 2006 10:57
3 sopur Dec 16, 2006 15:07
Hello!
That worked.
But still, I get an Link in the type: http://www.sopur.com/index.php/diverses/2006/12/14/p66
I would prefer: http://www.sopur.com/index.php/diverses/2006/12/14/lindt_99_schoggi_blick_fragt_ob_s_das_wi
Any idea to change that?
Regards
Sopur
4 edb Dec 16, 2006 19:49
Try changing 'pid' to 'urltitle'.
5 sopur Dec 16, 2006 20:38
Perfect!
Many thanks!
Regards
Sopur
6 foodie Jul 27, 2008 12:19
I came to this post via the search function. I know it's an old post but it touches exactly my problem. I have b2evo 0.9.1 (shame on me but I just started to learn php a little bit and want to upgrade to the current version...) and the code for the "read more"-link is:
<h3 class="bTitle"><?php $Item->title(); ?></h3>
<div class="bText">
<?php $Item->content( '#', '#', 'Mehr lesen...', '' ); ?>
<?php link_pages() ?>
</div>
How can I change it into the permalink with the title in the URL?
Thanks in advance,
Claudia
7 daniel Aug 13, 2010 21:41
Hello,
sorry to dig up such an old posting... but as I am still using b2evo 1.9.2 I wanted to modify the MORE link now as well to the permalink url, but I don't know how!
To make it more clear I currently use the following code
<?php $Item->content( '#', '#', '<< WEITER >>', '---' ) ?>
...and with this I get e.g.: http://www.chaoszone.de/blog/webnews.php/2010/07/31/p881#more881
But I rather would like to have this: http://www.chaoszone.de/blog/webnews.php/2010/07/31/lustige_tiere_teil_4#more881
Is this possible?
Thanks in advance!
EDIT: Okay - sorry, have read all above again and again and now understood that I have to edit the _item.class.php accordingly... now it's working as I want to have it.
Best Regards,
Daniel
It would help to know what version you're using, but since I don't I'll look at the code for 1.8.6 and assume other versions are reasonably similar. Either way, this will require hacking a core file. And there's no promise that it'll work! Open inc/MODEL/items/_item.class.php and look around line 950 for something like this:
Basically the only difference between a permanent link and a "read more" link is that "read more" adds a #thing to the end of the URL, so remove that bit and you should see the effect you seek.
This is untested and might not work, so back up the file before you start hacking away!