Need help to update drupal core

Drupal - Open Source Content Platform - Fri, 01/11/2019 - 19:56

Hi world,

I'm new to drupal and I use Drupal 8.6.4 . It has been installed from a Cpanel via the SoftAculous App Installer. I know this was not the best idea but I did it. As a result, all the folders (vendors, core, site, theme) are contained in the same folder. Compared with the "tradionnal" drupal-project repo, I miss the "web" directory. Maybe the SoftAculous installer did use another repo??

Another issue is that I did install most of the modules using the admin menu and not composer (my fault...). I did only use composer when the module author request to do so (most often when some dependency are required).

Anyway, my codebase is poorly managed by composer.

Knowing, all this, I would like to upgrade to the latest core (I assume security breach have been removed+bug fixes).

I tried (on the local website) to use "composerize-drupal" to upgrade my composer.json file. But it does not contains the only a few modules in the "require" section. So despite no error during the composerize-drupal command, the file has not been generated.

So my questions: how can I go to a composer managed codebase and then update the core?

Thanks for your help.

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

[D8] Anon User Navigation Menu orientation

Drupal - Open Source Content Platform - Fri, 01/11/2019 - 16:47

So I am trying to format the Main Nav bar for anon users but anytime I add more than one link to the Menu, the menu items stack vertically instead of lining the primary menu region horizontally. I'm not super experienced with Drupal, and I am trying to figure where the problem is located. Is it CSS? Is it an option in the Drupal Admin config? Just looking for somewhere to start. Thanks in advance.

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

No drupal experience but interviewing for content developer

Drupal - Open Source Content Platform - Fri, 01/11/2019 - 12:20

I have experience using Joomla and WordPress. However, I have not used Drupal. I hear Drupal is much more difficult to use then the Joomla and WordPress.

I'm going to be interviewed over the phone for a content developer position. Any discussing the absence of drupal experience? The odd thing is, there is no mention of drupal in the job description.

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

Weekly useful Drupal things to know thread

Drupal - Open Source Content Platform - Fri, 01/11/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]

Did Drupal 8 fix the issue when you delete your content types it also deletes your Views?

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 17:05

It's been awhile and I remember using D8 a long time ago I had this issue.

Did they resolve this issue in 8.5+ ?

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

Drupal 7 - trigger "Posting to Twitter" module programmatically?

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 15:25

I am currently importing data from an API and I create nodes programmatically from the results, via "node_save($node);".

I have the "Posting to Twitter"-module installed and configured, and would like to trigger this programmatically as well. Does anyone have an idea what code I should use to tweet a specific varriable ($msg)?

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

Having problems preserving cookie for Advanced poll module with Drupal

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 14:55

Hi so we have Advanced poll module 7.x-3.0 and running Drupal 7.x.

We see that for anonymous user who visits our site runs a poll and then closes the browser.

After returning in say 5 minutes the same anonymous user is given the option to vote again!

So the cookies are not being preserved. Why is this so?

Secondly, in advanced poll module is there anyway to log votes by IP address and not cookies so I can test this issue? Thanks!

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

10 helpful Drupal 8 modules for 2019 | Karim Boudjema

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 14:21

In this post, I will share a list of modules that I use on almost all my Drupal 8 projects.

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

How to reference paragraph item in view to allow sorting?

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 14:05

Hi everyone! I’m trying to figure out how to do the following on a Drupal 8 site so any help would be greatly appreciated.

I have a view that lists all my courses available sorted by course title and course code. So my listing page looks like this example: Course Name 1 - CRS123 Course Name 2 - CRS223 Etc.

What I’m trying to do is have an exposed filter that allows the user to filter out the location that these courses offerings are being taught.

So for example, if they select “online”, the listing page will only show the courses that have an offering that is available online.

The course content type is built with only a Title, Course Code, Description and Area of Interest taxonomy.

I then have a Course Offering content type that has an Entity Reference field to the above Course content type and an entity reference revisions field that links to a paragraph type. This is placed as a block on only the Course content type pages with a contextual filter which fetches the data from Content ID from URL.

The paragraph linked to the above content type has fields for Location (taxonomy term), class number and a couple other fields.

I’m assuming I need to build in relationships to work through this but I just can’t seem to figure out the right combination to get it to work.

I can get the location filter to show: Location 1 Location 2 Online But it doesn’t actually sort anything since I’m assuming I’m doing this wrong.

Any suggestions to get this to work? Let me know if you need any more details also.


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

Drupal City map made of module, theme, and distribution names

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 11:12

In order to promote Drupal, we created a special Drupal City map. Every name on this map is a real Drupal module, theme, or distribution name. You can click on every module image to discover more about it. So welcome to Drupal City! Wander around Commerce CCAvenue, enjoy a cup of coffee at the local Restaurant, take a boat trip across the River of Tweets, and much more! ;)


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

Seeking a PT/Remote Drupal Professional (Atlanta)

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 10:45

My employer runs a dozen sites within Drupal 8, we have large projects designated to our 3rd party development team offshore, however smaller tasks; page updates, UI modifications and general items require going under the hood 10-15 hours a week.

Is there a directory of certified Drupal 8 developers online? Not having much luck with placement agencies.

-and does a cert from Acquia/or others even matter?

Thx all!

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

Drupal Dev Thursdays: Post here with development questions or discussion

Drupal - Open Source Content Platform - Thu, 01/10/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]

My site using template files how do I find which view uses what?

Drupal - Open Source Content Platform - Thu, 01/10/2019 - 00:51

Hi so my drupal 7 site is using lots of template files in the themes directory (like page--latestnews.tpl.php).

How do I find out where in drupal is a view being set to use the template file above? There has to be some place where it's set that this view will use this template file?

Please advise. Thanks!

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

D7: Need help with rules to checck if user field is true or not(not that easy)

Drupal - Open Source Content Platform - Wed, 01/09/2019 - 14:53

Hi all,

I have a 'simple' rule that takes 2 parameters:

  1. The Referencing node
  2. The Referred node(Field B)

  1. The Referencing node type is called 'news'
  2. The Referred node type is called 'Bands'

Those are both loaded in a component, thats called 'notifications'.

The component does the following:

  • Checks if the node type of the Referencing node equals content type A, B and C
  • Checks if the node type of the Referred node equals content type D

It then fetches a list of users who have flaged the node thats reffered in 'News' and loops them. Inside the loop there is an action, for now its just 'show message on site', but the plan is to send an e-mail to those people. Now thats where the issue lies.

I want it so that user can opt-out from these e-mails and thats where i got stuck:

  • I created a user boolean field 'send me updates' with a value of 0 for off, 1 for on.
  • Now i a way to check of the value equals 1 so they can receive the e-mail, or not.

I just don't know how to fix the opt-out issue, i can add a user parameter in the component, but that breaks the trigger rule because that ask for an user field, but the rule itself has no access to the flagging users inside the 'band' content type flag field.

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

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

Drupal - Open Source Content Platform - Wed, 01/09/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]