Sign in

The new tag/author options in Publii 0.42.0

  • This topic has 11 replies, 5 voices, and was last updated 1 month, 2 weeks ago by .
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    --
    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!

    #9740
    Avatar photoprivii

    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 photoadminsxst

    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

    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.

    --
    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!

    #9764
    Avatar photoeric81766

    Is there an updated version of the blank theme?

     

    #9789
    Avatar photoadminsxst
    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.

    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 photoBert2619

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

    #9835
    Avatar photoBob

    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.

    --
    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!

    #9836
    Avatar photoadminsxst
    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

    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

    --
    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!

    #9839
    Avatar photoadminsxst

    its already enabled, which search plugin ?

    #9840
    Avatar photoBob

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

    --
    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!

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