Modify

Opened 8 years ago

Closed 8 years ago

#745 closed enhancement (fixed)

Patch to add "footer"

Reported by: df Owned by: pacopablo
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@… 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by dan@…

comment:1 Changed 8 years ago by df

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

comment:2 Changed 8 years ago by dfaerch

  • Priority changed from low to high
  • Severity changed from trivial to major

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

comment:3 Changed 8 years ago by pacopablo

  • Status changed from new to assigned
  • Trac Release changed from 0.9 to 0.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 8 years ago by pacopablo

  • Resolution set to fixed
  • Status changed from assigned to closed

(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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from pacopablo. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.