TEIA.RU
Зеленый хостинг ТЭИА

Uptolike

LTCBTC - Bitfinex

Криптоновости

World News

How to add non-theme-dependent CSS?

feedspot - Sat, 09/01/2018 - 07:00

I'd like to add some CSS directives that will not be dependent in any theme whatsoever, either from a file or from the GUI directly.

The module CSS editor allows me to add custom CSS per theme, directly from GUI, but I need that global and not per theme.

Do you know a way?

Categories: World News

how to use (reference) the uploaded file to a media(video) type?

feedspot - Sat, 09/01/2018 - 07:00

i have read https://www.drupal.org/node/2941420 and i can upload a image file then use it in article.

but i can not use it as video field after i upload a video file.

(my drupal version is 8.6.0-beta2)

I use the media type ( drupal 8 core module) for my video field , this is a Entity reference.

when i use POST http://www.myhots.com/file/upload/media/video/field_media_video_file?_fo... i get the response as the end shows.(the fid =47)

{ "message":"Unprocessable Entity: validation failed. field_user_video.0.target_id: The referenced entity (media: 47) does not exist. " }

then i use it : curl -X PATCH -H 'Content-Type: application/json' -H 'X-CSRF-Token:YYYYYYYYYYYYYYYYYYYY' -H 'Authorization: Basic XXXXXXXXXXX=' -i 'http://www.myhost.com/node/5?_format=json' --data '{

"type":[ { "target_id":"user_video", "target_type":"node_type" } ], "field_user_video":[ { "target_id":47, "target_type":"media" } ]

}

the response is as follows: { "message":"Unprocessable Entity: validation failed. field_user_video.0.target_id: The referenced entity (media: 47) does not exist. " }

can you kindly tell which information should i used to patch it ? it seems that the "fid" is not correct.

maybe i need "target_id " of "media“, but there is not respond after i upload a video file, can you kindly give a suggest?

"field_user_video": [{ "target_id": 3, "target_type": "media", "url": "/d86/media/3" }]

'

{ "fid":[ { "value":47 } ], "uuid":[ { "value":"cf69fac4-5ba2-4861-9cce-a959dee3c480" } ], "langcode":[ { "value":"en" } ], "uid":[ { "target_id":1, "target_type":"user", "target_uuid":"c2b09ff8-345a-43fa-b9ae-68af0c9cd3ea", "url":"/d86/user/1" } ], "filename":[ { "value":"example2.mp4" } ], "uri":[ { "value":"public://2018-08/example2.mp4", "url":"/d86/sites/default/files/2018-08/example2.mp4" } ], "filemime":[ { "value":"video/mp4" } ], "filesize":[ { "value":6320348 } ], "status":[ { "value":false } ], "created":[ { "value":"2018-08-31T03:04:20+00:00", "format":"Y-m-d\TH:i:sP" } ], "changed":[ { "value":"2018-08-31T03:04:20+00:00", "format":"Y-m-d\TH:i:sP" } ] }

Categories: World News

Drag and drop nodes in a node list (to later use that sorting inside a view)

feedspot - Sat, 09/01/2018 - 07:00

Under example.com/en/admin/content I show all site content filtered by content type and then I get a list of all nodes from that content type. The nodes will appear in some sorting (usually date).

Instead sorting them by date I'd like sorting them by drag and drop.

What way will you use?

I aim to later use that sorting as a sorting way for Views.

Update per answer

I installed and enabled DraggableViews and added a sorting criteria (global: draggable views) but I don't have a contextual link for it after saving it.

I think it's a common issue; Though I did what #10 said I didn't quite understand #22. Maybe you know why the module isn't usable?

Categories: World News

Error: Syntax error, unrecognized expression: <div id="ctools-modal">

feedspot - Sat, 09/01/2018 - 07:00

I want to display a form in CTool modal dialog, but failing badly.

When I click link to show modal form, ajax request is started:

POST http://drupal.dev/my_mod/arg1/ajax/arg3

and returns:

