Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This description is not as long as others, but very technical and won't explain the principle of aliases to a non-technical user. (And not to a tech-savvy probably as well :) )
this is to be found at /admin/build/path
This is the actual text:
"Drupal provides complete control over URLs through aliasing, which is often used to make URLs more readable or easy to remember. For example, the alias 'about' may be mapped onto the post at the system path 'node/1', creating a more meaningful URL. Each system path can have multiple aliases."
Comment | File | Size | Author |
---|---|---|---|
#25 | path-description-new.patch | 1.29 KB | eigentor |
#17 | path-description-new.png | 15.95 KB | eigentor |
#17 | patch-description.patch | 2.44 KB | eigentor |
#14 | Screenshot-133.jpg | 3.88 KB | eigentor |
#4 | path.module.patch | 1.07 KB | gaele |
Comments
Comment #1
cweagansHow's this read?
"Drupal provides complete control over URLs through aliasing, which is often used to make URLs more readable or easy to remember. For example, if the alias 'about' was assigned to 'node/1', instead of navigating to {$base_url}/node/1, you could navigate to {$base_url}/about"
Comment #2
cweagansComment #3
Bojhan CreditAttribution: Bojhan commentedSo two unwritten rules, is try not to mention Drupal and we dont use node in the interface anymore.
I'd say, this paragraph should be like ... So URL aliasing, example...
So not explaining what URL aliasing means, but just giving an example.
Comment #4
gaele CreditAttribution: gaele commented"An alias will make a URL available under another name. For example 'node/1' could be named 'about'. A URL can have multiple aliases."
Rationale:
- I wanted to avoid the word "page".
- I wanted to avoid the word "path". The example only shows the path instead of the URL, but I think it is clearer this way.
Comment #5
keith.smith CreditAttribution: keith.smith commentedWhy not slightly more direct language, avoiding "will".
to
Comment #6
Dries CreditAttribution: Dries commentedI like Keith's suggestion slightly better. Quick reroll?
Comment #7
Bojhan CreditAttribution: Bojhan commentedI will do one. A slight change is adding a / to identify that it is a url thing
Use an alias to make a path available under a different name (for example, the alias '/about' for the path 'node/1'). A path may have multiple aliases.
Comment #8
keith.smith CreditAttribution: keith.smith commentedIf we use "/about", shouldn't we use "/node/1"? And, how does the ui act if someone actually enters the leading /? Someone certainly will do so if we show it like this.
Comment #9
Bojhan CreditAttribution: Bojhan commentedIt kills you, but thats a different patch going in soonish I hope.
Yes on "/" :P
Comment #10
XanoNode will probably be optional in Drupal 7, so if possible we should avoid using it for examples.
My shot: An alias makes one path available under another one i.e.
user/john
foruser/1
.Comment #11
eigentor CreditAttribution: eigentor commentedGaele wanted to use the term "URL" instead of the word "path" because he thinks (and I second him) that this is a more common word outside the drupal world. I would believe path is more common to drupal users, but not general web users.
Still it is probably not too different :)
Comment #12
keith.smith CreditAttribution: keith.smith commentedThe thing with URL is that the small portion of it we're talking about isn't really a URL.
Comment #13
eigentor CreditAttribution: eigentor commentedWell that is right. Hmm. So we are looking for another word. Gaele also though about rendering the missing part of the url dynamically, so the user sees http://theuserssite.com/node/1 but we would have to format that maybe like this http://theuserssite.com/node/1 so the not so important part is a bit put into the background. A very bright text color for the first part of the url would also do.
_Then_ it would be an URL. :)
Comment #14
eigentor CreditAttribution: eigentor commentedLike this maybe:
Comment #15
Bojhan CreditAttribution: Bojhan commentedugh, lets not do it to difficult. Node beign optional here is like 00000.000001%, just do something different for that thing.
Comment #16
Dries CreditAttribution: Dries commentedElsewhere in Drupal, I think we refer to this as the "URL path".
I think it is OK to use 'node' in the example -- as Bohjan said, that is pretty minor.
Comment #17
eigentor CreditAttribution: eigentor commentedNew Attempt. Have incorporated "URL path". Looks now like this:
Comment #18
Bojhan CreditAttribution: Bojhan commentedI think the example.com is to much.
Comment #19
XanoAn alias makes one URL path available under other ones i.e. http://example.com/user/john for http://example.com/user/1.
I'd strip the single quotes and use EM or possibly CODE tags instead. I am unsure if we should display the domain name differently. If we do, we should avoid class names that describe styling rather than meaning. A class
unimportant
would in this case be better, since the domain name actually isn't important.Comment #20
YesCT CreditAttribution: YesCT commented#8 mentioned that a user might enter a leading slash if we are not careful.
#13 and #14 shows the slash is not part of the alias (http://example.con/node/1
#17 has the slash in the wrong part
So if we go with using example.com or some host name and a class, the slash should be in the
unimportant
part. See #19.#16 says it's ok to use node.
If we use the phrase URL path (see #16) maybe we don't need any of that anyway.
Comment #21
stBorchertWhy not use site site's real URL instead of "example.com"?
Comment #22
yoroy CreditAttribution: yoroy commented#20 is almost there. The terms are abstract enough to warrant an example. My rewrite tries to be yet another bit shorter and simpler:
An alias defines a different name for an existing URL path (for example, the alias 'about' for the URL path 'node/1'). A URL path may have multiple aliases."
Comment #23
Dries CreditAttribution: Dries commentedLet's avoid the color-coding in help text, please.
Comment #25
eigentor CreditAttribution: eigentor commentedRerolled.
Incorporated yoroys suggestions, with slight changes, as I hate brackets when not absoluletly necessary. Looks now like this:
"An alias defines a different name for an existing URL path - for example, the alias 'about' for the URL path 'node/1'. A URL path can have multiple aliases."
Comment #26
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Much better than what we have today, but feel free to re-open if we want to discuss this more. Thanks all!