How to display article metadata in a custom div? Metadata (publication date, author's name...) is normally displayed in the "Content" part between the "articles" tags. I have created a new region "titre d'article" in which I would like them to be displayed with the title of the article.


I was able to add the title block when the blocks were formatted. For metadata, I created a "Post metadata" view with a "custom text" field to display them.

But when I create a block with this view and add it to my region, it displays metadata for all published articles when it should display for the read-only article.


I don't know what I'm doing wrong. Yet I had already done it and it worked. I have to do it again because I'm going to lose the data from my old computer.

So basically, I want to hide or delete the default position of the metadata (that I can do easily) and display them in a custom div created using a region.

Please tell me if there's any mistake in what I did.
Or if there's another way to do it more simply, I'd be delighted.

Thanks to help me
"Read-only" usually means a file or an item that cannot be changed/edited, you can only view it. I'm guessing what you actually mean is "current, the one being viewed right now". 

You have to add a contextual filter to your Views that would filter the results to only the node you're currently viewing. 

Here are the steps to configure Views to show only the current node's results: 


Expand the Advanced area in your Views 
Under Contextual filters click on Add
Add the ID filter from the Content Category and configure it: 
When the filter value is NOT available
Provide default value
Content ID from URL
When the filter value IS available or a default is provided
Specify validation criteria
Content
Article
Hide View if the argument doesn't validate, or some other options that make sense to you. 
Place the Block on article pages in your theme region (your have this already), adjust Node from URL and other Block options. 


The Views Block will only show on article pages, and it will only display output related to the current node.