Custom URL in CMS Made Simple

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Locked
ukashm
New Member
New Member
Posts: 5
Joined: Mon Apr 26, 2010 9:39 pm

Custom URL in CMS Made Simple

Post by ukashm »

Hi,

It's simple to make friendly urls in CMS MS 1.7 like: but can sb help me how should I generate URL: I tried modify config.php and .htaccess but to no effect

Lukas
Last edited by ukashm on Mon Apr 26, 2010 10:02 pm, edited 1 time in total.
User avatar
antek
New Member
New Member
Posts: 2
Joined: Tue Apr 27, 2010 11:46 am

Re: Custom URL in CMS Made Simple

Post by antek »

Having a problem with similar situation, could someone please reply? Thx in advance :)
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Custom URL in CMS Made Simple

Post by JohnnyB »

Is that URL example possible using the 'Pretty URL' option in the config.php
$config['url_rewriting'] = 'internal';
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
ukashm
New Member
New Member
Posts: 5
Joined: Mon Apr 26, 2010 9:39 pm

Re: Custom URL in CMS Made Simple

Post by ukashm »

Thanks mww, url is better now but there is still a one problem - dots and cedilla are changed on dashes.
Have sb any ideas to fix?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Custom URL in CMS Made Simple

Post by JohnnyB »

I don't know how to change that - urls with spaces, dots, single quotes etc are changed to dashes.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Custom URL in CMS Made Simple

Post by calguy1000 »

That's because urls with special characters aren't valid.... or well not very well supported at least.
So a design decision was made a very long time ago that any non alphanumeric characters (with few exceptions) would be stripped.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
ukashm
New Member
New Member
Posts: 5
Joined: Mon Apr 26, 2010 9:39 pm

Re: Custom URL in CMS Made Simple

Post by ukashm »

Do you know any possible to change this despite the fact that urls with special characters aren't valid?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Custom URL in CMS Made Simple

Post by Dr.CSS »

You have hacked default core files...

http://forum.cmsmadesimple.org/index.ph ... #msg135168
ukashm
New Member
New Member
Posts: 5
Joined: Mon Apr 26, 2010 9:39 pm

Re: Custom URL in CMS Made Simple

Post by ukashm »

Yes, I've modified core CMSMS files, because standard distribution wasn't capable of doing what I needed to do.

Most of the clients doesn't follow internet standards and have no idea about the validity of the link. All that matters to them is their profit, and sometimes they can't afford to (or simply don't want to) sacrifice their SEO positioning for a better compliance with standards. For that I don't think it's rational to make a "design decision" like this, and deliberately cropping the functionality of CMSMS platform, when there aren't any technical constraints for doing what I did.
User avatar
antek
New Member
New Member
Posts: 2
Joined: Tue Apr 27, 2010 11:46 am

Re: Custom URL in CMS Made Simple

Post by antek »

I agree with ukashm. I have used the patch that he pasted, and it works without problems. I hope it will stay like this.

Actually, I was thinking about changing the CMS to something other because of this. Fortunately, thanks to ukashm, I don't have to. Good positions are hard to maintain, and changing link structure sure will not help.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Custom URL in CMS Made Simple

Post by Jeff »

ukashm wrote: Yes, I've modified core CMSMS files, because standard distribution wasn't capable of doing what I needed to do.

Most of the clients doesn't follow internet standards and have no idea about the validity of the link. All that matters to them is their profit, and sometimes they can't afford to (or simply don't want to) sacrifice their SEO positioning for a better compliance with standards. For that I don't think it's rational to make a "design decision" like this, and deliberately cropping the functionality of CMSMS platform, when there aren't any technical constraints for doing what I did.
How does removing a comma or a period drop your SEO rating?
ukashm
New Member
New Member
Posts: 5
Joined: Mon Apr 26, 2010 9:39 pm

Re: Custom URL in CMS Made Simple

Post by ukashm »

I had to migrate a website from one propetiary CMS system into CMSMS. The company also has SEO campaign active, so I couldn't just change links to what's acceptable by CMSMS - I have to stick to an existing link naming rules. That's why removing a dot, or a comma (which is the format used by the previous CMS) can affect the Google ranking.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Custom URL in CMS Made Simple

Post by calguy1000 »

A) Modifying core files now subjects you to no support for your website
    - we don't know what all you've modified
    - we don't know what the ramifications of those modifications are
    - don't have the time to trace it down
    - if you're capable enough to dig through the source code and hacking it, your capable of doing your own debugging and support.
    - we dont make exceptions

B) Posting modifications to core files in the forum is discouraged
    I removed that post
    - if your modification happens to be wrong and somebody else unknowingly follows it
      (some people will try things just to see if that'll fix their problem, when they really don't understand what the problem is anyways)
      they just got themselves into a worse situation by modifying core files, therefore we won't knowingly allow this to happen.

C) We have a bug tracking and feature tracking mechanism.  USE IT.

D)  There are other solutions to your problem, you just didn't want to look at them.

Now the two of you are unsupported and this thread is closed.
   
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “Developers Discussion”