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: [Dave] number only file names

Thanks Dave!

That was super easy.

When you talk about hand constructing PHP echo tags, I guess you mean by inserting echo tags in the templates/generated code and in that space manually constructing a URL out of record numbers and links? Can you give an example?

Or can you add some generic text in this same "Filename Fields" text box in the Section Editor interface?

I'm stuck in the Article Manager way of thinking where you can go into the Publishing Rules and define file names with plain text and then have a field name, eg.

article<num> <ext>

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