Page 1 of 1
					
				Pretty URLs and News Browse Category Template
				Posted: Mon Mar 09, 2009 3:10 pm
				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.
			 
			
					
				Same question!
				Posted: Tue Jul 28, 2009 2:16 am
				by hansito
				I have the same question. Have you (or anybody else) found a solution for this problem already?
			 
			
					
				Re: Pretty URLs and News Browse Category Template
				Posted: Tue Jul 28, 2009 2:28 am
				by Dr.CSS
				Not enuf info to help...
			 
			
					
				Re: Pretty URLs and News Browse Category Template
				Posted: Tue Jul 28, 2009 10:24 pm
				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 
			 
			
					
				Re: Pretty URLs and News Browse Category Template
				Posted: Wed Jul 29, 2009 2:31 am
				by Dr.CSS
				Have you set any of the pretty URL parameters anywhere?...
			 
			
					
				Re: Pretty URLs and News Browse Category Template
				Posted: Wed Jul 29, 2009 12:45 pm
				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.
			 
			
					
				Re: Pretty URLs and News Browse Category Template
				Posted: Wed Jul 29, 2009 7:47 pm
				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]
			 
			
					
				Re: Pretty URLs and News Browse Category Template
				Posted: Wed Jul 29, 2009 9:35 pm
				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).