How to limit the number of result of a function of a condition webapp

I'm working on a Web application. I want that it displays results 'only one' if the condition is met. This is my code:

{module_webapps id = render "29947" = "item" filter = 'all' hideEmptyMessage = 'true' number of lines = '1' collection = "latestMonthlywinner" sortType = 'date' template =""}

{% for article on latestMonthlywinner.items-%}

{% If item.typewinner == 'Monthly'-%}

< div class = "W-matieres2 line" >

< div class = "w - col w-col-7 w-col-stack matieres2-col" >

< div class = "content-textblock-1 t2new" > {{item.releaseDate | date: "MMMM"}} {{item.itemId}} < / div >

< a href = "promotions - starwinner.html ' title = 'See the testimony of the Star winner' class ="happy btnlink w-button"> PAGE of the WINNER of STAR VIEW < /a >

< / div >

"< div class ="right w - col w-col-5 w-col-battery matieres2-collar"style =" background-image: url ({{item.monthWinnerpic}}); background-position: 50% 50%;  background-size: coverage; height: 100%; padding: 9% 2%; background-position: 50% 50%; "> < / div >

< / div >

{endif %}

{% endfor}

Please can someone tell me what I do wrong. The results I get, is that it shows all results. But I just that it displays on the results. Will be more appreciated if I can get help.

Everything done loop is to find WHAT have months in this State.

If you want to stop when it finds the first of that you will need to use the loop of the PAUSE method:

Logic tags | Business catalyst support
{% break %}

This should go just before the endif.

Tags: Business Catalyst

