All is in the title, I'm starting on drupal 8, and i have to create a module who is displaying data from a database (mysql), I don't know how to make a good structure, what functions i need etc.
I already did a module "Hello World" to undertsand D8.
lets imagine we created a few articles of content type "News". So we created an own view for it with a display type "page" to see ALL news entries. But what if we could like to show a news ticker maybe on the startpage? I would create a new display type "embed" with a few settings (For example limit it to 5 entries).
Now it would be nice if I could use something like "Entity Reference" to reference to this already renderer embed view in other content types editor. Is that possible?
I accidentally deleted the view 'taxonomy terms' (at least I believe it was called that way) in Drupal 8 and I can't figure out how to get it back. There do not seem to be any buttons related to restoring the default views and I've done a websearch but the instructions either aren't elaborate enough or they do not seem to apply to Drupal 8.
I don't know if this view is important and I suppose I could re-configure Drupal but I have a feeling it'll be useful to know how to restore settings without wiping everything.
Wondering if anyone can provide pointers for the following:
I'd like to create a one-off custom page which will contain several text fields.
The layout for the page will be custom, placing the text fields in various locations next to design elements which will include diagrams and maps. I'd like the site editors to be able to update the text fields/labels, including language versions.
I think one of the greatest plugins of D7 was the "Entity Reference" plugin.. Now its include in D8 in core but it seems like nobody knows how to use it..
I really can't figure out how to display field values of an referenced entity in my template.
Does anybody have an idea? Do I need to create a preprocess function with all the business logic and pass it to the template? Is there maybe already a "twig function" for getting field values of an referenced entity?
I want to have a user role who can administrate content of Custom Blocks but not : Block Layout or Block Types.
So my client can change custom blocks content but not block layout or block types (I don't want at all he broke anything or even see how it is set).
I take a look at the core modules "block" and "block_content".
"block" module add a permission named "administer blocks" which is used in BlockContent entity to provide admin to it.