Custom Breadcrumb navigation, but URL link shows page node

I'm pretty new to Drupal and I'm creating a new content type. The site uses custom breadcrumbs built using BreadcrumbBuilderInterface for certain content types which was built before my time. I added my content type to the list and the my new pages appear in the breadcrumbs menu now, but I'm not sure why the page's URL doesn't show the page title, but instead the node number. 

Unable to use SameSite=none with secure attribute in D8, using Symfony\Component\HttpFoundation\Cookie to create the cookie

Hi There,

I am trying to create a cookie in D8.9 with SameSite=none with secure attribute in D8, using Symfony\Component\HttpFoundation\Cookie class but unable to do so as the class doesn't allow the secure attribute along with none. Also, I tried setting the Cookie's secure parameter to TRUE but it results in infinite redirects in my site. Don't want to implement the solution on site level as it will affect other cookies capabilities. I just want to do this for one particular cookie I am creating. Is there anyone who can help on this. Thanks in advance.

Switching to D8/D9 from D7

Hello guys,

I did some module development in D7, and now I am going through the initial struggle of the switch.

I am a part-time Drupal developer and In Drupal 7 I was able to print_r($view) under hooks to understand the structure of an array/object. This is what I used majorly to find my way around D7.

Similar approach isn't working in drupal 8.

For instance under hook_fixes_views_pre_view() print_r($view) doesn't print anything.

In Drupal 8/9 view, date fromatter 'time ago' is it possible to only show time in weeks only?

Hello Everyone,

I mistakenly thought that it would be an easy task.

I want to use 'time ago' date formatter, but want to calculate in weeks only.

Is it possible in Drupal views?

How do I reference images through CSS in a library within a module?

Hi.

I have created a module, added a library, added CSS and JS.

The CSS and JS load correctly. However the images referenced in the CSS file aren't loaded. Drupal is looking for them at the wrong path.

Under mymodule.libraries.yml

Multiple instances of a block

I need to put a block in more than one region (multiple instances).

As per the following link: https://www.drupal.org/project/multiblock, this feature or functionality is included in Drupal 8 core, however I am unable to find it.

Can someone point me to the right direction please.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x