Sign in
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.

Files to process when rendering site

  • This topic has 2 replies, 2 voices, and was last updated 11 months, 1 week ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #9612
    Avatar photobjazmoore

    I know that the config.json contains a list of files to process when processing a site for rendering and each of the specific files can be enabled or disabled (for example the search page will not be generated when the option is set to false in the config.json file).

    I am wondering if:

    1. Adding a random file name to the list will cause the file to be processed if it exists (I am guessing “No”).
    2. If the authors of Publii have considered a process to hook in generation of random files that might use data from the theme config that are not standard.  For instance I want a Contact.html file to be part of my theme, but I want it to have some special features that would not be easily built in the Post editor (such as a form and/or google maps integration).


    Avatar photoBob

    You can hide a post from the post list by marking it as hidden and assigning a custom post template with your HTML code.

    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!

    Avatar photobjazmoore

    Thanks Bob.  I have done that with an About Us page.  It works really well.  My question regards more complex pages that would be supplied with a theme that are not part of the default Publii set of pages but are rendered by the Publii engine using config variables.  I see this being useful for a Contact us page that is built as an hbs file and uses information the page owner provided in the theme configuration.  Such as form fields to include, form action (if required), Address information and whether to include google maps integration.

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