Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A "Uniform Resource Idendifier" identifies a resource on a network.
14
votes
Accepted
Programmatically set URL Alias when creating node in form plugin
The node widget currently only shows aliases that have the same langcode as the node. https://www.drupal.org/node/2511968 will change that and also display aliases without a specific language.
But if …
7
votes
Accepted
How to create a URL to an unmanaged public file in Drupal 8
You need to run the file path through file_create_url() and then use it together with base:
Url::fromUri(file_create_url($dest));
(file_create_url() should return absolute URL's, so you don't need …
4
votes
Accepted
Drupal 7 on new Linode stack, POST/GETS 404ing but pages still loading?
The reason for this is most likely that clean url's are disabled. Make sure that mod_rewrite is enabled in Apache.
Fetching pages still works, because the 404 triggers Drupal, which is then able to r …
4
votes
Accepted
The path_processor_outbound service only work after clearing the cache
That's because those links get cached and Drupal doesn't know by what to vary those caches.
That's why you receive that additional argument, $bubbleable_metadata. You need to use it to specify that o …
3
votes
Accepted
Force all links to be absolute
Have a look at this module: Pathologic
Pathologic is an input filter which can correct paths in links and
images in your Drupal content in situations which would otherwise
cause them to “break …
3
votes
URL function with i18n localization
url() uses the current language by default, you only need to pass the language to it if you want another language, e.g. when sending mails to a user with a different language.
If you're on en/somethi …
3
votes
How do I prevent accessing a page with /node/37 directly when an alias has been set?
You don't want to deny access to it but simply redirect to the aliased URL.
That feature is provided by the Redirect module and there's also a core issue to make core do that automatically.
3
votes
Accepted
Error with link field: "Unrouted URIs do not have internal representations"
Ok, based on the stacktrace, this happens somewhere during token replacements.
Your token for the alias is:
Drupal\Core\Utility\Token->replace('[node:menu-link:parent:url:relative]/[node:title]', …
2
votes
Accepted
Replace Standard Node Path in Drupal 8
While theoretically now supported, that is not possible not like this.
You can not reliable load a node based on the node title, it is not guaranteed to be unique, and to become a practical URL, a nu …
1
vote
Overcoming 255 character URI limit for files_managed
You can't configure Drupal to allow longer file names because the schema is hardcoded.
However, trying to upload a file with a longer file name shouldn't lead to a database error, you should report t …
1
vote
Accepted
8 - How to configure system link
You're looking for Pathauto I think. It allows you to define patterns for how the aliases should be created automatically.
1
vote
Accepted
Are URLs UTF-8 encoded?
Everything in Drupal is UTF-8 encoded, yes.
Be aware that various tools still don't properly support such characters in URLs and might display it encoded.
0
votes
Configure inline images upload path per content type
Not directly. The only approach that I could think of right now is that you create a text format for each node type and then use a module like Allowed Formats or Better Formats to limit the allowed fo …