Error: Syntax error, unrecognized expression: <div id="ctools-modal"> <div > <div > <div > <button type="button" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 id="modal-title" >&nbsp;</h4> </div> <div id="modal-content" > </div> </div> </div> </div>

I tried to click different link, but gets an error:

TypeError: Drupal.CTools.Modal.modal is undefined

Code:

function my_mod_menu() { return array( 'my_mod/%/%ctools_js/%' => array( 'title' => 'Entity Modal Edit', 'page arguments' => array(1,3), 'page callback' => 'my_mod_modal_page_callback', 'access callback' => 'my_mod_modal_access_callback', 'access arguments' => array(1,2,3), 'type' => MENU_CALLBACK, ), ); } function my_mod_modal_page_callback($entity_type, $id) { ctools_include('modal'); ctools_include('ajax'); ctools_modal_add_js(); $form_state['user'] = user_load($id); $output = ctools_modal_form_wrapper('my_mod_form', $form_state); ctools_modal_render('Edit', $output); exit; }

I'm creating my edit link in custom views_field_handler:

class my_mod_handler_field_links extends views_handler_field { function init(&$view, &$options) { parent::init($view, $options); if (! isset(self::$some_property)) { ctools_include('modal'); ctools_include('ajax'); ctools_modal_add_js } } function render($values) { $edit_link = array( 'href' => 'my_mod_ctools/some_value1/nojs/some_other_value', 'title' => t('edit'), 'attributes' => array('class' => array('mymod-ctools-links', 'ctools-use-modal', 'use-ajax')), ); $links[] = $edit_link; $build = array( '#prefix' => '<div >', '#suffix' => '</div>', '#theme' => 'links', '#links' => $links, return drupal_render($build); } function query() {} }
Categories: World News

Drupal Association blog: Farewell Megan, but not goodbye

feedspot - Sat, 09/01/2018 - 06:51

This blog has been re-posted and edited with permission from Dries Buytaert's blog. Please leave your comments on the original post.

As you might have read on the Drupal Association blog, Megan Sanicki, the Executive Director of the Drupal Association, has decided to move on.

Megan has been part of the Drupal Association for almost 8 years. She began as our very first employee responsible for DrupalCon Chicago sponsorship sales in 2011, and progressed to be our Executive Director, in charge of the Drupal Association.

It's easy to forget how far we've come in those years. When Megan started, the Drupal Association had little to no funding. During her tenure, the Drupal Association grew from one full-time employee to the 17 full-time employees, and from $1.8 million in annual revenues to $4 million today. We have matured into a nonprofit that can support and promote the mission of the Drupal project.

Megan led the way. She helped grow, mature and professionalize every aspect of the Drupal Association. The last two years in her role as Executive Director she was the glue for our staff and the driving force for expanding the Drupal Association's reach and impact. She understood how important it is to diversify the community, and include more stakeholders such as content creators, marketers, and commercial organizations.

I'm very grateful for all of this and more, including the many less visible contributions that it takes to make a global organization run each day, respond to challenges, and, ultimately, to thrive. Her work impacted everyone involved with Drupal.

It's sad to see Megan go, both professionally and personally. I enjoyed working with Megan from our weekly calls, to our strategy sessions as well as our email and text messages about the latest industry developments, fun stories taking place in our community, and even the occasional frustration. Open source stewardship can be hard and I'm glad we could lean on each other. I'll miss our collaboration and her support but I also understand it is time for Megan to move on. I'm excited to see her continue her open source adventure at Google.

It will be hard to fill Megan's shoes, but we have a really great story to tell. The Drupal community and the Drupal Association are doing well. Drupal continues to be a role model in the Open Source world and impacts millions of people around the world. I'm confident we can find excellent candidates.

Megan's last day is September 21st. We have activated our succession plan: putting in place a transition team and readying for a formal search for a new Executive Director. An important part of this plan is naming Tim Lehnen Interim Executive Director, elevating him from Director, Engineering. I'm committed to find a new Executive Director who can take the Drupal Association to the next level. With the help of Tim and the staff, our volunteers, sponsors and the Board of Directors, the Drupal Association is in good hands.

Categories: World News

DrupalCon News: DrupalCon 2019

feedspot - Sat, 09/01/2018 - 06:51
Categories: World News

Dries Buytaert: Farewell Megan, but not goodbye

feedspot - Sat, 09/01/2018 - 06:51

As you might have read on the Drupal Association blog, Megan Sanicki, the Executive Director of the Drupal Association, has decided to move on.

Megan has been part of the Drupal Association for almost 8 years. She began as our very first employee responsible for DrupalCon Chicago sponsorship sales in 2011, and progressed to be our Executive Director, in charge of the Drupal Association.

It's easy to forget how far we've come in those years. When Megan started, the Drupal Association had little to no funding. During her tenure, the Drupal Association grew from one full-time employee to the 17 full-time employees, and from $1.8 million in annual revenues to $4 million today. We have matured into a nonprofit that can support and promote the mission of the Drupal project.

Megan led the way. She helped grow, mature and professionalize every aspect of the Drupal Association. The last two years in her role as Executive Director she was the glue for our staff and the driving force for expanding the Drupal Association's reach and impact. She understood how important it is to diversify the community, and include more stakeholders such as content creators, marketers, and commercial organizations.

I'm very grateful for all of this and more, including the many less visible contributions that it takes to make a global organization run each day, respond to challenges, and, ultimately, to thrive. Her work impacted everyone involved with Drupal.

It's sad to see Megan go, both professionally and personally. I enjoyed working with Megan from our weekly calls, to our strategy sessions as well as our email and text messages about the latest industry developments, fun stories taking place in our community, and even the occasional frustration. Open source stewardship can be hard and I'm glad we could lean on each other. I'll miss our collaboration and her support but I also understand it is time for Megan to move on. I'm excited to see her continue her open source adventure at Google.

It will be hard to fill Megan's shoes, but we have a really great story to tell. The Drupal community and the Drupal Association are doing well. Drupal continues to be a role model in the Open Source world and impacts millions of people around the world. I'm confident we can find excellent candidates.

Megan's last day is September 21st. We have activated our succession plan: putting in place a transition team and readying for a formal search for a new Executive Director. An important part of this plan is naming Tim Lehnen Interim Executive Director, elevating him from Director, Engineering. I'm committed to find a new Executive Director who can take the Drupal Association to the next level. With the help of Tim and the staff, our volunteers, sponsors and the Board of Directors, the Drupal Association is in good hands.

Categories: World News

Project LinuXP - A new variant of Linux Mint

feedspot - Sat, 09/01/2018 - 05:22

LinuXP is a placeholder name until I can get v1.0 out since LinuXP is technically already in use.

So what is it and why should you care? LinuXP is a distro inspired by the Windows XP of old. It is designed to run solely on a 320 GB or more USB drive. Note that this is NOT A LIVEUSB INSTALL. This is an actual full-blown install on a drive that can be booted from any 64-bit computer with at least a GB of RAM. (Recommended is 2 GB)

Beyond that, the distro is designed to run as light as possible but yet have all the power and convenience that any desktop user would expect out of their OS. And coupled with Linux Mint's powerful Driver Manager and already incredible hardware support, you can just take the drive and boot it anywhere as long as you got access to the BIOS/UEFI.

This has been tested successfully now on two laptops and two desktops. But more testing is needed! Especially for this distribution method that I've chosen. I'll be honest, it's a little roundabout, but I don't know if the usual distro creation tools would preserve all the settings I need to make this run as it does. For now, we'll just do it like this.

You can find the files, install instructions, and FAQ here.

And that's it! If you've taken the time to test this out for yourself, you have my personal thanks. :) Please let me know if it's successful or not though!

