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 .
-
AuthorPosts
-
March 29, 2023 at 11:35 am #9735
Bob
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:
- 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>
- 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!March 29, 2023 at 3:54 pm #9740privii
It’s awesome that we can now put links into tag descriptions. I remember trying a while back and it didn’t work.
April 2, 2023 at 9:37 pm #9758adminsxst
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?
April 2, 2023 at 9:43 pm #9759Bob
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!April 5, 2023 at 6:20 pm #9764eric81766
Is there an updated version of the blank theme?
April 12, 2023 at 9:31 am #9789adminsxst
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.
April 18, 2023 at 12:43 pm #9833Bert2619
Can I safely install this version without losing anything, like some CSS modifications etc?
April 18, 2023 at 1:09 pm #9835Bob
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!April 18, 2023 at 1:11 pm #9836adminsxst
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.April 18, 2023 at 1:15 pm #9837Bob
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?
--
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!April 18, 2023 at 1:17 pm #9839adminsxst
its already enabled, which search plugin ?
April 18, 2023 at 1:18 pm #9840Bob
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! - 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:
-
AuthorPosts
- You must be logged in to reply to this topic.