The easy Weblog and Wiki Software
[ start | index | login ]
start > ebel > TimeLine

TimeLine

Created by ebel. Last edited by ebel, 2 years and 258 days ago. Viewed 1,909 times. #12
[diff] [history] [edit] [rdf]
labels
attachments
tl-screenshot.gif (12519)

TimeLine Macro - Version 1.3

..listed weblog or other space entries in chronological order. You can also use the timeline macro for managing To Do Lists. For more information see Managing To Do Lists.

New Features of Version 1.3 (many thanks to flipjetiel)

  • title of weblog entries will be now displayed
  • multiple entries on the same day are in right order
  • a better snipsnap-help documentation
tl-screenshot

Examples:

  • {timeLine:2004} list all space entries of 2004
  • {timeLine:year=2004|type=weblog} list all standard weblog (start) entries of 2004
  • {timeLine:year=2004|type=weblog|weblogsnip=myBlog} list all weblog entries of the weblog snip myBlog

Download

Install

  • requirements: SnipSnap 1.0b1-uttoxeter
  • Copy timeLineMacro.jar to: /applications/_8668_/webapp/WEB-INF/lib and start SnipSnap
  • attach the images to your theme (example theme: SnipSnap)
  • import macro.css (@import url(css/macro.css);) in your theme css (example theme css: css)
  • create the macro.css snip in your theme (sub snip of theme css)

Update to version 1.3

  • copy and overwrite only new jar file to /applications/_8668_/webapp/WEB-INF/lib

Timeline Macro in Action (Please feel free to added your timeline macro sites)

Icon-Comment Victor Volle, 3 years and 248 days ago. Icon-Permalink

When i look at the installation process: I think there is something missing from the plugin mechanism: adding CSS files and images as part of a plugin.

Icon-Comment dmitrym, 3 years and 148 days ago. Icon-Permalink

I can't get this thing to work. {timeLine:year=2005|type=weblog} produce nothing but the heading.. if I remove the type thing, everything is returned. What's up with that? Any tips? ss 1.0b2.

Icon-Comment ebel, 3 years and 147 days ago. Icon-Permalink

Perhaps you have a empty default blog snip (start) or a blog snip with old entries (befor 01-01-2005). What say the snipsnap log file?

Icon-Comment dmitrym, 3 years and 147 days ago. Icon-Permalink

Nothing in the log. I put it in the snip where I had a bunch of weblog entries and nothing happened either. Tried start, same thing.

Icon-Comment ebel, 3 years and 145 days ago. Icon-Permalink

Sorry I can't imitate your defect. Perhaps the changes in SnipSnap 1.0b2 affect my macro…

Icon-Comment dmitrym, 3 years and 145 days ago. Icon-Permalink

Do you have an instance where it's running so I could take a look? Maybe i'm doing something wrong..

Icon-Comment ebel, 3 years and 143 days ago. Icon-Permalink

I'm afraid not! I have only a local instance. There is a snip with following content:

{timeLine:year=2005|type=weblog}

The snip list all entries of start snip for 2005. Preconditions are:

  • start snip is a default blog snip
  • start snip has entries in year 2005
..otherwise the timeLine macro show only year and the "weblog entries" headline.

Icon-Comment dmitrym, 3 years and 142 days ago. Icon-Permalink

Ahhh! That's the problem. I have all my weblog in /start/dmitrym/. I placed timeline there expecting it to work off a local node. Can you modify it so it work so? :)

Icon-Comment ebel, 3 years and 140 days ago. Icon-Permalink

So with a little changes the timeLine macro can now show other weblog snip entries (see above for update informations).

Icon-Comment dmitrym, 3 years and 139 days ago. Icon-Permalink

Works nicely, thanks ebel :)

Do you think it's possible to retrieve the anchor at the top of the weblog document, and display it alongside the date? Will be a little easier to navigate. I'm still trying to understand how the "See also" on this site shows the full path to the snip, instead of just "1" or "2"..

Icon-Comment flipjetiel, 3 years and 115 days ago. Icon-Permalink

I use the TimeLine macro in the intranet Snip Snap instance at my company. I've made some modifications to it, which I thought might be valuable to other people. A new version of TimeLine.java is attached to the description of my TimeLine implementation.

On a different note, I had a hard time building the macro, once I figured it out, I wrote a quick couple of notes on how I ended up compiling and jarring it etc. If anyone is interested, I can post it here.

Icon-Comment funzel, 3 years and 115 days ago. Icon-Permalink

Should we create an snipforge plguin for the timeline macro? Send me an email for the svn account. Or you could both work on it ;-)

Icon-Comment flipjetiel, 3 years and 115 days ago. Icon-Permalink

Sorry for my jargon ignorance, but do you mean actually incorporating TimeLine in SnipSnap? That would be good..

While we're at it, how about integrating the search highlighting extension?

Icon-Comment funzel, 3 years and 115 days ago. Icon-Permalink

We try to break snipsnap into plugins which are easy installed.

They are hosted on www.snipforge.org and developed by us or the community.

The search probably could me moved to a plugin too and integrated with the highlighting extension.

Icon-Comment ebel, 3 years and 114 days ago. Icon-Permalink

@flipjetiel: thank you for your handy modifications - I have it included in the downloadable >>timeLineMacro.zip file…

Icon-Comment ahfai, 3 years and 102 days ago. Icon-Permalink

when i try to add an entry manually in the "start" namespace (eg. start/2005-01-01/1), it is not shown in the TimeLineMacro.

