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.

The new tag/author options in Publii 0.42.0

  • #9735
    Avatar photoBob

    Hi everyone,

    The new version of Publii 0.42 comes with a WYSIWYG editor for author and tag description, also options similar to postConfig, which allow you to enable/disable elements defined in the theme for tag and author pages.

    Below you can find a tutorial on how to add support for new options in your theme if, for some reason, you cannot update it to the latest theme version or have your own, custom theme.

    To add support for the WYSIWYG editor follow these steps:

    1. Update the markup to use a DIV element instead of a paragraph (P) element for the description. This change is necessary because the WYSIWYG editor creates paragraphs by default:

      change:

      <p class="description"> 
         {{ description }} 
      </p>

      to:

      <div class="description"> 
         {{ description }} 
      </div>
    2. Add an additional third bracket around the description tag:
      <div class="description">
          {{{ description }}}
      </div>

    These steps should typically be repeated for the following files: author.hbs, tag.hbs, tags.hbs (if the tag description is displayed here), as well as the post.hbs files in the author biography section. Don’t forget that these changes must also be implemented to all additional templates of the above-mentioned pages.

    The tag and author Config Options will be added and described in the upcoming update of the developer documentation shortly.

    #9740
    Avatar photo[anonymous]

    It’s awesome that we can now put links into tag descriptions. I remember trying a while back and it didn’t work.

    #9758
    Avatar photo[anonymous]

    hi there, I updated to the latest version, and for some reason now when I put anything into the tag description, it appears on the frontend wrapped in html  <p>  and that shows on the live site. I tried everything to stop it appearing , but its appearing. Help?

    #9759
    Avatar photoBob
    [anonymous] wrote:

    hi there, I updated to the latest version, and for some reason now when I put anything into the tag description, it appears on the frontend wrapped in html    and that shows on the live site. I tried everything to stop it appearing , but its appearing. Help?

    Review my post above, and you will identify the problem at hand.

    #9764
    Avatar photo[anonymous]

    Is there an updated version of the blank theme?

    #9789
    Avatar photo[anonymous]
    Ok thank you, that worked, appreciate it. I know have another issue i spotted. The theme previously had a search bar top left, which I was then supplementing by using an external search provider with, and their code was hooking into that search box. Now that search box has vanished, even though I have found the option in the menu under     / Custom Settings / Search / and then enabled it there.
    [anonymous] wrote:
    [anonymous] wrote:

    hi there, I updated to the latest version, and for some reason now when I put anything into the tag description, it appears on the frontend wrapped in html and that shows on the live site. I tried everything to stop it appearing , but its appearing. Help?

    Review my post above, and you will identify the problem at hand.

    #9833
    Avatar photo[anonymous]

    Can I safely install this version without losing anything, like some CSS modifications etc?

    #9835
    Avatar photoBob
    [anonymous] wrote:

    Can I safely install this version without losing anything, like some CSS modifications etc?

    If you have created override files (https://getpublii.com/dev/theme-overrides/), you can install the new Publii version without worrying about losing your modifications. If you are overriding files that have been modified in this new release to support new features, you will need to edit them manually to incorporate these features.

    And remember to create a backup of your current site.

    #9836
    Avatar photo[anonymous]
    The theme previously had a search bar top left, which I was then supplementing by using an external search provider with, and their code was hooking into that search box. Now that search box has vanished, even though I have found the option in the menu under     / Custom Settings / Search / and then enabled it there.
    #9837
    Avatar photoBob
    [anonymous] wrote:

    The theme previously had a search bar top left, which I was then supplementing by using an external search provider with, and their code was hooking into that search box.

    Do you have any search plugins installed?

    screenshot-2023-04-18-at-14.13.45

    #9839
    Avatar photo[anonymous]

    its already enabled, which search plugin ?

    #9840
    Avatar photoBob

    Any search plugin available in our marketplace: https://marketplace.getpublii.com/plugins/

    #10070
    Avatar photo[anonymous]

    I am obviously missing something. All I have in my themes (technews) author.hbs and tag.hbs is ,

    {{#if tagViewConfig.displayDescription}}
    {{{description}}}
    {{/if}}

    This is in Documents/Publii/themes/technews/. Is there somewhere else I should be looking?

    #10085
    Avatar photo[anonymous]

    @tane – please make sure that you are not overriding these files in technews-override folder 🙂

    #10090
    Avatar photo[anonymous]

    Thank you, Tomasz. There wasn’t a tech-override folder but there was a copy of the theme in the site folder (in the input folder) with the additional <p> tags.