Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

A bit more about readmore

by demerphq (Chancellor)
on Nov 01, 2004 at 00:09 UTC ( #404171=monkdiscuss: print w/replies, xml ) Need Help??

Its come to my attention that a recent modification to the readmore handling code hasnt been sufficiently well advertised. You can now add a "title" text to your readmore tags:

<readmore title="Yada-Yada">...</readmore>

Unclosed readmore tags are considered to bracket all content to the end of the node, and a node may have multiple readmore sections. Readmore tags cannot be nested and are PM specific "pseudo-html". When the node is viewed in expanded view then the tags are converted to <div class='readmore'>...</div> tags so with a bit of custom CSS you can see what text they cover.

BTW, you may want to view this node from Perl Monks Discussion to see the readmore tags in action.


Replies are listed 'Best First'.
Re: A bit more about readmore
by bart (Canon) on Nov 01, 2004 at 10:22 UTC
    A nitpick: text is counted in characters, not in bytes. Bytes are for binaries. So yes, the caption
    Yada-Yada (3 bytes)
    annoys me.

      Thing is its not going to be a character count, as the html markup content will be counted. So to say X chars would be less accurate than saying X bytes. At least the latter will be correct all the time, where a char count would be wrong almost all of the time.

      Update: I see from the CB chatter history that you and ysth dont like this information to be displayed. I suggest one of you put together a patch to provide a user setting to turn it off. That would be the easiest thing for all concerned. :-)


        I see from the CB chatter history that you and ysth dont like this information to be displayed.
        I said that; don't recall bart exactly saying so. But CSS is a better choice than adding a user setting.
      This really is nitpicking if you consider that, for the character encoding used here, 1 char == 1 byte in terms of space.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://404171]
Approved by gmax
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-05-27 12:50 GMT
Find Nodes?
    Voting Booth?