what does the TimeLineMacro reads when it shows up a entry list? or i have to tweak anything of that manually added entry? (i did this because i missed out some of my snips and want to add them manally.)

thx.

Icon-Comment 4marcus, 3 years and 102 days ago. Icon-Permalink

@ahfai the macro code itself actually uses the namespace and snip-creation date (as far as i could see in the code) to render it. I tested manual creation and it worked fine.

But: If you set up timeline for year 2004 hoping to see a manual entry created today, it would fail, as the snip creation date is in 2005 and the snip will not show in either 2004 nor 2005 timeline (there are also other name checks)

If you have filesnip-storage you can change the cTime property to the matching value or with other storages you can export, update, import the snip.

Icon-Comment ahfai, 3 years and 101 days ago. Icon-Permalink

@4marcus thx for ur help. i change the cTime of the snip manually and it works fine now. thx a lot.

Icon-Comment stiber, 3 years and 74 days ago. Icon-Permalink

I want to thank you for this macro. It's unfortunate, but accessing a past blog date via the calendar only displays the first entry for that day; you have to edit the URL, trying "/2", "/3", etc. to see the other entries (at least, as far as I can tell). I'm relieved that timeline gives me a workaround, otherwise I fear most of my past blog entries would be lost.

Icon-Comment matt, 3 years and 54 days ago. Icon-Permalink

I also have to say a huge thank you for this macro. I use SnipSnap {weblog}s for to do lists, using your macro I can stop entries disappearing into the ether and also if I add {anchor:completed} to those I have finished I can instantly see which days have unfinished items in the TimeLine. Great.

Icon-Comment caseyd, 3 years and 52 days ago. Icon-Permalink

this has worked out preeeeety welll for me.

I didn't really get that you had to uplod the images through the interface to get them 'registered,' but other than that the instructions were useful.

thanks!

Icon-Comment malkneil, 3 years and 25 days ago. Icon-Permalink

How do I go about creating a new weblog such that I can specify its name in timeline (weblogsnip param) and get only blog entries for that log. Right now it seems to be showing every single post that has been made despite the fact that I have the weblogsnip param included. Also, what's up with the type parameter? I'm assuming I need to set that to type=weblog, but I'm wondering what qualifies a snip as being a weblog in the first place. Can anyone clarify? Thanks.

Icon-Comment ebel, 3 years and 24 days ago. Icon-Permalink

@malkneil: If you want see only entries of a weblog snip with the name "myWeblog", you must give timeline three parameters:

{timeLine:year=2005|type=weblog|weblogsnip=myWeblog}

> but I'm wondering what qualifies a snip as being a weblog in the first place
all snips with a {weblog} macro are weblog snips. A good example is the start snip.

Icon-Comment ebel, 3 years and 24 days ago. Icon-Permalink

@matt ..this is a really nice idea.. I will be add your Managing To Do Lists snip in the macro description.

Icon-Comment malkneil, 3 years and 24 days ago. Icon-Permalink

Thanks ebel....but I did figure it out on my own...I was missing the year= part in the macro because in the first example (way at the top) they used {timeLine:2004}, so I just appended to that {timeLine:2004|type=weblog|weblogsnip=foo}...that wasn't working. One other question now....there's that post blog link in the topbar....is there anyway I can edit those links through the Wiki? I want to make it so that post blog link will post to one specific blog, and not to the one associated with the snip you're currently in....any thoughts? Thanks again.

Icon-Comment malkneil, 3 years and 24 days ago. Icon-Permalink

One more tidbit...anybody else have problems with some of the .gifs for the timeline macro not showing up...in particular the one that goes behind the year (solid blue bar), and the vertical blue bar to the left of the timeLine. ??

Icon-Comment ebel, 3 years and 24 days ago. Icon-Permalink

@malkneil
> is there anyway I can edit those links through the Wiki?
I'm afraid not!

> One more tidbit...
probably the gifs are attached in wrong theme - to see all installed themes go to the SnipSnap snip and write {snip-tree:SnipSnap} in the content. If you don't know which theme is active, see your snipsnap configuration.

Icon-Comment malkneil, 3 years and 24 days ago. Icon-Permalink

Nah...they're definitely in the right theme...I'm using the SnipSnap theme....tried removing the .gifs and adding them again....no dice....not a big deal..but it would look a lot better if they would show up…

Icon-Comment matt, 2 years and 354 days ago. Icon-Permalink

A small wish list item, when using the timeLine macro on weblogs that are deep down a given namespace hierarchy the entries get very hard to read. For instance I have weblog entries like this

/Career Progress/Research Portfolio/Paper Reviews/Diary/2005-07-20/1

when these get rendered with the title for the snip in the time line they can run over 3 or four lines. What I'd like is to just see the date and the title. I can get the weblog location from the title weblog entries by /Career/etc...

Icon-Comment matt, 2 years and 220 days ago. Icon-Permalink

Another wish list item, I might have a go at these myself at some point as I haven't tried programming macros in SnipSnap before.

I'd like to add a two new parameters to the macro so that it would look like this

{timeLine:year=2005|type=weblog|weblogsnip=myBlog|labelName=Category|labelValue=Music}

The idea is that I can list time lines by blog and by category, filtering my lists so that for instance I can split out all my posts that relate to music rather than work. It would be a cross between the timeLine macro and the label-search macro. Is this doable?

Please login to post a comment.

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13712 Snips. Installed 5 years and 363 days ago

Logged in Users: (2)
… and 22 Guests.

snipsnap-changed for older changes.

< July 2008 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST