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.
			
			
									
						
							Pretty URLs and News Browse Category Template
- Gordon MWS
 - New Member

 - Posts: 8
 - Joined: Fri Mar 06, 2009 3:52 pm
 
Same question!
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
Not enuf info to help...
			
			
									
						
										
						Re: Pretty URLs and News Browse Category Template
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
			
			
									
						
										
						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
Have you set any of the pretty URL parameters anywhere?...
			
			
									
						
										
						Re: Pretty URLs and News Browse Category Template
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.
			
			
									
						
										
						#------------
#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
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]
			
			
									
						
										
						# 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
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).
			
			
									
						
										
						I will now solve this manually with a different child page for every category (just as Gordon MWS mentioned in his post).

