Okay
  Public Ticket #3659268
master-detail placeholders not working in page title
Open

Comments

  •  1
    Alex started the conversation

    Hi..!

    I currently have WordPress 6.5.3 running Twenty Twenty-Three theme, wpDataTables 6.4 with Master-Detail Tables 2.0.

    I have created a new page for showing the master-detail data and properly linked the page in the settings.

    Unfortunately if I try to use placeholders in the page title area, I'm only seeing them unexpanded, also in the title of the browser window/tab.
    The desired result is to have the actual information showing in both of these places.

    In the page content blocks the placeholders work fine. However, I need to have some of the information placed in the title.

    In the example in your documentation of Master-Detail Tables, is the title "Car details" actually in the page title as it seems to be, and do the placeholders indeed work correctly both on the page itself and its title bar..?

    I don't know what I could be doing wrong, so I suspect this just has something to do with the theme. I don't mind changing to some another free theme, if it resolves the problem.

    (And yes, I'm not trying to display the page on its own with no query string, if that's going to be your first question... remember that further down that same page I do see the same placeholders working perfectly, albeit not included in my screenshot).

    Thank you for any help,
    Alex

    Attached files:  Screenshot 2024-06-02 editing the master detail page — WordPress.png
      Screenshot 2024-06-02 attempt to display master detail – WordPress.png

  •  1,767
    Miloš replied

    Hi Alex,

    If you wish to try inserting column placeholders in the actual Page title itself, as far as I can see, this is not currently possible.

     I did some testing with WPBakery Page Builder and several Themes, but going to double-check with our QA Team and the developers to be sure.

    I believe this is a current limitation, the Master-Details column placeholders are intended to be used as part of any Page element.

    If you check on our Documentation example, in the first one where we just show how it renders in a paragraph as part of a text block;

    6638961283.png

    then later on in a Heading in a text block;

    6337765178.png

    8767452542.png

    In the tests I did today, I have the same result as you wrote, basically in any kind of element/block on the Page, they are rendering;

    2687345014.png
    5488150059.png

    but if I try as part of the actual Page Title or in the "title tab", that can not currently work.

    3104918476.png
    5993886285.png

    So it seems at the moment you would need to hide the actual Page title and create a large header instead like H1 element if you need it to render the column placeholder and at the moment we don't have a solution to render it as part of the page title tab, too.

    For example in the WPBakery Builder, we can hide the page Title and instead replace it with a heading element to render master details column placeholders, other builders should have the same option.

    4496331426.png

    As soon as I get the official confirmation to double-check if that was intended to be used like that ( As part of Page Title and title tab) or not, we will report back to confirm it for you.

    Thank you for your patience.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,767
    Miloš replied

    Hi Alex,

    Just following up to confirm, our QA Team does not have anything to add and what I wrote is correct.

    To summarize, the Master Details was not indended to be rendering the column placeholders as part of the Page title or title tab itself;

    for the time being that is not possible. You can only render the column placeholders as part of any page element, as you found and as we can now confirm.

    If you wish to see the possibility to render column placeholders as part of the Page Title or title tab - you can make a development suggestion, but we can't say if or when this might be possible.

    Please feel free to search on our suggestions page

     to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there,  and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Alex replied

    Hi Miloš,

    thank you for your very thorough answer again and for checking from the QA team for the intended behaviour regarding the placeholders and the title.

    So, it's a kind of technical restriction currently then, that's fine.
    Yes, hiding the actual title is a good trick or in some cases adjusting the theme to make the title element smaller.

    However, people might link to my Master-Detail pages and it's supposedly bad for SEO to have all those Master-Detail page titles the same.

    Well, I decided to take a quite deep look into the subject and luckily found a way to handle this with custom code.
    I actually ended up writing my first plugin that now does what I need. It sets a dynamic title on all Master-Detail pages, along with doing a few other tweaks mainly regarding the SEO perspective.

    Kind regards,
    Alex

  •  1,767
    Miloš replied

    Hi Alex,

    My apology for taking so long, I was double-checking all the details again to make sure we don't have anything useful to add in the meantime.


    You're welcome, I did my best to confirm everything with the QA Team and the devs.

    That is our current limitation when it comes to 'out of the box solutions'.

    We will do our best to add this in the future, but still can't say an ETA on it.


    That is awesome, I am glad to see you were able to make a custom solution for the use-case.

    If you wish, you could share it with us and I can pass it to our developers, it can be useful for future improvements.

    If it shows any sensitive details, you can mark the reply as PRIVATE for safety, then only we can see it.


    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Alex replied

    Hi Miloš,

    no problem, and sure, everyone can now download my plugin completely free from https://antero.eu/seo-for-wdt-md/

    Also I'm not planning to write any commercial plugins, so hopefully TMS encourages us users to write free addons like this one.

    In addition to setting the titles for the Master-Detail pages, the plugin also provides the pages clean "pretty" URLs and sets the canonical tags accordingly.

    Feel free to test it.

    While it would be nice to see some of its features added to wpDataTables some day, we probably agree that there are several other good feature suggestions that really deserve attention first, as I believe they would be very hard to implement as a plugin.

    Kind regards,
    Alex

  •  1,767
    Miloš replied

    Hi Alex,

    Thank you very much for sharing it with us.

    I am passing it to our developers and QA Team just for testing, I am sure it will be useful for possible future improvements of our Master Details.

    In the meantime, our developers launched a new Page on our documentation for developers with some useful informations and tips such as some custom CSS selectors, JS advice and advice how to make custom add-ons for our Plugin, etc.

    They will keep adding more custom hook examples over time, for now this is just a start.


    I can see you probably don't need this since you made this custom add-on, but in case if some details could be useful for future projects, here is the main starting page for developers here;

    and here is the one about creating a custom add-on, in case if there might be some new details you haven't found yet.

    If you already found all this, in that case, my apologies.smile.png

    Thanks again for sharing the add-on with us and with other users.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables