I'm trying to figure out how to print out the file path and the name of the file uploaded from a custom content type. I have my page template all created but now I'm just trying to figure out how to print out the path of the file that got uploaded with the content. I also want to print the name of the file out as well. This is all in Drupal 8.
I've been working on extending the 'html' format that MainContent uses in D8 in a custom application in order to get in front of the stack that controls the render array. However, it's not very clear how I need to structure my route/controller to tell the Main Content event subscriber to output anything other than just html.
I would expect this to be as a route option, whether it displays, html, json, or _insert_format_here_. Any advice is welcome!
Hi,
I have just installed my own custom theme.
I have added a new (non default region) in the newtheme.info.yml on the regions: section.
example:
panel: Panel
The problem is that the new region is not being shown in the block region demonstration. All caches already cleared.
A block has already added in the region.
In the Block region demonstration the Panel region is not shown. Like Content or other default regions with the yellow background.
If I add the next lines to the overriden template page.html.twig in my own custom theme:
Hi,
I have a working 8.0.0 Drupal experimental site on an Ubuntu 14.04 server. It runs PHP 5.5.9 and apache 2.4.7.
The day before yesterday, I got the message to upgrade to 8.0.1. I decided to give it a try, as a separate installation. It fails after having entered the valid database information.
The message says : Error
The website encountered an unexpected error. Please try again later.
\Drupal\Core\Config\UnmetDependenciesException :
Ive created a content type and created a view for the rest export of said content type. How pray tell do I get query parameters on rest exports with Drupal 8? Sort, offset, etc
Ive been looking for some solid information about this topic and have come up empty handed. I read on stack exchange that this is only possible via the Search API. Could someone give me a URI example of such a request?