Hi friends, now all my posts in Blog are shown like:
www.domain.com/Blogs/2/23/post-title
is there a way to be changed to:
www.domain/Blogs/categoryname/post-title?
Just to show category and postname. Please any help?
How to change url link in Blog module?
Re: How to change url link in Blog module?
Okay im loosing day after day to solve this, please is it possible?
In Blog module im trying to change this lines:
action.showblog.php line 203
But the link not work, any suggestions why not work. May be because there is not $dbentry['id'] or...?
Please help
In Blog module im trying to change this lines:
action.showblog.php line 203
Code: Select all
from:
$prettyurl = 'Blogs/'.$dbentry['id'].'/'.$returnid.'/'.strtolower(munge_string_to_url($dbentry['title']));
to:
$prettyurl = 'Blogs/'.$dbentry['title'].'/'.$returnid.'/'.strtolower(munge_string_to_url($dbentry['title']));
and the link is looks like:
www.domain/Blogs/post-title/23/post-title
Please help
Re: How to change url link in Blog module?
Is it posible?
Re: How to change url link in Blog module?
One thing to remeber is that "23" in the page your on...
www.domain.com/Blogs/2/23/post-title
the "landing page" so ... ***unless Calguy knows better as the author*** the anwser to your question is no... Not yet... and your right on the $dbentry['id'] as far as I see it..
My2Cents
jeremyBass
www.domain.com/Blogs/2/23/post-title
the "landing page" so ... ***unless Calguy knows better as the author*** the anwser to your question is no... Not yet... and your right on the $dbentry['id'] as far as I see it..
My2Cents
jeremyBass
Re: How to change url link in Blog module?
www.domain/Blogs/categoryname/2/23/post-title
or
www.domain/categoryname/2/23/post-title
is possible, but, you must have to .../2/23/.. . This is ID and RETURNID route stuff ( see RegisterRoute() in Blog.module.php )
if Silmarillion want i can implement this, but, i don't know what he think about this and also the others !
Best Regards
Nuno Costa
or
www.domain/categoryname/2/23/post-title
is possible, but, you must have to .../2/23/.. . This is ID and RETURNID route stuff ( see RegisterRoute() in Blog.module.php )
if Silmarillion want i can implement this, but, i don't know what he think about this and also the others !
Best Regards
Nuno Costa
Re: How to change url link in Blog module?
@nuno - why are all the of these mods set that way... with the RETURNID ... Why not just have a text field in the admin side so we can set a landing page? could even have it so it's optional... set it or use RETURNID ... anyways.. I am just unclear if there is a reason for it...
I'd second the
www.domain/Blogs/categoryname/2/23/post-title
taking the blogs out of just numbers would set it up to do more and make adding the blog to the menu system easier... it's a pain to get them in now... to many steps lol...
I'd second the
www.domain/Blogs/categoryname/2/23/post-title
taking the blogs out of just numbers would set it up to do more and make adding the blog to the menu system easier... it's a pain to get them in now... to many steps lol...
Last edited by JeremyBASS on Tue Dec 09, 2008 2:54 pm, edited 1 time in total.
Re: How to change url link in Blog module?
I thing it is possible if you see Vacation module all links are like this:
http://localhost/cmsmadetest/index.php/ ... postalias/
So may be there is a way to have a link in sms modules Blog or News without postID in url, but how to change the module.
http://localhost/cmsmadetest/index.php/ ... postalias/
So may be there is a way to have a link in sms modules Blog or News without postID in url, but how to change the module.