Body content not showing for nodes - drupal

For some reason, all body content from all my nodes has suddenly disappeared. It is neither showing up in front- or backende anymore.
I have checked the database, and the content is still present there. It is simply not showing up anymore..
Any ideas?

Did you check that the Main Content Block is enabled? Look at the list at Structure -> Blocks and put the block inside the desired region (mostly the Content region).

Related

How to make sure region layout stays consistent over the website in Drupal

I've a weird issue in my Drupal 9 website where a couple of regions (subfeatures and footer) get rendered differently in different pages with no consistent behavior.
They are loaded via the theme's default page.html.twig and should render inside the page js-layout wrapper as in below screenshot
But in some pages, it gets rendered outside the wrapper like in the below screenshot
This is simple website with no overrides on the theme level for the regions so this is quite strange
Without knowing the theme, it is difficult to give an answer. (Which theme is used, which templates (which Twig file provides the theme) and so on...
But let me try to give you a starting point:
Check all twig files of your theme
If there is a multiple for page, like: page.html.twig & page--article.html.twig. Then check the HTML structure for it
Check the region's conditions
In the page-twig templates, check if the HTML closing tags depend on the region conditions. Is there a condition that the div sometimes closes earlier?
I hope this will help you.

R Markdown - specific issues with header and footer

I am using R Markdown for showing the results of statistical analyses that I am conducting for my company. I would like to include the company logo at the upper right corner of the first page and company info in the footer of each page.
I browsed around this site to find potential answers, however they weren't very helpful for my purpose. I found this thread, but the procedures described within simply result with the logo being present on each page, whereas I only want it on the first page.
Since I couldn't find a way to do it, I gave up and tried to include only company info in the footer. I managed to properly include the company information in the footer; however, each page also contained a header with the name of the current chapter and the name of the document. I couldn't find a way to remove that header.
Is there a way to achieve what I want? Company logo in the header, only on the first page and company info in the footer on each page, with no chapter/document names in the header?
Are you printing an html file? If yes this should work:
htmltools::img(src = knitr::image_uri("logo.png"),
alt = 'logo',
style = 'position:absolute;top:0;right:100px;width:180px;height:100px;padding:10px;')
This is basic HTML so if you need to adjust the size of your logo you can do it using this part of the code: top:0;right:100px;width:180px;height:100px;

Wordpress Twentyseventeen theme: where to find what is controlling the header size

I have a Wordpress site using the TwentySeventeen theme, which has been dormant for a year or more. When it was in use, the header graphic was somehow reduced in height. I have no information on how that was done. I now want to restore the header height to the default height for TwentySeventeen.
I have searched and looked at every question and answer I can find. After checking all the css and php where I can find reference to header dimensions, the static homepage is showing the full size, but posts and pages are still showing a reduced header size.
Finally, I downloaded a fresh copy of the TwentySeventeen theme and uploaded it to the site, overwriting all existing files. Still the posts and pages are showing a reduced header size.
There is no custom css in the dashboard settings. I have cleared my browser cache. I don't know where else to look. Can anybody tell me what is left to check?
Added in response to comment below:
I'm a bit out of my depth with the Inspector, and I don't know what you need to see from it. There are three different panes, all of which have more than one screenshot of content. Unfortunately I am not able to publish the URL at this point.
The first screenshot is the Inspector for static homepage -- which displays the full-size header graphic.
The second screenshot is the Inspector for posts and pages -- which displays a shallow header graphic.
Both share the same style.css file.
I note the line:
box-sizing: inherit;
-- but I'm not sure if this is pertinent?

Filter by third argument in Drupal Views

I am trying to create a Block View filtering by the path's (actually an alias) third argument, but can't succeed.
The path where the block is displayed is sitename.com/first/second/third.
Actually the third argument is the node's author, in the end, I am trying to display a block where only the content created be the author of the node the block is in...
I.e: in the content type Garage node created by user Joe, there should be a block of content type Cars created by Joe. The node's path would then be garagecars.com/garages/spain/joe.
I have tried setting 3 Global:Null arguments and then User:Uid but it doesn't work.
Help? Any other way to filter by node author? (have been a long while searching and the "filter by path arguments" approach seemed the good one, but I must be missing something then).
UPDATE: in the Views preview the path garages/spain/joe works but it doesn't in the page itself http://garagecars.com/garages/spain/joe... which has me ever more puzzled.
SOLVED: I was inserting the blog programatically throught the views_embed_view($viewName, $display_id, $args)... that's why it DID work on preview but when the page was rendered, the arguments set programmatically overrode the one's in the path, thus not working.
Solved in the same question. Information provided on making this work.

Page title disappeared behind body

I created a new ASP.NET MVC application. The home page looks like this:
I tried to move the [ Log On ] link to the bottom of the page and got this:
What did I do wrong?
EDIT: [Here's][3] the CSS code, [here's][4] the original file, and [here's][5] the changed file.
(broken links to PasteBin removed)
Most likely, the CSS for your page has some preconceived notions of where and how big each will be, and you've confused it by moving them around.
In other words, the containing your main welcome block there does not use absolute positioning, but instead relies on a spacer (the login block) above it for correct spacing.

Resources