#1 2016-01-18 14:16:36

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

[Solved] Medias: Limit and Range

I'm having problems to show medias with a specific range and limit. That's my piece of code.

<ion:articles range="2" limit="2">
         <ion:article>
                            <ion:medias range="2" limit="1" >
                                    <ion:media>
                                        <img alt="<ion:alt />" src="<ion:src />" >
                                    </ion:media>
                                    </ion:medias>
</ion:article>
</ion:articles>

I've got four images and I'm trying to show just some of them. But it prints the 4 of them. Any help. Thanks very much.

Last edited by franolivera (2016-01-20 17:38:10)

Offline

#2 2016-01-19 19:36:22

otemu
Member
Registered: 2014-03-07
Posts: 183

Re: [Solved] Medias: Limit and Range

Hi,
You haven't added the type, maybe try:

<ion:articles range="2" limit="2">
         <ion:article>
                            <ion:medias range="2" limit="1"  type="picture,video">
                                    <ion:media>
                                        <img alt="<ion:alt />" src="<ion:src />" >
                                    </ion:media>
                                    </ion:medias>
</ion:article>
</ion:articles>

Offline

#3 2016-01-20 17:20:00

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: [Solved] Medias: Limit and Range

It worked perfectly !!! Thanks very much !!!

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations