[solved] CGBlog and Pretty URLs

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
catfish
Forum Members
Forum Members
Posts: 17
Joined: Wed Nov 18, 2009 4:06 pm

[solved] CGBlog and Pretty URLs

Post by catfish »

I'm testing out CGBlog, but the URLs aren't pretty, they look like this:

/index.php?mact=CGBlog,cntnt01,detail,0&cntnt01articleid=2&cntnt01returnid=104

How can I set up pretty URLs in CGBlog? My system has pretty URLs already for normal pages using mod_rewrite, but I can't see any module configuration options for this.

I'm also using Sitemap Made Simple, but my blog posts aren't showing up in the sitemap. Is this expected behaviour? If not, which module is at fault?
Last edited by catfish on Wed Apr 28, 2010 6:43 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CGBlog and Pretty URLs

Post by Rolf »

Hi,

Set hierarchy=true in the config.php
I'm also using Sitemap Made Simple, but my blog posts aren't showing up in the sitemap. Is this expected behaviour? If not, which module is at fault?
Yes, only pages which are in the menu, are shown in the sitemap.
You better use CGFeedmaker as 'sitemap' You can also submit a rss-feed to Google.

Reg. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
catfish
Forum Members
Forum Members
Posts: 17
Joined: Wed Nov 18, 2009 4:06 pm

Re: CGBlog and Pretty URLs

Post by catfish »

Thanks for the response!

Is hierarchy=true the only way?? I have explicitly disabled that already, and if I change that now, almost all the existing links will change. Havoc will ensue.

Will check out CGFeedmaker, thanks!
owr_bgld

Re: CGBlog and Pretty URLs

Post by owr_bgld »

catfish wrote: almost all the existing links will change.
But they are still working after setting to true
catfish
Forum Members
Forum Members
Posts: 17
Joined: Wed Nov 18, 2009 4:06 pm

Re: CGBlog and Pretty URLs

Post by catfish »

Yes, but my site is indexed and has links, and I don't want to lose all that link juice and have to fix everything etc.

I managed to solve it for now with this change in lib/classes/module_support/modform.inc.php:

        // if ($prettyurl != '' && $config['url_rewriting'] == 'mod_rewrite' && $config['use_hierarchy'] == true)
        if ($prettyurl != '' && $config['url_rewriting'] == 'mod_rewrite')

That way I guess all modules use hierarchy regardless.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CGBlog and Pretty URLs

Post by Rolf »

catfish wrote: Is hierarchy=true the only way?? I have explicitly disabled that already, and if I change that now, almost all the existing links will change.
Good to know: the release 2.0 of CMS Made Simple will not have the option of turning off the hierarchy!
It will be always on.

Reg. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
catfish
Forum Members
Forum Members
Posts: 17
Joined: Wed Nov 18, 2009 4:06 pm

Re: [solved] CGBlog and Pretty URLs

Post by catfish »

Ouch.. Why?
Post Reply

Return to “Modules/Add-Ons”