Page 1 of 1

serendipity_event_contentrewrite

Posted: Fri Oct 20, 2006 3:10 pm
by JWalker
Well, I saw serendipity_event_contentrewrite and liked it. Now I have one note and one question:

Note: After I enter a pair {to} {from} and press "Save" button, it is saved, but this just saved pair appears again in the fields for 'New Title' and 'New Description'. After I press again 'Save', and the screen refreshes, this pair appears in Title #nn / Description #nn fields and fields for 'New Title' and 'New Description' appears empty and ready for new pair. 'nn' are even numbers only : 0, 2, 4, ... I made database dump, and saw that all pairs that I entered are recorded in it and with even numbers. There are no lost pair though. Also, the pair are ordered literaly but not numericaly, i.e. #0, #10, #12, #2, #4 etc.

Question: In frontend, {to} parts appear underlined and with some other color. Which is the style that is used for them? I want to change their look (if possible) ?

More questions

Posted: Sat Oct 21, 2006 8:59 pm
by JWalker
More questions:

How do <acronym title="{to}">{from}</acronym> work ? Do I need to enter this into the entry ? How it is related to "Title" and "Description" pairs in the confguration ?

Re: More questions

Posted: Sun Oct 22, 2006 3:50 pm
by garvinhicking
Hi!

I'm not sure, but I think the numbering 0,2,4 etc. is intentional, because the uneven pairs are internally remapped to a multi-dimensional array.

For the underlined styles in your entry, you should be able to simply style the "acronym" tag in CSS:

For your last question: You need to enter a from and to pair in the plugin configuration. Use "s9y" as from ("Title") and "Serendipity" as to ("Description"). Then if you write an entry and type "s9y" you will get:

<acronym title="Serendipity">s9y</a>

in your entry, so you can mouse-over to get the real description.

HTH,
Garvin