Copied to clipboard

Flag this post as spam?

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


  • Marc Bruins 3 posts 23 karma points
    Nov 18, 2011 @ 10:39
    Marc Bruins
    0

    How sort items on user made datetime

    Currently working on a project where the client can add new agenda items to the agenda. When the client adds a new item they must choose a date and time. What i want is to sort on this client made date and time on the "Agenda" page. What is the best way to create this? Currently i'm sorting on the CreatedDate but as you can imagine this is not a good solution.

    Current code for Agenda.cshtml

    @using umbraco.BusinessLogic;
    @using umbraco.cms.businesslogic.web;
    @{var numberOfItems 3;}

    @foreach(var item in @Model.Children.Where("umbracoNaviHide != true").Take(numberOfItems)){
          
           
            <div class="newBand">                                                                                                      
                 <class="bandTitle">@item.title</p>            
                 <img src="@item.foto" width="200" class="alignright"/><div class="bandTekst">@item.text Aanvang<b>@item.dateAndTime</b></div>
            </div>
              
    }

  • Marc Bruins 3 posts 23 karma points
    Nov 18, 2011 @ 11:17
    Marc Bruins
    0

    I can't edit my topic.

    Get the following error: Error parsing XSLT file: \xslt\forum-commentsList.xslt

  • Rodion Novoselov 694 posts 859 karma points
    Nov 18, 2011 @ 14:02
    Rodion Novoselov
    0

    Hi. Try to embrace the 'Aanvang:' string with a <text> tag like this:

    bla-bla-bla @item.text<text> Aanvang: </text><b>bla-bla-bla
  • Marc Bruins 3 posts 23 karma points
    Nov 23, 2011 @ 14:25
    Marc Bruins
    0

    Rodion Thanks. I made the change.

     Nobody know how to fix this?

Please Sign in or register to post replies

Write your reply to:

Draft