Drupal is up and running but how do I ...?

Add content tab disappeared

In my site's admin menu panel, under the content tab the add content tab doesn't exist there anymore. There is only comments tab left there, nothing else. Can anyone tell me how to fix this?

How do I Read/Write to User Profile custom fields in Drupal8?

I am using Drupal 8 and I am trying to access and update the values in a custom profile field called field_user_points. I created this field via the UI already and I have entered values into it. Its a float type field.

I need to read, write and save to this custom profile field via code.

The following code is crashing the website with error:

Drupal\Core\Entity\EntityStorageException: Field field_user_points‎ is unknown. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 777 of core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).

Entity References

I'm working on a Drupal 8 site for a YouTube channel, and I'm trying to set up the fields in a video content type. I've got everything the way I want it, except that I added an "In This Video" User Reference field where the content creator can list the people who appear in the video. I'd then like to be able to list all videos where a specific user is referenced on the user's profile. I have the Profile module but I can't seem to figure out how to set this up.

Thanks in advance!

form textfield size cannot be altered?

Hi,

I am trying to modify the size of my node form textfield through hook_form_alter, however after setting:

$form['field_test']['#size'] = 30;

although the dpm($form) indicates the changes been successfully made in the $form variable, however, the final results (after rendering) remain unchanged.

I have also implemented the hook_module_implements_alter, to make sure that the form_alter hook in my custom module will be invoked lastly. Still does not work.

The web page source indicates that the field size always remains to be 12.

Any suggestions?

How to add an extra field to an image?

Hi,
In content-type Article I have added an image-field as "multiple value".
For each image I get automatic an Alt-field and a Title-field.
But I need to add one extra field like a Taxonomy-field.

Example: I make an article for different places with images from these places. Then I can make a slideshow for each place.
But I would like to add an extra field to each image where I can choose like "Person", "View", "Museum", "Temple" etc.

D7 Admin Menu pushed to bottom (i.e. into .region-page-bottom div)

In Drupal 7.52, I’m using Administration Menu module (7.x-3.0-rc1). Initially Administration Menu shows up inside the top level block element, div.region-page-bottom which is below div#page. So it displays visually at the bottom of the page. If I reload the page div#admin-menu is it’s own top level block element and, as desired, is the 1st one. So visually all is well with admin menu at the top. I want it to always be this way.

Any ideas why #admin-menu is appearing within .region-page-bottom and how I can avoid that happening?

Pages

Subscribe with RSS Subscribe to RSS - Post installation