Cell Padding

Hello all.

I'm stuck!!!!!

this page (www.xnsys.com/portfolio) has a nice list of the company's portfolio - although I have a bit of a problem.

The content items are bleeding into each other - is there any way I can stop this and create more of a border around each item?

Thanks in advance for any assistance.

Regards

Tim

Reading from 1D to 2D codes

Hey guys,

I have seen a few modules that can generate 1D code onwards. But i've not seen a module that can read them thru say a smartphone's camera.

Is this impossible because of hardware/progamming limitations or just about no one would have a use for this? I could think up of dozens of real world application.

Why haven't Drupal caught on this yet? Appreciate any pointers.

-AOS.

Change link URL via hook_link_alter

Hi!,

I want to change the URL of some taxonomy term links to another page. The right way is by hook_link_alter custom implementation. This hook has one argument, a variables array with:

  • link options
  • text
  • url (instance of Drupal\Core\Url)

Text and link options can be replaced, but URL replacement has no effect. URL class doesn't implement any method to alter the routeName, so an instance of URL can't be updated.

Is there other way to alter the URL of a link?

DRUPAL 8 REST API - 403 on creating node via ajax form

Hi,

I'm trying to create nodes of a specific content type using Drupal REST API. I'm using jQuery FullCalendar and a custom form, and sending my informations via jQuery Ajax method.
I have enabled the correct permissions via REST UI module and users permissions to allow anonymous users to POST on this content type. No matter what the method ($.ajax, $.post, vanilla xmlHTTPRequest...) I always get a 403 (forbidden) error.

customize menu local task link

Hello,

I am looking for a way to customize 'edit', 'view', 'delete' links.

I use bootstrap theme, but i use bootstrap v4 styles for it. I want to add 'nav-link' class to each link.

And find a way to display somewhere, not just below post title.

I couldnt find a tutorial about it. Where should i look for this? template parts (twig) or themename.theme file?

Remove Query Strings from CSS filenames in Drupal 8

Hello,

I'd need a code snippet to remove the query strings from CSS filenames in Drupal 8
eg. styles.css?o84pmz

The same thing for Drupal 7

function MY_THEME_process_html(&$variables) {
$variables['styles'] = preg_replace('/.css\?.*"/','.css"', $variables['styles']);
}

That is not working for Drupal 8 version

Could someone help me ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x