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.

“Read more”, “Excerpt length” and “Hide custom excerpts on post pages”

  • #5689
    Avatar photo[anonymous]

    “Read more”, “Excerpt length” and “Hide custom excerpts on post pages” settings are not working correctly with post made with BLOCK editor (as compared to posts made with WYSIWYG editor).

    I could not verify whether posts made with MARKDOWN editor as the rendering process would fail (see my other post)

    • Publii v.0.38.2 (build 14204)
    • Windows 10
    • Themes tested so far: Simple v.2.3.1.0, Sources v.1.1.1.0, Taste v.2.1.1.0, QF v.2.1.1.0

    <span style=”text-decoration: underline;”>Scenario 1 – “Hide custom excerpts on post pages” DISABLED / Excerpt length: 18 </span>

    <span style=”text-decoration: underline;”>Front page listing: </span>

    • Post without Read-more made by WYSIWYG: Text will show up to word 18… <span style=”color: #0000ff;”><– expected result</span>
    • Post without Read-more made by BLOCK: Text will show up to word 17…  <span style=”color: #ff0000;”><– one word less</span>
    • Post with Read-more inserted after word25, made by WYSIWYG: Text will show up to word25 <span style=”color: #0000ff;”><– expected result</span>
    • Post with Read-more inserted to next block after word 25, made by BLOCK: Text will show up to word25 <span style=”color: #0000ff;”><– expected result</span>

    <span style=”text-decoration: underline;”>Actual post page:</span>

    • Post without Read-more made by WYSIWYG: All text in post will be displayed <span style=”color: #0000ff;”><– expected result</span>
    • Post without Read-more made by BLOCK: All text in post will be displayed <span style=”color: #0000ff;”><– expected result</span>
    • Post with Read-more inserted after word25, made by WYSIWYG: All text will be displayed. No <hr> separator at the location where the “Read-more” was inserted. <span style=”color: #0000ff;”><– expected result</span>
    • Post with Read-more inserted to next block after word 25, made by BLOCK: All text will be displayed. There will be a <hr> separator at the location where the “Read-more” was inserted. <span style=”color: #ff0000;”><– may not be desired but can be hidden using CSS</span>

    <span style=”text-decoration: underline;”>Scenario 2 – “Hide custom excerpts on post pages” ENABLED / Excerpt length: 18 </span>

    <span style=”text-decoration: underline;”>Front page listing: </span>

    • Post without Read-more made by WYSIWYG: Text will show up to word 18… <span style=”color: #0000ff;”><– expected result</span>
    • Post without Read-more made by BLOCK: Text will show up to word 17…  <span style=”color: #ff0000;”><– one word less</span>
    • Post with Read-more inserted after word25, made by WYSIWYG: Text will show up to word25 <span style=”color: #0000ff;”><– expected result</span>
    • Post with Read-more inserted to next block after word 25, made by BLOCK: Text will show up to word25 <span style=”color: #0000ff;”><– expected result</span>

    <span style=”text-decoration: underline;”>Actual post page:</span>

    • Post without Read-more made by WYSIWYG: All text in post will be displayed <span style=”color: #0000ff;”><– expected result</span>
    • Post without Read-more made by BLOCK: All text in post will be displayed <span style=”color: #0000ff;”><– expected result</span>
    • Post with Read-more inserted after word25, made by WYSIWYG: Text before the “Read-more” will be omitted.  The rest of the post will be displayed.  No <hr> separator at the location where the “Read-more” was inserted. <span style=”color: #0000ff;”><– expected result</span>
    • Post with Read-more inserted to next block after word 25, made by BLOCK: All text will be displayed. There will be a <hr> separator at the location where the “Read-more” was inserted. <span style=”color: #ff0000;”><– same result as Scenario 1 but in this case, all text before the “Read-more” should have been omitted and there should not be a <hr> separator.</span>
    #5690
    Avatar photo[anonymous]

    Not sure why the formatting got converted.

    Anyway, annotated screenshots are attached to illustrate what I wrote about.

    Would like to have done so earlier, but there were no option/button to “Select File” to attach the photos.

    #5722
    Avatar photo[anonymous]

    Hi,

    Thank you for your in-depth analysis 🙂 I have created a Github issue for this case: https://github.com/GetPublii/Publii/issues/966