[campsite-support] How to make a list of last uploaded videos?
  • Hi,

    For our website we try to make a list of the latest videos (5, extension
    wmv) that have been uploaded.

    I would think of putting something like this in the template:


    But campsite doesn't understand where articleattachment is wmv in lists.

    How can i get this list of uploaded videos?

    Greetings,

    Jeroen
  • 3 Comments sorted by
  • Hi Jeroen,
    Try with something like this:




    This print the Attach URL:









    Jeroen van de Nieuwenhof wrote:
    > Hi,
    >
    > For our website we try to make a list of the latest videos (5, extension
    > wmv) that have been uploaded.
    >
    > I would think of putting something like this in the template:
    >
    > >
    > But campsite doesn't understand where articleattachment is wmv in lists.
    >
    > How can i get this list of uploaded videos?
    >
    > Greetings,
    >
    > Jeroen
    >
    >
    >

    www.elperiodico.com.gt
  • This way a list is made of attachments to a single article, not a list
    of total attachments to various sorts of articles, right?




    Op vrijdag 23-11-2007 om 10:26 uur [tijdzone -0600], schreef Carlos
    Cabrera:
    > Hi Jeroen,
    > Try with something like this:
    >
    >
    >
    >
    > This print the Attach URL:
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > Jeroen van de Nieuwenhof wrote:
    > > Hi,
    > >
    > > For our website we try to make a list of the latest videos (5, extension
    > > wmv) that have been uploaded.
    > >
    > > I would think of putting something like this in the template:
    > >
    > > > >
    > > But campsite doesn't understand where articleattachment is wmv in lists.
    > >
    > > How can i get this list of uploaded videos?
    > >
    > > Greetings,
    > >
    > > Jeroen
    > >
    > >
    > >
    >
    > www.elperiodico.com.gt
  • Right, but (i think) you can used inside de loop of a list article. Try:

    <!** list length 5 article>

    <!** list articleAttachment>
            <!** if ArticleAttachment Extension is "wmv">  

                    This print the Attach URL: <!** URI
    ArticleAttachment>

                    <!-- Your embed code here -->
                  
            <!** endif>
    <!** endlist>

    <!** endlist>

    Try, and let me know if works.




    Jeroen van de Nieuwenhof wrote:

    This way a list is made of attachments to a single article, not a list
    of total attachments to various sorts of articles, right?




    Op vrijdag 23-11-2007 om 10:26 uur [tijdzone -0600], schreef Carlos
    Cabrera:


    Hi Jeroen,
    Try with something like this:

    <!** list articleAttachment>
    <!** if ArticleAttachment Extension is "wmv">

    This print the Attach URL: <!** URI ArticleAttachment>

    <!-- Your embed code here -->

    <!** endif>
    <!** endlist>




    Jeroen van de Nieuwenhof wrote:


    Hi,

    For our website we try to make a list of the latest videos (5, extension
    wmv) that have been uploaded.

    I would think of putting something like this in the template:

    <!** list length 5 article where articleattachment is wmv order byDate desc

    But campsite doesn't understand where articleattachment is wmv in lists.

    How can i get this list of uploaded videos?

    Greetings,

    Jeroen





    www.elperiodico.com.gt









    www.elperiodico.com.gt