FIRST
I got Clean URLs set up and working using the various module helpers (path, path-auto, global-redirect). However, my clean urls all have /content/clean-url-page-alias. The "content" bit I would like to remove.

I have aliases being created automatically so my clients will not have to manage or input clean URLs for their pages or news items.

So far, the only way I've found to remove "content" is to manually edit the aliases of existing pages. But, that obviously will not fly for a site of any size.

I'd like the clean urls to pan out like: www.domain.com/clean-url-page-alias. There just isn't a need for the extra /content part to be injected.

SECOND
It would be beneficial if I could get my clean urls for my content type "News" to actually inject /news in the path. I believe that I would then be able to make my news item View (a list of all new items) populate the sidebar when a user is looking at any individual news item (article). Thus, the user would be able to hop from article to article without the annoyance of backtracking to the main News page.

Comments

dbeall’s picture

I suggest using http://drupal.org/project/path_auto it is really neat and works good too.. You set all those paths and much more..

a good one to add to it is-- http://drupal.org/project/token Token has no control panel, but gives lots of neat options for pathauto

dbeall’s picture

sorry.. i wasn't thinking clearly.. but i am awake now.
goto: Site building > url aliases > Automated alias settings > Node path settings.
There is where your be able to make it provide any 'named' path you want for all content types and you can use tokens to help.

squidz’s picture

I have been mucking around with that Node Path Setting area and other settings there. However, the problem is that I don't really know what any of it really does. I experimented a bunch and I can neither get "content" out of my page URLS nor can I can make "news" inject into paths for that content type. AND, since there is not method to put back the defaults I'm getting a status report that says I'm doing something wrong.

"You are using the token [cat] which has a -raw companion available [cat-raw]. For Pathauto patterns you should use the -raw version of tokens unless you really know what you are doing. See the Pathauto help for more details."

Now I simply don't know what to do.

For example: I set Node Path Settings for my type "News" trying to get "news" to inject into the URL so that I can try to close out my effort to get all other news items to show on news article pages.

[type]/[title-raw]

From what I understand, "new" should be injecting into the URL for content type of News. Nothing happens.

I'm just lost in this area.

squidz’s picture

Folks, please someone walk me through this. I have screwed with aliases for days and cannot REMOVE "content" from my page paths. I don't understand why it's there much less how to make it go away. I looked at site building > URL Aliases > Automated Aliases. I reset it to default and there shows "content" in my paths. when I remove it in the Admin, it does not remove it from the page paths.

Secondly, I WANT "news" in the paths for my News content type. Can't do that either.

Getting this silliness resolved will allow the site to launch. Anyone that can tell me in plain English how to remove "content" and add "news" to the content type "News"...? I've read documentation and experimented deep into the night. I'm not getting it. Lead this horse to water before he's sent to the glue factory.

dbeall’s picture

ok.. walking..
Open the url alias page,, open the automated alias settings,, node path settings.
There you will see a "pattern" box for each content type.
The top box is the "default pattern", if there is no specific pattern set for a content type, it will use the "default pattern"

Find the content type you want to setup in the list...lets say it is the "news" content type that you want to set.
In the "pattern for all news paths" box, type the name "news" and then and a token [title-raw]. so you will have "news/[title-raw]" in the news pattern box.
That will make all news submissions have a path of example.com/news/name or title of post.

Tokens are "replacement patterns" or paths dynamically generated by the system.
The available tokens are in the in the drop down list "replacement patterns".
You can have as many tokens or names as you need or want in the path.
example.com/news/[author-name]/[title-raw]

set that one and save it, create a new news submission and save it to see the pattern in the url.

FIX Existing patterns made before setting the path..
If you only have a few news pages to fix, one at a time might be easier.
Choose the List tab.. find one that needs changed, under operations, choose edit and manually fix the path alias to read "news/the name of article" and click "update alias". do the next one...

Please let me know if this helps.. I can go into more details if u like

squidz’s picture

Oh man...

Here are the key words you said "set that one and save it, create a new news submission and save it to see the pattern in the url.

FIX Existing patterns made before setting the path.."

I'm a total dork for not snapping that only new paths would work with the new settings. I have now created a news item and an page. New item uses "news/title" and pages have "content" removed.

I can't tell you how much pain this has caused trying to get this done.

Now, hopefully, having "news" in the paths will help me get the other news items to show up as links on each News item page. Not sure, but it may get me closer.

I truly appreciate you sticking with this thread and walking me through the forest I couldn't see through the trees.

dbeall’s picture

I am very happy to help.. please let me know if any other items get in your way..

squidz’s picture

dbeall - truly appreciated. The URL resolution made it incredibly easy to accomplish my second task which was to get "other news" links to show up on all my News content type pages. a huge monkey off my back.

dbeall’s picture

believe me when I tell u that I was sooo lost when I started with url aliases..lol..