Knowledge Base > Syndication Services > Editor's Desk and Widgets
Search the Knowledge Base
 
Date Modified
Tuesday, January 22, 2008
Widget How To's – Removing various post elements from default widgets

 

This Knowledge Base article only applies to premium Editor's Desk accounts. A premium level account allows for customization of the HTML, CSS, and JavaScript of your widgets. If you'd like more information about how you can take advantage of this more robust version of Editor's Desk, please contact Craig Lachman. His contact information is included in the confirmation email that was sent to you when you signed up for a basic Editor's Desk account.


By default, widgets will show certain standard elements that either provide information about each article, or allow certain types of interaction with the article. Examples are the date and time the article was published, the name of the feed the article came from, controls to email the article or to rank the article (ranking stars).

 

Publish Date and Feed Name:

To remove the publish date and feed name from an article (e.g., Published 28 minutes ago by CNN.com), please do the following:

In the Template HTML pane of Editor's Desk (located within the Design tab of a widget), look for and delete the block of code that looks like this:

 <span class="ng_postInfo">

  Published ${Post.PubDate|timeSince} ${% (Post.FeedName != '' ? 'by ' + Post.FeedName : '') %}

 </span>

 

You can also remove just one or the other of these two elements by deleting either this text:

Published ${Post.PubDate|timeSince}

 

Or this text:

${% (Post.FeedName != '' ? 'by ' + Post.FeedName : '') %}

 

 

 

 

Toolbar:

To remove the section under the articles that contains an Email to a Friend button and rating stars (this is also known as the toolbar), just locate and delete the following block of code in the Template HTML pane:

 <tr>

  <td colspan="2">

   ${% RenderToolbar(Post) %}

  </td>

 </tr>

You can also remove or add individual components of the toolbar by modifying the RenderToolbar line.

Take this code for example:

${% RenderToolbar(Post, {ngEmail:true, ngIM:true, ngRatings:false}) %}

 

This will leave the Email This Post control in the toolbar, it will add an Instant Message This Post control to the toolbar, and it will remove the Rate This Post stars.



Knowledge Base Software - myKB.com