Cant delete sites folder

I have installed Drupal, and it has created a folder named sites/default/ With settings.php file. I cant delete this file With my FTP Client because it says "[R] 550 Can't remove directory: Permission denied". What is the cause of this?

Custom field formatted maybe

Hi,

When i link an user in a content, it using label linked to the entity referenced (user's page). But the label is the user login, and i want to change it to use a custom field "Name Firstname" instead of the login label. And i want to keep the link to the entity referenced.

How can i do that ?

Thanks.

Private Messaging for Drupal 8

Hi. I am a complete Drupal newbie and am a bit lost. Hope you will be able to help / point me in the right direction....

I want to use Drupal 8 to ensure my projects have longevity, however I am finding that quite a few modules are not ported/reauthored for V8.

More specifically, I am interested in a module to enable members of my site to communicate with each other. PrivateMsg would have been great, but it is not in Drupal 8 and the author has indicated that he does not have time to do it either :(.

Drupal8 form alter

use Drupal\Core\Form\FormStateInterface;

add above mentioned line at the top of your .module file

function YOURMODULENAME_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
  if ($form_id == 'YOURFORMID') {
    // YOUR CODE
  }
}

404 Not Found

i need some help please ,am using drupal8 .3.3.6 but now i cannot access my site it brings up a 404 error page
like here below,everytime i try to render my site

"Not Found

The requested URL /drupal-8.3.3/admin/config was not found on this server.
Apache/2.4.23 (Win32) Server at localhost Port 80 "

Clear CKEditor after ajax form submit

I'm hoping there's a simple answer for this I just haven't been able to google.

I need to clear a text_long field with CKE enabled when the form is successfully submitted via ajax.

For a string/string_long, putting this in the callback this works:

return $ajax_response->addCommand(new  InvokeCommand('#fieldID', 'val', array("")));

Is there an equivalent for text/text_long?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x