Not sure if this belongs in themeing, Views issue queue, or here, but tally ho as they say...
I'm on D8, making a subtheme of Bootstrap.
I'm trying to create a Bootstrap modal for each row of a view. The design calls for a "Read More" button which is meant to pop up a modal that contains some text fields out of the row.
I've shamefacedly swiped some code off the bootstrap docs, but Views is stripping out some of my elements.
I've created a Global text field that contains this:
I've created a D8 module with a very simple structure:
module
- css/module.css
- src/Controller/ArticleController.php
- templates/article.html.twig
- module.info.yml
- module.libraries.yml (to set the css)
- module.module
- module.routing.yml
The .twig file does a nice job of pulling in necessary data from the controller and displaying exactly what I want. We aren't using Drupal in this case as a true CMS - there is no content entered in via the interface, only via the controller which makes an API call.
I have a custom comment type and when I use the default D8 core comment.html.twig to render the comments then variables like new_indicator_timestamp and parent get rendered as expected. But if I switch to using a custom layout (i.e. layout_plugin and display suite) and copy across the relevant twig template code for those comment variables into my own custom layout then they don't work.
What do I need to do to ensure that the comment.module template_preprocess_comment() variables are available to my custom comment layout?
I am using the display suite region to block, but the content in the region is now displaying on every page of the site and not just the node its meant to display in! Surely this isn't right? Am I missing a trick here?
If I then set it to a specific content type (just to test) it then disappears from everywhere. Oh and there are two tabs for displaying the block in certain content types only.
Can someone explain to me the strategy of the theme.library.yml file for a theme. I am not understanding where the words "global-styling" is coming from or system/base. I have read SMACCS documentation but cannot wrap my head around the naming convention in the theme.library.yml.
Hi
I have found no possibility in the administration to directly assign roles to nodes, menu links or taxonomy items. Only Blocks (and as a consequence of that whole menus, but not links inside) can be assigned roles.
The only module ported seems to be content access. Which only goes via content type. Which is a usable crutch (architechturally, nothing against that module ! thanks for it) for nodes.