Unhidden page title property

Hello everybody?
How do I keep the title property of a page displaying after leaving the editing?


Thanks for the help.

Welcome. There is currently no option to unhide. But you could try adding the following code in file custom.js (create inside folder logseq if missing):

const preblocks = document.getElementsByClassName("pre-block");
const preblocksObserver = new MutationObserver(function onMutated(){
    Array.prototype.forEach.call(preblocks, (div)=>{
        const divProps = div.querySelector(".block-properties")
        if (!divProps || divProps.dataset.observed) return

        const blockId = div.getAttribute("blockid")
        const properties = logseq.api.get_block(blockId).properties
        const title = properties && properties.title
        if (!title) return

        const divTitle = document.createElement("div")
        divTitle.innerHTML = '<span class="page-property-key">title:</span> ' + title
        divProps.prepend(divTitle)
        divProps.dataset.observed = true
    })
});
preblocksObserver.observe(document.getElementById("app-container"), {
    attributes: true,
    subtree: true,
    attributeFilter: ["class"]
});

Thanks, that solved it.
Is there a reason for this behavior?

Existing behaviors try to cover the typical workflows, for the sake of new users. In a typical workflow, property title:: is hidden. The reason doesn’t really matter. Users should have the option to override whatever default behavior for their own workflow needs. Currently, it is possible to hide properties through the :block-hidden-properties option in file config.edn . There should be a similar :block-shown-properties for the inverse. The coming database version provides a user interface for individual properties.

Hello,

That partially solved my issue. I wanted to use the title property for something else, like title of academic articles or books. But, using it, when I re-index Logseq, it changes the note title to the value in the property.
I guess, this property should be kept unused by logseq. And the note title property should use a different property name (like ls-note-title)

Thanks again for your help.