Modify

Opened 10 years ago

Closed 10 years ago

#1717 closed enhancement (fixed)

Ability to hardsplit post for post autolist and full post page. Also adds ability to change "Read more" link (defaults to '(...)')

Reported by: mocksoul Owned by: John Hampton
Priority: normal Component: TracBlogPlugin
Severity: normal Keywords:
Cc: mocksoul@… Trac Release: 0.10

Description

Hi guys!

I have added some extra functionality: SplitPost macro. While displaying post - it just displays hr (<hr/>). But _trim_page() function can extract "summary" part from post with this macro. Also extracts first argument and (if present, of course) - make customized "Read full post" link for post list.

Usage is absolutely simple:

Post post post

[[SplitPost(Read Much More...)]]

This is "Much more" part :)

Patch is very simple, and was written in 10 minutes :). See attachment. Maybe I'll make many more patches and enchancements, do you interested in them? =)

I have worked with last svn 0.10 branch.

Attachments (1)

tracblog.patch (2.1 KB) - added by mocksoul 10 years ago.
Patch

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by mocksoul

Attachment: tracblog.patch added

Patch

comment:1 Changed 10 years ago by John Hampton

Status: newassigned

Great patch. Thanks for the feature. I'll try to apply it this weekend.

I'm always interested in patches :)

comment:2 Changed 10 years ago by John Hampton

Resolution: fixed
Status: assignedclosed

(In [2399])

  • Feature: Limit BlogShow entries by user name.
  • Feature: Added SplitPost macro to allow for hard splitting of blog posts

Modify Ticket

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

Add Comment


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

 
Note: See TracTickets for help on using tickets.