Explicit set page-alias on page creation

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
Post Reply
mbvdk
Forum Members
Forum Members
Posts: 43
Joined: Wed Jun 08, 2005 3:30 pm

Explicit set page-alias on page creation

Post by mbvdk »

One thing I miss on the add-content page, is the abillity to explicitely sett the alias of the page being added.

The reason for this, is that I'm using Danish characters in my menu, so when the menu item text is used for the alias, I get an error, unless I remember to go back and edit the page so that I can set the alias.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Explicit set page-alias on page creation

Post by Ted »

Set auto_alias_content to false in your config.php.  All will be bettter (I hope).
mbvdk
Forum Members
Forum Members
Posts: 43
Joined: Wed Jun 08, 2005 3:30 pm

Re: Explicit set page-alias on page creation

Post by mbvdk »

Thanks, that's just what I was looking for.
tamlyn

Re: Explicit set page-alias on page creation

Post by tamlyn »

mbvdk wrote: Thanks, that's just what I was looking for.
Me too!
iNSiPiD

Re: Explicit set page-alias on page creation

Post by iNSiPiD »

And me! :)

Looking mor closely at the config file (something I haven't done in a long time obviously, it seems I can also turn on Smarty PHP tags.

Does this mean one could inject PHP directly into a template or content page using {PHP} and have it parsed?? I know this obviously isn't ideal and you'd rather us use plugins but I've got a lot of custom code functionality I want to build in and it's not really practical to use a plugin for every one.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Explicit set page-alias on page creation

Post by Ted »

Yup, that's exactly what it does.
iNSiPiD

Re: Explicit set page-alias on page creation

Post by iNSiPiD »

Apart from the obvious security issue are there any downsides to this? Speed, for example.

Also, what difference does the assume_mod_rewrite switch have? I had it on false but have had no trouble rewriting via .htaccess.
Post Reply

Return to “Developers Discussion”