Tuesday December 30, 2003
Roller Tip: Managing your Comments I tend to get a few comments a week that I need to delete because a reader has double-posted or said something I don't care to have on my website. Up until today, it's been a pain to navigate the Roller UI and delete these comments. It's almost easier to do it through SQL. No longer - I added a "Delete Comments" link to my _day template that shows up right after the "Edit" link. I'm not using the showEntryPermaLink macro for permalinks because I prefer to show permalinks on their own page (keyed by the anchor parameter). So replace your logic to render your permalink with the following and you'll be able to delete comments easier too:
<a href="$baseURL/page/$userName?anchor=$entry.anchor"
title="Permanent link to this weblog entry"
class="entrypermalink">Permalink</a>
#if ($pageHelper.isUserAuthorizedToEdit())
[<a href="$pageHelper.getEntryEditUrl($entry)">Edit</a>]
[<a href="$ctxPath/comment.do?method=delete&entryid=$entry.Id">Delete Comments</a>]
#end
To be thorough, here is the contents of the showEntryPermaLink macro:
<a href="$baseURL/page/$userName/#formatDate($plainFormat $entry.PubTime )#$entry.Anchor"
title="Permanent link to this weblog entry"
class="entrypermalink">Permalink</a>
#if ($pageHelper.isUserAuthorizedToEdit())
[<a href="$pageHelper.getEntryEditUrl($entry)">Edit</a>]
#end
Posted in Roller
at Dec 30 2003, 03:46:22 PM MST
2 Comments
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
Posted by Lance on December 31, 2003 at 09:24 AM MST #
Posted by I am sproatic.us on February 09, 2004 at 10:38 PM MST #