Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to create custom objects beyond the built-ins featuredImage, author, mainTag

  • #8023
    Avatar photo[anonymous]

    First of all, thank you for the efforts putting together this great tool.

    Coming from Vapid, I would like to understand how to create custom JS objects that can be dynamically translated into theme settings.

    With Vapid, creating a markup like:

    {{#section services multiple=true sortable=true}}
    <h4 class="title">{{name}}</h4>
    <span class="svg-icon"><i class="flaticon-hills"></i></span>
    {{service_image_summary label="Service Image summary" required=true type=image width=600 height=324 alt="Landscaping and lawn care services"}}
    {{service_summary label="Service summary description" type=html required=true images=true priority=14 }}
    {{/section}}

    generates options in the the dashboard (equivalent of theme settings in Publii) like:

    www.yellowjacketlandscapingllc.com_dashboard_records_22_edit-1

    In summary, I would like to be able to create dynamic page builders (beyond blog context), with multi-level partial views.

    Is it possible? If not, would be a good feature suggestion (I would love to contribute to make it happen).

    Thank you!

    #8026
    Avatar photo[anonymous]

    By the way, after posting here, I kept searching for more info on the Forum and on the official GitHub issues and found https://github.com/GetPublii/Publii/issues/656. Unfortunately it looks stale as it is open for more than a year already.

    @dziudek do you know of any progress on that plan?

    #8033
    Avatar photo[anonymous]

    @jotamorais – support for pages is a very big topic. We have it still in our plans, but:

    1. Without any ETA at this moment
    2. Most probably it will be introduced in few phases: firstly pages will be just posts but in separate place and with separate paths (so it will be possible to put posts under e.g. /blogs/ prefix in URLS), then we will add more page specific features like custom content, then we will extend the possibilities.
    #8207
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    @jotamorais – support for pages is a very big topic. We have it still in our plans, but:

    1. Without any ETA at this moment
    2. Most probably it will be introduced in few phases: firstly pages will be just posts but in separate place and with separate paths (so it will be possible to put posts under e.g. /blogs/ prefix in URLS), then we will add more page specific features like custom content, then we will extend the possibilities.

    Thank you Tomasz. Looking forward to it.