TelliTip 17: Exposing trackbacks on your content in GraffitiCMS

GraffitiIf you are using the Blog Extensions plug-in for Graffiti you may start seeing comments on your site that are not being published. This is likely because the theme you choose did not support showing trackbacks by default since they weren’t part of the core GraffitiCMS app.   Kudo’s goes to Jeff, who did an outstanding job explaining how to enable all of the cool functionality of the blog extensions here.  This post will borrow from that to show you how to enable trackbacks/pingbacks showing in a theme that did not support them.

  1. Log into your control panel as an admin.
  2. Go to the theme customization with Presentation > Themes > Personalize on your current theme.
  3. Click on the post.view file to open it.
  4. I recommend saving your existing copying the current post.view content into a new next file as a back-up at this point.
  5. Insert the following code where you want trackbacks to appear and save.  NOTE: I’m using the Skittlish theme so your CSS mileage may vary.  The basic concept would be to borrow as much as you can from your theme’s comment section.

<!–Loop through trackbacks –>
#foreach($trackback in $trackbacks)
<!–denote as a comment list with your CSS and title –>
    <div id="commentslist">
    <h3 class="content">Trackbacks </h3>
    <li class="comment  by-guest">
    <p class="meta"><strong><cite>
    <!–Insert Trackback Title & Link –>
    <a href="$trackback.WebSite" title="$trackback.Name">$trackback.Name</a></strong><br>
    <!– insert date/time posted –>
    <em>Posted on  $trackback.Published.ToString("M.dd.yyyy") at $trackback.Published.ToString("h:mm tt")</em>
    <!– Insert trackback body –>
    <div class="body">
    <!– Insert check to see if you have rights to delete trackback –>
    [<a href="javascript:void(0);" onclick="Comments.deleteComment(‘$urls.AdminAjax’, $trackback.Id,’comment-$trackback.Id’,’comment-body-$trackback.Id’); return false">Delete Pingback</a>]

#end <!– end loop –>

Of, if you like the way my site looks, you can download my theme here: