Can I have a calender based archive based on year and month

Hello,

For my blog I need a menu which looks like a calender.
There you can choose for a year and a month and then all entries of that month are shown.

Is there a plugin which can do this ?
Or can I make that with the help of views and another plugin ?

Roelof

drupal 8 - get only taxonomy-terms of one vocabulary

I have a few custom vocabulary defiend which have nothing to do with each other (f.e. colors and music). I like to define a field that allows only taxonomy-terms from one vocabulary. I have found lots of equal examples that using all vocabulary, but I didn't found anything for using only a part of the vocabularys.

This is what I found:

Drupal 8: Use "menu-item--active-trail" to set active class in menu

Hi,

there is this nice <li{{ item.attributes }}> thing to set active class for menu items.
Now I have a structure, where I have e.g. /node/subnode. For /node the active class is set for the "node" menu item but for /node/subnode the "node" menu item should also have the active class set.

Thanks for hints

Has anyone gotten custom constraints working in drupal 8?

Seems like a great feature to do validation on an entity level. But strangely enough I can't track down relevant documentation on this. I tried to build a custom constraint.

I used an annotation like this

/**
 * @Constraint(
 *  id = "SubscriptionExists",
 *  label = @Translation("Is Subscription Unique", context = "Validation"),
 *  type = { "string", },
 * )
 */

and then I used a SubscriptionExists class that extends class and I created a SubscriptionExistsValidator class

Add content above blog roll on blog homepage

A friend of mine created a blog for me using Drupal. I'm not very familiar with Drupal, so please have patience with my noob status and use small words so I understand. :)

The homepage of the blog shows a typical blog roll (a list of blog posts, one after another). I want to add an introductory paragraph at the top of the homepage. I login, go to the blog page, and click EDIT ... and I get taken to a 404 Error page (however, if I edit an individual post, I can edit them fine).

So, how can I edit this "page"? Am I doing something wrong?

Drupal 8: How to display a field from a referenced user?

I have a content-type `A` with a reference to a user. Now I would like to show a specific field from that user in the content-type `A`.

What is the best way of doing this?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x