
so the easier the better

1. Assuming you're using Windows, download and install TortoiseSVN: http://tortoisesvn.tigris.org/KoalaBlue wrote: Hi, has anyone uploaded the News-Beatiful-URLs.patch or Updated-Pretty-News-URLs-Patch.patch?
I have downloaded it, but how do I 'apply the patch'? Where do I upload it to?
Thx
3. Download the patch file: http://dev.cmsmadesimple.org/tracker/do ... 1-05.patch into your "News" module folder.
Code: Select all
Options +FollowSymLinks
RewriteEngine on
# 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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Code: Select all
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
You're welcome.KoalaBlue wrote: Hi Elijah, how's college? Thanks for taking the time out to reply
I'm using a Mac, so I'll go with your second option - thanks a bunch!
Seemed to patch fine here:baselve wrote: Is it right that the patch isn't compatible with newest version of the news module?
Attached is the two patched files. Just remove the .patched.txt extension and overwrite the 2 files in modules/Newselijahlofgren@kubuntu:~/www/cmsmadesimple/modules/News$ patch -p0 < Pretty-News-URLs-2006-11-05.patch
(Stripping trailing CRs from patch.)
patching file action.default.php
Hunk #1 succeeded at 183 (offset 15 lines).
(Stripping trailing CRs from patch.)
patching file News.module.php
Code: Select all
<h1><a href="">Orange in de etalage</a></h1>
<div class="NewsContent">
<a name="meer"></a>
<p><img src="uploads/images/orange_logo.png" alt=" " align="right" height="142" width="142" />France Télécom wil af van de Nederlandse tak van het dochterbedrijf <a href="http://www.orange.nl/over_ons/over_orange/het_bedrijf/" target="_blank">Orange</a>. Orange Nederland is de kleinste aanbieder van mobiele telefonie in Nederland. Vorig jaar besloot France Télécom nog dat Wanadoo onder de naam Orange moest doorgaan om zo één sterk merk te vormen. Ondanks verwoede pogingen heeft Orange nooit echt voet aan de grond kunnen krijgen in Nederland.</p><p> </p><p>Orange is sinds 2003 actief in Nederland. Orange heette in Nederland eerder <a href="http://nl.wikipedia.org/wiki/Dutchtone" target="_blank" title="Dutchtone">Dutchtone</a>. France Télécom voert het merk Orange wereldwijd in 135 landen. </p>
</div>
<div class="Terug"><a href="">Terug</a></div>
<div class="Reacties">Reacties(0)</div>
</div>
Ok, thanks for the effort! Good luck with school and I hope you find time to fix it!! Would be great!Elijah Lofgren wrote: Sorry it didn't work out.
I'll hopefully have time to look at this sometime (I've labeled it TO DO in my Gmail inbox).
Right now I'm swamped with school. Maybe Spring break (About a month).
Later,
Elijah
Options +FollowSymLinks
RewriteEngine on
# 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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule (.*) index.php?page=$1 [QSA]
RewriteRule ^index.php$ index.php