Similar Questions

  • How to limit the number of printers can be installed on this computer by using Group Policy?

    How to limit the number of printers can be installed on this computer by using Group Policy?

    Hello

    Thanks for asking! If I understand correctly, you should limit the printers installed on the computer by using Group Policy. I suggest you follow the troubleshooting steps to check if this may help.

    The question you have posted is related to Technet and would be better suited to the Technet community. Please visit the link below to find a community that will provide the best support.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • Limit the number of results when searching for users?

    Hi all.

    The following rule works very well:
      <invoke name='toList'>
        <invoke name='listObjects'>
          <ref>context</ref>
          <s>User</s>
          <map>
            <s>conditions</s>
            <list>
              <new class='com.waveset.object.AttributeCondition'>
                <s>DEFERREDTASKDATE</s>
                <s>notPresent</s>
                <s></s>
              </new>
            </list>
          </map>
        </invoke>
        <s>name</s>
      </invoke>
    But in the production environment, we want to limit the number of results to a manageable level, say 200 users. I tried resultLimit and LignesMax in the stock option plan, but nothing helped.
    Pointers to help me in the right direction?

    Best regards
    Stefan

    The JavaDoc for AttributeCondition does not list these operators or conditions.

    You will need to add conditions to your query that limits the response by other means.

    I don't know what your user name looks like, but for us, we have an ID for each account that you could put limits to

    i.e.

    UserID > current_place and userid< current_place="" +="">

    that, if the user name is a number, would limit the answer to a maximum of limit, but if no user is in the meantime it would obviously be zero.

    the alternative is to create your own rule to query the repository on your own and use the resulting data to browse normal calls.
    It's a bit heavy if you use attributes that are not available at hand, only existing in the xml BLOB

    I also think that you could make your own javaclass and do the same thing, but I'm just not proficent in java as to who try here: P

  • How to limit the number of connection to DB

    Hello

    I just go to the topic of connection pooling.
    Here, I would like to understand the number of details of connections that already exists in the database.

    Kindly guide me to know the following details.

    How to know the number of connections available in the database?
    How to limit the number of connections?

    V_$ Resource_Limit contains details of the sessions. Is this even for connections?

    I have more clarification on the difference of connections and Sessions.

    Kindly tell me the above.

    Thank you
    Orahar.

    Orahar wrote:
    Hello

    I just go to the topic of connection pooling.
    Here, I would like to understand the number of details of connections that already exists in the database.

    Kindly guide me to know the following details.

    How to know the number of connections available in the database?

    The number of currently active sessions (db, internal sessions registered)

    SELECT COUNT (*)
    SESSION $ v

    How to limit the number of connections?

    to increase or decrease the maximum number of connections:

    for example: change processes control system = 200 scope = spfile;

    >

    V_$ Resource_Limit contains details of the sessions. Is this even for connections?

    I have more clarification on the difference of connections and Sessions.

    Connection means a user process is successfully connected to the listener to have a session on the database running instance. (listener who listen s new connection requests)
    Establish sessions: means, a (dedicated) server process began to serve a user process. It is done when the credentials of the user authenticated successfully. Now, from process-user shall communicate to the server process directly.

    hope that helps.

    Kind regards
    X.

  • How to limit the number of rows returned in a query

    Hi friends,
    I want to limit the number of rows returned by my request to some 10 lines. How to do this. When I try to make some 6 rows with the rownum < 10 its giving results for a particular Department and that too only... btw I'm bundling my table and includes much a table joins and will order the results of the table by a column... How to do this...

    Run it:

    select * from (your query goes here) where rownum < 10
    

    Nicolas.

  • How to limit the number of letters, a user can type in an EditField?

    I have an EditField on my screen. How can I limit the number of characters that it accepts?

    Use this type of edit field constructor:

    EditField(String label, String initialValue, int maxNumChars, long style)

    Date of arrival:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/component/EditField.html

  • How to limit the number of checkboxes

    I use Adobe Pro XI and that you have a form with 15 boxes.  I need to be able to limit the total number of boxes allowed to 10, so once they checked 10 boxes, they cannot select all the others in this section.  Y at - it a calculation or script anything else that I can use to achieve this?

    Here's an approach you can take: How can I limit the number of boxes the user can select? (PDF Forms)

  • How to limit the number of characters which that displays a label?

    Is someone can you please tell me how I can limit the number of characters that a label displays the text property?

    use

    numberFormatter.format (2.5545454)--> 2.55

    & gives FIX width of label in pixels that display always 4 characters. Mean width = "50"

  • How to limit the number of download

    When I download many files (files of 30 to 50 at a time), firefox gets as many downloads at the same time as possible (6-7 siml dwlds). I want to limit the number of simultaneous download of 2-3. could not find the option for that. I need beak FFox occupies all the connections and I can't use any other internet stuff on this day.

    You can install an add-on to do this work for you.
    Search for download heremanagers.

    E.g. DownThemAll

  • How to limit the number of items listed when hover over Menu of Control Panel

    original title: Panel Menu controls

    Hey there,

    I want to limit the amount of results when I hover over the control panel in the start menu, when I displayed it as a menu...

    Currently, I have about 25-30 items displayed there and it takes about 2 to 4 seconds to load the menu, I would just have to charge about 10 Articles and give me the ability to scroll the rest of them. Any help would be appreciated!

    Hi Berthier, Chad

    Thanks for choosing Microsoft Community!

    Unfortunately, there no option to perform this task.

    You can submit your comments using the link:

    http://support.Microsoft.com/common/survey.aspx?scid=sw;en-us;2310&altStyle=MFE&renderOption=OverrideDefault&showPage=1&FR=1&nofrbrand=1

  • ESX3.5/VIC: How to limit the number of snapshots?

    Hello

    We use ESX 3.5U4 Starter Edition with Virtual Infrastructure Client.

    Is there a way to limit the number of snapshots to a virtual machine?

    We would like to have a strict limit for particular VM nobody can make more than 2 shots. This means that they must remove the old Snaptshots until they can make new ones.

    Thank you

    Kind regards

    Phil

    As previously reported by Duncan, no, there is no way to limit the number of snapshots. I also confirm that it is the same limit on vSphere.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • How to: limit the number of tasks?

    Hello

    Is there a way to limit the number of tasks on an ESX Server?

    Thank you.

    Eran

    No way to do it directly from an ESX Server.  ESX will do this directly, by launching tasks and queuing the rest, if you started several at once, but I know no way to specify a value for this.

    -KjB

  • How do limit the number of records in a PivotTable?

    I could help limit the number of records that shows a dynamic array without display error display error

    Thanks for the help

    Hello
    Assign Points if answers helped.

    Concerning
    Srikanth

  • How to limit the number of line TextArea

    Hello

    I want to set the number of line TextArea to 1 initially. And I want the number of rows to grow dynamically as the user inserts "entry".
    I could do it in javafx 1.3 with the lines property, in javafx 2.0 who disappeared. I tried to use the setPrefRowCount (.) but it does nothing (I guess because it's just a preferred setting).

    How can I achieve this in javafx2.0?

    Thanks in advance,
    Pedro Duque Vieira

    Nice workaround.

    I think that this problem is fixed in 2.0.2, however: see http://javafx-jira.kenai.com/browse/RT-16827

  • How to limit the number of posts showing?

    Hi there guys...

    I was wondering - how limiting the number of posts showing on a main summary blog post page?

    I want to show him say 5 recent posts, not 15.

    See you soon,.

    Dave

    {tag_postlist, 5}

    That's how. :-)

Maybe you are looking for

  • How to disable the App tabs (tablets should) start automatically?

    How to disable the App tabs (tablets should) start automatically? because the option [don't load the tabs up to choosing] dose does not work with her, and she keeps starts every time when I restart Firefox. Please help me!

  • AT &amp; T Communication Manager

    Hello I have a year old T61 without the wireless card built-in. I use access connections. I just finished a clean install of Windows XP on it and I want to use my AT & T 3G Broadband card. It seems that the dial-up connections now supports 3G, but I

  • Win 7 Security

    I have a program I respected using LabWindows 2010.  Program works well under Windows XP, but WIndows 7 the program gets a shield attached to the icon (see attachment).  When you run the program under Windows 7, it asks that an admin password be ente

  • Download security programs fail.

    I have 6 downloads failed on microsoft updates.how I do download again them? on windows xp"

  • Z3 + and SCR30: message and call notification missed not clearing

    Hello I have a Z3 + double and coverage of style SCR30: I noticed that the missed call and message notifications text does not clearly in the window style coverage after I make disappear on the phone... any idea to fix it? concerning Olivier