google-code-export / gelatocms

Automatically exported from code.google.com/p/gelatocms
0 stars 0 forks source link

PATCH - Show post title on page HTML title #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've attached a small patch to show the HTML title on pages when set, or
the first 75 chars of the description if no title is set...

It should be optimized, maybe supporting it in preferences...

If you look the code, I've also added a part like:
     strip_tags($textile->TextileThis($title));

This is not a "strange" thing, since in a such way some chars (like
"...","(R)") will be converted to others (like "…","®") as stated on texile
guide...

Imho something like that should be added also when replacing "{Title}" in
pages (in my tblog I'm doing it) maybe allowing some char-style related
tags like "<b>,<i>,<em>,<u>,<strong>,..." to allow users to use a minimum
of formatting in title too...

Original issue reported on code.google.com by trevi55 on 4 Oct 2007 at 5:46

Attachments:

GoogleCodeExporter commented 9 years ago
Excelent, I will review it and I'll commit to the SVN, thanks

Original comment by peces...@gmail.com on 4 Oct 2007 at 5:53

GoogleCodeExporter commented 9 years ago
Very nice code Trevi55, now is on the SVN and will be included on the next 
release of
gelato.

I just move the shrimp part to cut only the descriptions and the titles not.

Regards.

Original comment by peces...@gmail.com on 23 Nov 2007 at 4:43