Copied to clipboard

Flag this post as spam?

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


  • Rocoeh 65 posts 86 karma points
    Jul 02, 2012 @ 10:55
    Rocoeh
    0

    Querying the database

    Hi,

    I do not know if I do this with razor/xslt or the api. I have a document type of 'news items' and I want to query them based on a get variable.It is a calendar

    So if I have a get variable of  22-10-2012 - I want to do a select * from events where date = "22-10-2012"

     

    Any pointers would be appreciated.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Jul 02, 2012 @ 11:23
    Jeroen Breuer
    0

    I'm not sure if it's a good idea to query the database directly. Here is a topic with some other suggestions: http://our.umbraco.org/forum/developers/api-questions/18933-Query-multiple-websites

    If you really want to query the database I have an example query in the UpdateDAMP method. That should get you started.

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies