Sign in

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

  • This topic has 3 replies, 2 voices, and was last updated 3 weeks ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8023
    Avatar photojotamorais

    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 photojotamorais

    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 photoTomasz Dziuda

    @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.

     

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #8207
    Avatar photojotamorais

    @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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.