Attaching Custom JS to Form

For Drupal 7, I wrote a very simple module to implement the Dirty Forms jQuery library with specific customizations to support the CKEditor module. This was, all told, about 8 lines of PHP code.

I've spent several hours reading through documentation and experimenting today, and I still am no closer to making this work for Drupal 8.

Drupal 7 has a relatively simple manner for doing this:

$form['#attached']['js'] = array();

When I first did this in Drupal 8, I got the error:

Drupal 8: Get an field from a referenced node in twig

So I have a field called "user_menu" which is a multiple Links field for the Users.
Then I have a new content Type "user_page " with a reference field to a user called "related_user".

Now I would like to have on each "user_page" the "user_menu" field from the referenced user given by the "related_user" field. So how can I get the "user_menu" field in the "user_page" twig file? Or should this be done in some other way?

Thanks a Lot!

Creating Custom Subdomain User Pages

Hello. I want to build a Drupal website where users would be able to create their own subdomains such as http://user.website.com. What modules exist for such an implementation, or what do I need to do?
NOTE: I don't want http://website.com/user, but http://user.website.com.

IMCE in drupal 8 not able to show "Open File Browser" and "Browse Server"

Hi,

so I integrated IMCE to my Drupal 8 installation and was trying to get the "Browse Server" function in the "Link" function of CkEditor. But there is nothing.

The next thing was to activate IMCE for File fields. I activated the " Allow users to select files from Imce File Manager for this field." for the widget. But the "Open File Browser" link above the upload widget also is missing.

I am using "Bartik 8.0.0-beta15" Theme.

Any help is much appreciated.

Choosing between Drupal 7 or 8 to migrate from Wordpress

Hello everyone,

I am from Cheluxe Media and our current website (http://www.cheluxe.com/it-services) is made using Wordpress 3.4.

However we plan to switch to using Drupal as we need better SEO and a more complex structure.

My question is should we develop the new site using Drupal 8 or stick with Drupal 7?

Thank you for your time,
Thanh

...put the image button for upload in the advanced forum answer form?

Drupal is up and running but how do I put the image button for upload in the advanced forum answer form?

Thanks very much.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x