ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Gallery and XML

October 30, 2007 11:02am

Subscribe [1]
  • #1 / Oct 30, 2007 11:02am

    Dion Snoeijen

    14 posts

    Hello,

    I have this information in XML that i use for my images.
    This works fine but i want to have the images from a certain category in this gallery only.

    Does anybody know how to do that?

    <?xml version="1.0" encoding="utf-8"?>
    {assign_variable:gallery_url="http://www.octografx.com/images/images-cad"}
    {assign_variable:gallery_name="img_cad"}
    {exp:gallery:entries gallery="{gallery_name}"}
    <afbeeldingen>
           {entries}
        <image>
            <title>{title}</title>
            <thumb>{gallery_url}{cat_folder}/{filename}_thumb.jpg</thumb>
                   <full>{gallery_url}{cat_folder}/{filename}_medium.jpg</full>
                   <description>{caption}</description>
        </image>
           {/entries}
    </afbeeldingen>
    {/exp:gallery:entries}
  • #2 / Oct 30, 2007 11:15am

    Dion Snoeijen

    14 posts

    Ow… i feel stupid now… totally couldn’t find it.
    Sorry for the stupid post.
    Thanks for the help anyway!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases