Skip to main content

Extends the XML sitemap schema to include tags for images and videos.

Comments

1 comment

  • Zendesk API User
    Author: hoebbel - 10/23/2020 10:17

    Hello Jorge,

    Maybe this example will help you to solve the problem:

    $CMS_SET(mediastore,#global.userService.getStore(class("de.espirit.firstspirit.access.store.Store$Type").MEDIASTORE,true))$

    $CMS_FOR(media,mediastore.getChildren(class("de.espirit.firstspirit.store.access.mediastore.MediaImpl"),true))$

    $CMS_IF(media.getType()==0)$$-- 0 == FILE, 1 == PICTURE--$

    $CMS_VALUE(media.getLastChanged())$<br>

    $CMS_VALUE(ref(media).url)$<br>

    $CMS_END_IF$

    $CMS_END_FOR$

    In line 1 I get the mediastore (release version).

    In line 2 I iterate over all media (recursive)

    Line 3 checks if it is a file (this might help with further queries if you want to find out if it is a video or an image)

    Many greetings

    Holger

    0

Please sign in to leave a comment.