Content specific blocks

Hello,

First off I'm using Drupal 8 to develop my own site/theme. I've found a topic that was similar but no clear answer.

My front page consists of many blocks, that will show teasers of article, social and blog posts. My front page is /home and it set as the default page. It's made using panels which has all the regions I need.

Prevent the block from caching

Hi all. Got a question. I have the block with simple php-code, which has to display unique links (Mainlink system) on each page. But this block caches everytime and displays last render on every page, total cache clearing make this block work right once, but it's not the solution ofc. Is there any way to prevent caching of this block, or maybe prevent block caching at all (it doesn't matter in my case)?

I'm running Drupal 8.0.2

Configure Block Cache

Hi,

I wrote a block in Drupal 8 to render a menu based on the http headers of the request, which contains the users' information from the idp. This menu is supposed to be different from user to user, but currently it is cached once it is generated when the very first user login to the website.

I have tried setting the cache max-age to 0, but it didn't seem to work at all. Then I tried the session of the cache contexts, but still those pages visited by previous users are cached. Neither did header:custid.

Here is a sample code

What minimum permissions are needed to add, edit, delete taxonomy terms?

I need to create a role with just enough permissions to add, edit and delete taxonomy terms in a closed taxonomy. They should not be able to create, edit or delete vocabularies, just terms. Looking at Permissions I'm confused about which permissions to grant. Under Taxonomy the first item is Administer vocabularies and terms. It seems I don't want that, but I don't see a permission for adding terms, only editing and deleting terms by vocabulary. Any help would be appreciated.

Making a photo content type display a certain way

I'm trying to make a photo gallery landing page with links to different galleries, and then have the galleries displayed a certain way. I can do both things separately with Views, but I can't "link" them together.

Drupal 8.0.2 twig dump() and kint() not working for me

dump() is not working for me at all, even on simple variables (e.g. I tried the example in the docs of {{ dump(breadcrumbs) }} in the bartik page template). I've upped PHP resources to max_execution_time = 600 and memory_limit = 2048M but just keep getting 500 server error after some time.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x