submitted by /u/Arnoxthe1
[visit reddit] [comments]
Categories: World News

Выпущена Windows 10 Redstone 5 Build 17751

IT Новости - Sat, 09/01/2018 - 03:48
Microsoft выпустила новую тестовую сборку операционной системы Windows 10
читать дальше >>
Categories: World News

Maple &amp; Cotton

feedspot - Sat, 09/01/2018 - 02:47
Categories: World News

Farewell Megan, but not goodbye

feedspot - Sat, 09/01/2018 - 02:24

As you might have read on the Drupal Association blog, Megan Sanicki, the Executive Director of the Drupal Association, has decided to move on.

Megan has been part of the Drupal Association for almost 8 years. She began as our very first employee responsible for DrupalCon Chicago sponsorship sales in 2011, and progressed to be our Executive Director, in charge of the Drupal Association.

It's easy to forget how far we've come in those years. When Megan started, the Drupal Association had little to no funding. During her tenure, the Drupal Association grew from one full-time employee to the 17 full-time employees, and from $1.8 million in annual revenues to $4 million today. We have matured into a nonprofit that can support and promote the mission of the Drupal project.

Megan led the way. She helped grow, mature and professionalize every aspect of the Drupal Association. The last two years in her role as Executive Director she was the glue for our staff and the driving force for expanding the Drupal Association's reach and impact. She understood how important it is to diversify the community, and include more stakeholders such as content creators, marketers, and commercial organizations.

