Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevin Coster 83 posts 120 karma points
    Apr 04, 2014 @ 11:54
    Kevin Coster
    0

    Search Results Tweak for Published and Last Modified

    You will notice when getting search results back that the Published Date and Updated Date will always be the same: enter image description here

    This is because in the \usercontrols\kbsearchresults.ascx file the following exists:

    <li class="first">Published <%# umbraco.library.FormatDateTime(((SearchResult)Container.DataItem).Fields["updateDate"],"MMMM d, yyyy")%></li>
    
    <li class="last">Last Modified: <%# umbraco.library.FormatDateTime(((SearchResult)Container.DataItem).Fields["updateDate"], "MMMM d, yyyy")%></li>
    

    Note the updateDate is repeated twice against Published and Modified date fields so will always be the same change the top line to createDate to amend dates returned in search.

  • Simon steed 366 posts 677 karma points
    Apr 04, 2014 @ 11:58
    Simon steed
    0

    Thanks Kevin

    I did spot this on a build I did recently but been too busy to push a new version up and I guess with V7 now flavour of the month, unlikely that people will use it much going forwards (shame really) - however easy to update, maybe I should add a knowledge base article on my site for it :-)

    Simon

  • Kevin Coster 83 posts 120 karma points
    Apr 04, 2014 @ 12:02
    Kevin Coster
    0

    Are you looking at doing v7 version of uKnowledgebase?

    in addition looking at trying to get images to load in a lightbox through macros used in editor any idea or suggestions?

  • Simon steed 366 posts 677 karma points
    Apr 04, 2014 @ 12:32
    Simon steed
    0

    Hmm good question - we are currently rebuilding www.simonantony.net in V7 and as you will know, that site uses the knowledgebase, however it's going to be an interesting fit as the current KB is webforms only, now needs to be MVC so watch this space!

    Images in a lightbox should be pretty straightforward via the editor - for me i'd add a class in the editor dropdown to apply to the images, then i'd use jquery to activate a lightbox based upon that class being activated

    Hope that helps

    Simon

  • Michael Sims 119 posts 387 karma points
    Nov 20, 2016 @ 20:15
    Michael Sims
    0

    Hi Simon, Did you ever get around to rebuilding this package for V7?

  • Simon steed 366 posts 677 karma points
    Nov 21, 2016 @ 09:16
    Simon steed
    0

    Hi Mike

    Sorry no, I left it alone - I managed to get it working with our V7 site by just reskinning and shoving on a sub domain

    Si

Please Sign in or register to post replies

Write your reply to:

Draft