Pretty URLs and News Browse Category Template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Gordon MWS
New Member
New Member
Posts: 8
Joined: Fri Mar 06, 2009 3:52 pm

Pretty URLs and News Browse Category Template

Post by Gordon MWS »

I have a list of categories displayed as links but the target does not follow the 'pretty-url' structure, so the site is just showing my standard blog/news page without limiting the displayed category...

Does this facility not work with htaccess pretty urls, or is there a work around?

As it stands I will have to make a child page off my blog/news for each category and limit the display manually - I would rather it was done dynamically if possible.
hansito
Forum Members
Forum Members
Posts: 14
Joined: Wed Sep 24, 2008 3:11 pm

Same question!

Post by hansito »

I have the same question. Have you (or anybody else) found a solution for this problem already?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URLs and News Browse Category Template

Post by Dr.CSS »

Not enuf info to help...
hansito
Forum Members
Forum Members
Posts: 14
Joined: Wed Sep 24, 2008 3:11 pm

Re: Pretty URLs and News Browse Category Template

Post by hansito »

Ok, so here some mor information:

I have a template in which I have integrated a news-summary and a category list. It looks like this:

{news number="10" category="Blog*" summarytemplate="blog"}
{news category="Blog | *" browsecat="1" browsecattemplate="sample"}

So in the output I see the summaries of the 10 latest blog entries and I see category list on the right site. Each item of the category list is a link. But these are not so called pretty links. They look like this:

http://www.mydomain.com/index.php?mact= ... eturnid=61

What I (and I think Gordon MWS too) wanted to know is if there is a way to let these links look like this:

http://www.mydomain.com/news/blog/.../.../9/61/...html
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URLs and News Browse Category Template

Post by Dr.CSS »

Have you set any of the pretty URL parameters anywhere?...
hansito
Forum Members
Forum Members
Posts: 14
Joined: Wed Sep 24, 2008 3:11 pm

Re: Pretty URLs and News Browse Category Template

Post by hansito »

Yes, my config.php looks like this:

#------------
#URL Settings
#------------

$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';


and my .htaccess like this:

Options +FollowSymLinks
  RewriteEngine on
  RewriteBase /

  RewriteCond %{REQUEST_URI} !/$
  RewriteCond %{REQUEST_URI} !\.
  RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+).html$ index.php?page=$1 [QSA]


All URL`s of my site are pretty exept the ones of the category list.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URLs and News Browse Category Template

Post by Dr.CSS »

This is what I use...

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#

RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
hansito
Forum Members
Forum Members
Posts: 14
Joined: Wed Sep 24, 2008 3:11 pm

Re: Pretty URLs and News Browse Category Template

Post by hansito »

Thanks! I tried it with yours (although it is pretty much the same I have used) but it did not work either.

I will now solve this manually with a different child page for every category (just as Gordon MWS mentioned in his post).
Post Reply

Return to “Modules/Add-Ons”