Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Apr 08, 2010 @ 09:31
    Tom
    1

    GetApprovedRecordsFromFormOnPage what is PAGE?

    Hi guys,

    reading through the documentation. I am having a really hard time working out examples where you'd use the GetRecordsFromPage etc etc.. what is the Page and when would it be used..

    IE say a user has a form on a page and we submit that form how could there be more than one record for a page..

    I'd really love to see more contour examples up and around.. it feels like there is alot of marketing around it saying it CAN do x and x and x but the developer's guide isn't geared to how to actually use the library by example.. more just definitions of terms.. if you don't understand how to piece those together or when to use them i feel like it doesnt really aid development..

     

    are there any tutorials around for contour on a wider scale?

     

     

  • Laurence Gillian 600 posts 1219 karma points
    Apr 08, 2010 @ 11:21
    Laurence Gillian
    0

    Okay I'll try and to a little example.

    You have a 'news articles' and each 'new article' has a template, which includes a Contour form called 'comments'.

    You can use the contour form to post comments, those comments are then related to the page they have been posted from.

    This means that in the same template we can write some XSLT which says 'get the comments', when you run the GetRecordsFromPage function, it looks at the $currentPage and pulls back and 'comments' related to that page.

    One form, multiple pages.

    Laux

  • Tom 713 posts 954 karma points
    Apr 09, 2010 @ 07:30
    Tom
    0

    awesome! thank you Laurence! great example!

Please Sign in or register to post replies

Write your reply to:

Draft