Unisender newsletter

Unisender newsletter

The unisender.com integration for newsletter from site. Supported views as news content or custom content typed by manager(site administrator). SoundCloud Repost Service SoundCloud Promotion Service Spotify Playlist Promotion Spotify Playlist... read more
Unisender newsletter

Pixelite: Fastly Soft Purge vs Instant Purge – what is the difference?

This topic came up a while ago when Acquia was looking to introduce Soft Purge as an option for their Acquia purge module in Drupal (N.B. not to be confused by the Fastly Drupal module).There appears to be some confusion about what Fastly Soft Purge is, when it is... read more
Unisender newsletter

CiviCRM Blog: Allow users to register for events, buy products in combined cart through Drupal Commerce

Allow users to register for events, buy products in combined cart through Drupal Commerce mark.armstrong 2021-12-30 – 07:37 Combining the power of Drupal Commerce with the flexibility of CiviEvent, Skvare’s team of experts developed the Commerce CiviCRM Event... read more
Unisender newsletter

How to attach a paragraph to a node using node_updatehook?

I am trying to attach a paragraph, to a node. I am currently trying to do it in node_update hook. The value for paragraph will come a custom field. Currently am trying to achieve this with hard-coded value. I tried two methods, but both are not working. Method 1... read more
Unisender newsletter

How can I query and order nodes with multiple date field values within a specific range?

I’m trying to get nodes that have date fields (multiple instances in some cases) and display them sorted ascending by start time for a given date. For illustrative purposes, here are some events and their date field values (start time). Event A 4/2/17 8:00AM... read more
Unisender newsletter

Menu block doesn’t appears where I expect it

I have this kind of menu: “Level 1” has menu item “Level 2”, which links to the page with “cat1” url. Then, I have node which have aliases “cat1/[nid]”, hence, in my opinion, menu block (provided by “menu... read more
Unisender newsletter

Using Views Slideshow to display images with specific url links

I’m new to Drupal and I’m using version 7. I have created a Banner content type, to which I have added an Image field and a Link field (using the Link module). I have allowed theupload of multiple images, and adding of multiple links in this content type.... read more
Unisender newsletter

Duplicate home / front page – available on two urls

I created a view and set it as the front page; its path is /front. The front page is accessible as https://example.com/ and https://example.com/front. Is there a way to prevent this? Sponsored by SupremePR Spotify Promotion Services SoundCloud Promotion TIKTOK... read more
Unisender newsletter

Why am I getting redirect to node?destination=node when trying to login?

I just moved my site to another server, and when I try to login drupal redirects to a blank page. I have no idea what can I do? Please, help me. thanks for your support. Sponsored by SupremePR Spotify Promotion Services SoundCloud Promotion TIKTOK Promotion SoundCloud... read more
Unisender newsletter

Can I use sub-directories in the "templates" directory?

I created a module that contains a large number of custom templates. They are only used for the module’s output; they don’t override any existing template file. I would like to place these templates in sub-directories inside the templates directory. If I... read more
Unisender newsletter

KernelEvents::REQUEST is not fired on cached pages

I need to implement an event subscriber to perform some actions when the page is loaded. The event should be fired whether the requested page exists in the Drupal cache or not. It seems that the KernelEvents::REQUEST event doesn’t fire when Drupal serves... read more
Unisender newsletter

The modal doesn’t appear

I want to output a link in a modal window, using the Simple Link approach shown on Make Mine a Modal. When the link is clicked, the little animated spinner appears, and I can see the response returned via AJAX using the browser inspector. Still, no modal appears and... read more
Unisender newsletter

Password reset causes a 404 error

When users try to reset their passwords clicking on Reset your password, they are fine until they click on the Log in button that shows a message similar to the following one. This is a one-time login for foobar and will expire on Tue, 20/09/2016 – 15:25. Click... read more
Unisender newsletter

Set a form element value to an empty string when it fails validation

I need to set the value of a form element to an empty string, when it doesn’t pass validation. I tried using the following code, but the form element still contains the last submitted value, when the form is re-built. public function validateForm(array... read more
Unisender newsletter

Create relationship betweeen content type and custom entity on specific field

I want to create a two-way relationship between a field in a custom entity (package_date) and the field in a content type (package). I have been able to add a relationship from a view for package_date, but it only allows me to add the linked field to the view, not any... read more
Unisender newsletter

How do I check whether debug mode is enabled?

I enabled the Twig debug mode in the development.services.yml file. Is it possible to verify when the debug mode is enabled, using the Twig_extension class? I need to check this in a Twig extension I created. Sponsored by SupremePR Spotify Promotion Services... read more
Unisender newsletter

Accessing a Entity Refererenced field of the current node

I have to render a field of a node that is inside a content type in Drupal 8. I have a content type called summary that has a field, called field_content that is an Entity reference field for unlimited items of a specific content type (article) I’m able to get... read more
Unisender newsletter

Altering nodes title value

I am trying to alter the title of my nodes to prevent URLS appearing in any title. This is the code I am using. function mytemplate_preprocess_node(&$variables) { $node = $variables[‘node ‘]; $variables[‘title’] =... read more
Unisender newsletter

Find all aliases for a given node

I’m currently working with a client and running some scripts to generate reports (orphaned pages, etc). Right now, I need a way to get all possible registered aliases for a node. Right now, I’m using $node = node_load($nid, NULL, TRUE); $nurl =... read more