I'm very grateful for all of this and more, including the many less visible contributions that it takes to make a global organization run each day, respond to challenges, and, ultimately, to thrive. Her work impacted everyone involved with Drupal.

It's sad to see Megan go, both professionally and personally. I enjoyed working with Megan from our weekly calls, to our strategy sessions as well as our email and text messages about the latest industry developments, fun stories taking place in our community, and even the occasional frustration. Open source stewardship can be hard and I'm glad we could lean on each other. I'll miss our collaboration and her support but I also understand it is time for Megan to move on. I'm excited to see her continue her open source adventure at Google.

It will be hard to fill Megan's shoes, but we have a really great story to tell. The Drupal community and the Drupal Association are doing well. Drupal continues to be a role model in the Open Source world and impacts millions of people around the world. I'm confident we can find excellent candidates.

Megan's last day is September 21st. We have activated our succession plan: putting in place a transition team and readying for a formal search for a new Executive Director. An important part of this plan is naming Tim Lehnen Interim Executive Director, elevating him from Director, Engineering. I'm committed to find a new Executive Director who can take the Drupal Association to the next level. With the help of Tim and the staff, our volunteers, sponsors and the Board of Directors, the Drupal Association is in good hands.

Categories: World News

Linux DVR

feedspot - Sat, 09/01/2018 - 02:21

I have The hopper by dish, and I have a joey, can I run an HDMI to a linux system running MythBuntu or OSMC and control the joey as if it is a tuner card?

submitted by /u/2thumbsdown2
[visit reddit] [comments]
Categories: World News

Migration fails at Review step

feedspot - Sat, 09/01/2018 - 01:59

I am trying to migrate a Drupal 7 to Drupal 8. At the /upgrade/credentials page I enter the correct info and then click Review upgrade and the page sends me

I have gotten two separate errors.

-- 1.

HTTP 500 error

That’s odd... the website can’t display this page

The site may be under maintenance or could have a programming error.

Try this

Go back to the last page

Try contacting the website’s owner.

-- 2.

The connection to the website was reset.

Error Code: INET_E_DOWNLOAD_FAILURE

What gives? the documentation says I can have the database be on a remote server, so that shouldn't be the issue...

Categories: World News

Drag and drop nodes in a node list (to later use that sorting as a sorting way for Views)

feedspot - Sat, 09/01/2018 - 01:59

Under example.com/en/admin/content I show all site content filtered by content type and then I get a list of all nodes from that content type. The nodes will appear in some sorting (usually date).

Instead sorting them by date I'd like sorting them by drag and drop.

What way will you use?

I aim to later use that sorting as a sorting way for Views.

Categories: World News

Drag and drop sorting for a view's items?

feedspot - Sat, 09/01/2018 - 01:59

Say I have a view-page showing 10 different items (ten different linked-headings of all nodes of a given content-type).

Is there a way to drag and drop them to choose who will be before who?

Instead of "rigidly" sorting them from Views, I'd like to sort them by dragging and dropping them one above the other, either in Views UI or in the view-page itself.

Categories: World News

Просто хороший хостинг