31 Jan 2007, 10:29pm
Projects:
by Cliffano Subagio

1 comment
  • Ressurecting Page By Page View A La Pager Plugin In Blojsom 3

    After upgrading this blog to Blojsom 3.1, I hooked up Pager Plugin’s pager.vm velocity code to SkipFilterHelper Plugin, and the result is as you can see at the bottom of my blog when you’re not viewing this post via feed or permalink (e.g. try the blog home page).

    There is a bug with SkipFilterHelper Plugin in Blojsom 3.1 (registered in JIRA as BLOJSOM-195, David checked in the fix to CVS), which is about incorrect total pages on boundary cases. I immediately noticed this error because it also exists in Pager Plugin 0.2 . The SkipFilterHelper Plugin fix will be included in Blojsom 3.2, and in the mean time you can either apply the fix yourself to Blojsom 3.1 and rebuild from source, or email me and I’ll send you the patched jar.

    Here’s what you have to do to get the page by page view on Blojsom 3.1:

    1. Set up SkipFilterHelper Plugin.
    2. Download pager.vm and place it on WEB-INF/blogs/[your-blog]/templates/ directory.
    3. Include pager.vm from your blog’s theme template, e.g. add the code #parse( “pager.vm” ) to asual.vm .

    In case of error, you can debug whether your SkipFilterHelper Plugin installation was successful or not by displaying the values of $BLOJSOM_TOTAL_PAGES and $BLOJSOM_CURRENT_PAGE.

    Moving forward, it would be nice if the code in pager.vm can be included as a macro in Blojsom 3.2 onward so people don’t have to set up pager.vm manually. And perhaps SkipEntriesFilter should handle criterias, e.g. category, so that we can have page by page view within a category instead of the whole blog.

    Update: (03-04-2007) this functionality has been included in Blojsom 3.2 (registered in JIRA as BLOJSOM-211).

    Update: someone (I don’t know the person’s name) made a Japanese translation of Pager Plugin installation for Blojsom 2. That’s the first non-English documentation on something I made, yay.

    9 Jan 2007, 8:56pm
    Life:
    by Cliffano Subagio

    leave a comment
  • Sleepy Sam's

    I stayed at Sleepy Sam’s Bed & Breakfast on my latest visit to Singapore few weeks ago. This place gives you a good value for money, I highly recommend it. Their rooms were fairly clean and they had aircons (thank goodness because Singapore is too hot without one).

    Having my late 10.30am breakfast on the mini verandah, watching the passer-bys along the quiet Bussorah St. The feeling was totally laid back.

    They provided several bookshelves inside the cafe. I managed to read a book on Tiger Woods and another book on the history of Sarong Party Girl to accompany my daily breakfast, a set of kaya toast, a variety of fruits, and a cup of hot tea.

    Internet connection was also available from the 2 PCs next to the bar, but seriously, who could be bothered with checking emails during a holiday?

     
     

    Recent Posts

    Recent Comments

    • Tharindu: i started blogging long long time back but couldnt continue. last november i stated blogging again with...
    • maria: maybe he didnt believe in god, i dont either and does it really matter?? his message is the same:he talks...
    • Cliffano Subagio: Sure thing. The license for the images is Creative Commons Attribution Share Alike...
    • daniel: nice articles. can I copy your images? :D
    • Cliffano Subagio: Only an idea, won’t be made into real site (unless someone else wants to do it). Something...

    Most Commented Posts

    Linkroll