Drupal

Drupal 8.5.3 > 8.6.5 Flysystem Issue

Drupal - Open Source Content Platform - Fri, 01/04/2019 - 17:34

Kind of a weird issue just popped up for me. It seem that the image style linking has changed between these 2 versions. I do understand this is a large version change, but this has broken some stuff and I have no idea how to resolve it. So previously, my hero images are the exact link to the image in my s3 bucket such as below:

https://s3-us-west-2.amazonaws.com/bucket/styles/fs_bg_img_lg/s3/2017-05/whatever_header.jpg?h=fcb5852d&itok=HYxtDfpw

But now, the image links are similar to below:

/_flysystem/s3/styles/fs_bg_img_lg/s3/2017-05/whatever_header.jpg?h=fcb5852d&itok=HYxtDfpw

The issue is that for the translated page, Spanish in this case, an es is added to the front of the second url. This content is not translatable. The example link below is what I'm getting:

/es/_flysystem/s3/styles/fs_bg_img_lg/s3/2017-05/whatever_header.jpg?h=fcb5852d&itok=HYxtDfpw

The second link is giving me a 404. Has anyone else experienced this same issue? I really do need to upgrade. There's a chance I can downgrade Flysystem, but I'd rather see if anyone has had this issue already before doing that. Any help is greatly appreciated. Thank you.

submitted by /u/bobaluey69
[link] [comments]

How can I used a module like computed field and tokens to fill in empty values after form submission (D7)?

Drupal - Open Source Content Platform - Fri, 01/04/2019 - 16:59

I want to use tokens to set values for empty fields when a node form is submitted.

As a very simple example say I have a field called Title Metatag, with the default being the node's Title [node:title], which is mandatory. On form submission if Title Metatag is empty, the value of [node:title] should be copied to the Title Metatag, but is should use a routine which will use the [node:title] token.

It is more along the lines of the Automatic Entity Label but should work for other fields

PS. I don't want to use custom modules, just something defined in admin which is quickly accessible.

submitted by /u/vfclists
[link] [comments]

Advanced poll module not working with Drupal cache turned on

Drupal - Open Source Content Platform - Fri, 01/04/2019 - 14:26

Hi so on my Drupal 7.x website, I have advanced poll module 3.0 installed. I also have Drupal performance caching turned on.

I notice that if I vote on the voting page, the results are shown instantly (with refreshing the page). However, for some reason I am able to re-visit the site (after a few seconds) and am allowed to vote again (it should show results since I voted already).

If I disable standard Drupal caching the module works as designed ie it won't let you vote and show results instead.

So I've disabled Drupal caching for now, just so that the Advanced poll feature works on my website. Is there any fix to this issue? Thanks!

submitted by /u/froddo7
[link] [comments]

Weekly useful Drupal things to know thread

Drupal - Open Source Content Platform - Fri, 01/04/2019 - 09:07

What's a useful tip or technique or tool (or anything) that you picked up and think others should know about?

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Has anyone ever removed HybridAuth (social login) functionality from an existing site?

Drupal - Open Source Content Platform - Fri, 01/04/2019 - 05:11

We currently offer social login on our site (FB, Twitter, Google auth providers) using the HybridAuth module and library for D7. The powers that be are exploring what it would take to remove that functionality from the site.

I've already determined that I need to generate and store a random password for each social user and send them an email explaining the change and telling them to use the reset password functionality. The random passwords would never be sent in the email, it's just to have a value for the field.

Other than that, what else should I consider?

submitted by /u/kziv
[link] [comments]

Which module for payment processing of invoices generated externally?

Drupal - Open Source Content Platform - Thu, 01/03/2019 - 16:59

We are a services company, and about half of our customers pay with either PayPal or by credit card. We use Quickbooks to create estimates and invoices, and we use Intuit payment services to process credit cards. For Paypal we just direct the customer to send it to a specific paypal email address.

We'd like to add the ability to pay the invoice through a link on our web site, rather than having customers send us hand written authorization forms.

As usual with Drupal (which I've been using for a decade for several non-ecommerce sites), finding information is like stepping into a black hole, and I can never quite find the right answer for my situation. So I'm hoping someone might have specific recommendations. We would like the following payment processing flow:

  1. We email the invoice to the customer, including a link to the payment page on our web site. This should allow for them to choose either PayPal or Credit Card.
  2. Customer goes to the link, where they enter their invoice number and the payment amount
  3. Site passes the info along to the processing service, then either returns success and we email a confirmation, or the processor does this. Doesn't matter either way.

A note on #1 - I don't want to just switch to PayPal for credit card processing, because the rates tend to be higher than regular card processors. Our typical credit card transactions range from $50 to $10,000, depending on the size of the job. PayPal takes way too much on large transactions so I'd like to be able to process those through either Intuit payment solutions or another similarly priced service. Also, it'd be nice to offer other payment methods, but we're fine right now with PayPal and CC

What I DON'T want is a shopping cart system, because we're not selling predefined objects. Every invoice is different. We just want the customer to have a single place where they can go to process their payment, that's seamlessly integrated into our site.

Ubercart looks like the primary Drupal method of doing this but I can't for the life of me tell from the ubercart page if it'll do exactly what we want.

Any suggestions?

Thanks!

submitted by /u/friolator
[link] [comments]

Drupal Dev Thursdays: Post here with development questions or discussion

Drupal - Open Source Content Platform - Thu, 01/03/2019 - 09:06

This is the weekly thread for development questions or chit-chat that doesn't belong in the Monday Beginner Questions thread. All questions/comments/ranting about Drupal dev is fair game.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

It's Drupal Contrib Wednesday! Post recent contrib module likes/dislikes

Drupal - Open Source Content Platform - Wed, 01/02/2019 - 09:07

Have you tried a new module or theme recently, or do you have a favorite that nobody seems to know about? Tell us what you like or dislike.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

How to edit the spacing of content like padding/margin/line-height in any existing theme of drupal

Drupal - Open Source Content Platform - Wed, 01/02/2019 - 04:45

I am working with Drupal W3CSS theme.

I am a newbie to Drupal and Programming both.

I want to edit the spacing of content such as it's padding/marging inside the content wrapper.

Like this. left and right margin/padding

And how do I edit the space between two consecutive field contents.

How do I edit this spacing

Can you please tell me which twig file and css file do I need to edit, and how do I do this?

submitted by /u/samarpit30
[link] [comments]

It's Triumphant Tuesday! Post your recent Drupal wins and launches

Drupal - Open Source Content Platform - Tue, 01/01/2019 - 09:06

Here's your chance to brag about cool stuff you've done recently and awesome sites you've shipped. Anything happy and Drupal-related goes.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Weekly Drupal beginner questions thread

Drupal - Open Source Content Platform - Mon, 12/31/2018 - 09:07

Ask your newbie questions here! No judgement!

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Showing different content in a block based on the content which is currently viewed

Drupal - Open Source Content Platform - Mon, 12/31/2018 - 02:39

Here is what I want to do:

I have two different content types.

When I view a specific entry of Content Type A, I want a specific entry of Content Type B displayed in a block.

I know that this is somehow possible with contextual filters, as I already did manage it in the past but forgot how exactly.

What I did so far is creating a reference to content type B in content type A, which has to be set to the individual item of type B.

I also already created the block and it works without using filters.

But as soon as I create the contextual filter: "TypeB (field_TypeB) Content Appears in: TypeA."

And set it to "Provide Default Value: Content ID from URL" it simply vanishes completely as it doesn't find anything to display.

Already tried using Relationships, as I vaguely remember having that used the last time, but no matter what combination I am trying, nothing works.

Can anybody help me out and maybe tell me what I am missing?

submitted by /u/IntrepidLie
[link] [comments]

Og:image and default image

Drupal - Open Source Content Platform - Sat, 12/29/2018 - 17:31

Dear all,

I'm new to Drupal. I'm using version 8.

I setup a content type with an image field. I also setup a default image. This works fine, the image is displayed if none is provided.

I setup the metatag module to generate tags. Especially, the og:image is generated by token :[node:field_image:entity:url]

When the content is created with an image (not the default one), the page is generated with proper meta og:image.

When a content is created without adding a new image, the page is created with the default image but the og:image is not generated.

When the default image is displayed, I would expect the image field to send the correct url through the tokens...

I do not really know what's wrong (is this a normal behavior and I should proceed in a different war or is this a bug?? ) .

Any help.will be appreciated. Thanks.

submitted by /u/seb59
[link] [comments]

Problem setting canonical metatag for Drupal website with paginated page

Drupal - Open Source Content Platform - Fri, 12/28/2018 - 13:31

Hi so I a Drupal 7 website that has a page of news items that is paginated with following url syntax:

https://example.com/news

https://example.com/news?page=1

https://example.com/news?page=2

https://example.com/news?page=3

And each of these pages have list of unique news articles with title/link with 10 links per page. The news articles keep getting added to the page as news is added to the main page of the site.

My problem is that I'm having problem setting the canonical metatags for these paginated pages.

So, my if my views has canonical set to [view:url] and it works fine only for the first page. But when I open next pages and check canonical I see the same view url as first page.

The canonical metatag value for all the paginated pages remains https://example.com/news

I tried setting the canonical url to [current-page:url:absolute] but that's not working either. How do I fix this canonical metatag problem in drupal? Thanks!

submitted by /u/froddo7
[link] [comments]

Weekly useful Drupal things to know thread

Drupal - Open Source Content Platform - Fri, 12/28/2018 - 09:06

What's a useful tip or technique or tool (or anything) that you picked up and think others should know about?

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Pages