Recent Topics

1 Mar 29, 2007 16:45    

My b2evolution Version: 1.9.x

Hi.I'm just using stub_php.

Now i'd like to optimize b2evo for search engines and i'd like to have a permalink structure like this:

http ://www.yoursite.com/blogs/index.php/category/id_post/post_title

(category becouse it could be a keyword and id_post to resolve problem with posts with the same title)

and i'd like to have for each post page:

post title-blog title

Instead of

Blog title-Post title.

I think that this is important for a better indicization.

Can someone helps me?

Thanx

3 Mar 30, 2007 14:18

The first part of your question has been covered in bits and pieces, but I don't have any handy links to help you with. A bit of creative searching of these forums will probably reveal an answer. If memory serves me it will not be an easy answer inside b2evolution though.

The second part is very doable. Look in your skins/your_skin/_main.php file for this bit:

<title><?php
$Blog->disp('name', 'htmlhead');
request_title( ' - ', '', ' - ', 'htmlhead' );
?></title>


Now change it around a little bit to something like this:

<title><?php
request_title( '', ' - ', ' - ', 'htmlhead' );
$Blog->disp('name', 'htmlhead');
?></title>

http://doc.b2evolution.net/v-1-9/evocore/_blogs---inc---_misc---_template.funcs.php.html#functionrequest_title explains the parameters in the "request_title" function, just in case it's not exactly as you seek.

4 Mar 30, 2007 17:59

EdB wrote:

The first part of your question has been covered in bits and pieces, but I don't have any handy links to help you with. A bit of creative searching of these forums will probably reveal an answer. If memory serves me it will not be an easy answer inside b2evolution though.

The second part is very doable. Look in your skins/your_skin/_main.php file for this bit:

<title><?php
$Blog->disp('name', 'htmlhead');
request_title( ' - ', '', ' - ', 'htmlhead' );
?></title>


Now change it around a little bit to something like this:

<title><?php
request_title( '', ' - ', ' - ', 'htmlhead' );
$Blog->disp('name', 'htmlhead');
?></title>

http://doc.b2evolution.net/v-1-9/evocore/_blogs---inc---_misc---_template.funcs.php.html#functionrequest_title explains the parameters in the "request_title" function, just in case it's not exactly as you seek.

Thanks very much.
It's just what i'm looking for.

Now i'll take a look around for the permalink structure.

5 Jun 15, 2007 07:24

Just wanted to say thank you. I had been wanting to change to post title then blog title and this was exactly what I needed.


Form is loading...