Sign in

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

  • This topic has 2 replies, 2 voices, and was last updated 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5689
    shaun2k

    “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
    shaun2k

    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.

     

     

    Attachments:
    #5722
    Tomasz Dziuda

    Hi,

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

    --
    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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.