[Question] List only articles with photo-gallery
  • Hello,

    I am building a news site based on Newscoop 3.5.3 "Bea" and i would like to display on my home page a block that contains the last article with photo-gallery. Can someone help me with that?

    Thank you.
  • 1 Comment sorted by
  • Hi Nalyk,

    It depends on how you are building your photo galleries. If let's say you have an article type photo-gallery, then you can do in the home page something like:

    {{ list_articles length="1" constraints="type is photo-gallery" order="bypublishdate desc" }}
        {{ list_article_images }}
            <img src="{{ uri options="image" alt="{{$gimme->image->description|escape}}" }}" />
        {{ /list_article_images }}
    {{ /list_articles }}

    Hope this helps !