Modify

Opened 11 years ago

Closed 11 years ago

#745 closed enhancement (fixed)

Patch to add "footer"

Reported by: df Owned by: John Hampton
Priority: high Component: TracBlogPlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description

I've made a patch that allowed a footer to be configured from the admin page, that will be automaticly added upon SavePage (and and in previews). The footer can be any WikiFormattet data, including macros. Also you can use $U for username and $D for postdate.

I made it because we are attempting to use the blog as a tool no notify other departmentens of any changes our department makes. For this we use the RSS feed, but the RSS pages from the link does not contain date or author information, which is rather importent.

An example of usage. Footer:

''Entry created by $U, on date $D.''

Another really cool thing is to use the WikiTemplatesPlugin and make an BlogFooter template. Then you can make a footer like this:

[[T(BlogFooter|$U|$D)]]

and get the text & layout included.. That way, when you change the layout in the template, it will be changed on all existing posts as well..

Enjoy..

  • Dan

Attachments (1)

tracblog.footer.patch (4.5 KB) - added by dan@… 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by dan@…

Attachment: tracblog.footer.patch added

comment:1 Changed 11 years ago by df

*crud*. Sorry 'bout all the typo's ;)

comment:2 Changed 11 years ago by dfaerch

Priority: lowhigh
Severity: trivialmajor

Changed severity and prio to get it noticed by author (naughty i know), but who reads the "trivial"'s ;)

comment:3 Changed 11 years ago by John Hampton

Status: newassigned
Trac Release: 0.90.10

I actually do read the trivials :)

I'm sorry that it has taken me so long to reply to them however. Anyway, I like the idea and do plan on applying your patch. I hope to be able to apply it soon, but I've been really busy lately, so no promisses.

comment:4 Changed 11 years ago by John Hampton

Resolution: fixed
Status: assignedclosed

(In [1582])

  • Applied patch for RSS email addresses from kindlund@…, Closes #336
  • Removed reference to addHeadingLinks in new_blog.cs. Closes #786
  • Added code to redirect to the page where posting a new entry was selected. Closes #452
  • Added patch to allow for customizable footer on blog posts from dfaerch. Closes #745

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.