number only file names

4 posts by 2 authors in: Forums > CMS Builder
Last Post: December 8, 2008   (RSS)

One of the problems I run into with CMS Builder is the defaults, some of which make questionable choices from my point of view.

How do I get rid of the silly "entire title as filename" feature and return it to a "number only filename" in the section editors? Here's the code at present:

<?php echo $record['_link'] ?>">

Add this is what URLs look like now:
http://clientdomain.com/articlesDetail.php?The-Legality-of-the-West-Bank-Wall-Israel-s-High-Court-of-Justice-v.-the-International-Court-of-Justice-4

All Interactive Tools products seem to default towards this keyword-oriented filename. I'm prepared to be wrong on this but I've never seen them make any difference to SEO, especially when they're auto-generated with every preposition (and it of) added.

Mostly, all these long URLs seem to do is break when you send them in e-mail and make it impossible to give them out over the phone.

I'm looking for something like this:

http://clientdomain.com/articlesDetail.php?1
or
http://clientdomain.com/articlesDetail.php?article1

Alright, I'm done hating on long URLs now. :-)

Thanks! :-)

Nigel
_____________________

For more information about Nigel Parry and nigelparry.net
websites please see http://nigelparry.net

nigelparry.net: award-winning communications
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting

Re: [nigelparry.net] number only file names

By Dave - December 5, 2008

Nigel, that's an easy one! :)

Just go to Admin > Section Editors > Your Section > Viewer Urls (tab) > Filename Fields

Just blank that out or put in the name of the field you want to use.

You can also hand construct urls to have whatever you want using PHP echo tags. Just make sure the record number if on the very end.

Let me know if you need anything else! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [nigelparry.net] number only file names

By Dave - December 8, 2008

You can specify any field you want in the filename field. So you could create a new field "filenameText" and fill that out for each record to have that content appear in the url.

You can also hand craft an url like this:
viewer.php?<?php echo $record['num'] ?>

And put anything else you want in there:
viewer.php?hello-world-<?php echo $record['num'] ?>

And then with .htaccess, mod_rewrite, and other tricks you can drop the .php, and craft just about any kind of urls you want.

The best way to start would be to figure out how you'd like your urls to look and then work backwards from there.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com