in reply to Re: PM Feature Idea: optionally add short comment on update
in thread PM Feature Idea: optionally add short comment on update

Mucking with node text gives me the queasies. However, you made me think of another possible implementation: an <update> tag that could be used inline, and that would get slightly "stamped" upon post.

Node text:

<p>This is some text with a vague notion. <update> <p>Let me clarify: I have a more specific notion. </update>

Would get stored in the DB as:

<p>This is some text with a vague notion. <update 2005-09-15 16:44> <p>Let me clarify: I have a more specific notion. </update>

Well, something like that, to insert a date stamp of some kind. On node render, you'd get:

<p>This is some text with a vague notion. <div class='update'><div class='update-date'>2005-09-15 16:44</div> <p>Let me clarify: I have a more specific notion. </div>
<-radiant.matrix->
Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law

Replies are listed 'Best First'.
Re^3: PM Feature Idea: optionally add short comment on update
by GrandFather (Saint) on Sep 15, 2005 at 22:11 UTC

    That's a pretty fair alternative with the advantage that the update entry can be placed anywhere within the node text.

    Just to clarify my own notion:

    The text from the update field would be wrapped up and appended to the end of the node text thus (borrowing from your timestamp idea):

    <update 2005-09-15 16:44>Let me clarify: I have a more specific notion +.</update>

    and would render in a similar fashion to your suggestion:

    <div class='update'><div class='updatehead'><b>Update</b></div> <div class='update-date'>&nbsp;(2005-09-15 16:44)</div>:&nbsp;Let me c +larify: I have a more specific notion. </div>

    Perl is Huffman encoded by design.