Help with loop of Liquid web app

Hello

I need help with a list of web app for a custom blog items.  Rather than having to categorize each post using the 'Actions' box (which they often forget), I think it would be much more user-friendly for our customers to have just a dropdown categories menu.  Can someone help out me this code, or to provide a more elegant solution?  The loop and the work of IF statement, but I'm having problems with rendering of the element in the IF statement.  When I copy the code of the object model in the IF statement, it restores.  However, I had much rather use a template because it is better - and I would like to know what I'm doing wrong.

{module_webapps id = filter 'Blog' = 'all' render = "collection" collection = "messages" sortType = 'date' template =""}
{% for section in posts.items %}
{% If item.category contains 'Food' %}
{module_webapps id = filter 'Blog' = 'item' itemID = "{{item.itemid}}" template="/Layouts/WebApps/Blog/list.html" "}
{% endif %}

{% endfor %}

Thank you!

Jeff

Hi Jeff, what's going to happen with what you do is your make a collection of all the web of elements app and if you match foods your rendering module of a single element.

First of all who will soon use your deduction limit to 75 module upward on this page/model until you know.
Second, think about why you need to make the module again? You have the item data because you can get the itemid, then why you not only made the rest?

Finally...

If you make collection = "" which means that you use the collection that you have you don't need not make = 'collection. " "If you have deleted the template =" "and collection =" ' make = 'collection' means that it will be available in your layout to the list as a collection, rather then one.

Tags: Business Catalyst

Similar Questions

  • Need help with StumbleUpon in Windows RT app.

    Original title: stumbleupon help

    Does anyone know how to get stumbleupon to work properly here?  I tried the app and it you cannot drag or change pages. I also tried pinning the page to start and use, but you can edit the pages of interest to this way or the other. Someone knows how to make it work?

    BTW I have uninstalled and reinstalled the application several times and it still does not work.

    Hello

    You are facing problem with StumbleUpon app in Windows RT.

    It seems to be a problem with the application. Let us try the steps in the article Microsoft Help and following check if it works for you.

    What to do if you have problems with a soft:

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    I suggest you to check with the support of the App to get help. Click on the link App support in the following link from Microsoft.

    http://apps.Microsoft.com/Windows/en-us/app/StumbleUpon/eb0a5bc4-90ff-44F5-85a9-b9d285153905

    Please do not hesitate to visit our Web site for any help related to the Windows operating system.

  • How to pass a product code using liquid/Web App

    I want to do is have a user to enter a code - say "12345" in a text box and click a "submit" button.  It then takes them to another page showing results or error message.

    I have created a web application with the following fields:

    ProductCode

    Name

    Details1

    Detials2

    When the user sends a code ("12345"), the next page displays the data for the product matches "12345" - If no product not match code, then a message saying ' data cannot be found.

    Can someone give me guidance as the best way to do it with the liquid, how I pass / send the code of the search page to the results page?  So is this a case of web filtering app 'collection' by the product code?

    Thank you very much.

    You use cash to do so. You just need to use a web app search. Get the form code, remove the other fields so just have the input of this custom code field field and have the module of search results web app on another page etc.

  • Help with fonts on the Web site

    Hi guys,.

    I'm having a little problem with a Web site, the soloution is probably very simple but cant for the life of find out me.

    Welcome to the 1st Winnington Scouts

    Please choose your topic below.

    In my code html above is under the "main" div and css for h1 is calibri fonts and it shows it in dreamweaver. Whenever I use the mode live view, or preview in the browser, or downloaded as it is now the police back to times new roman and color black.

    Below is the link to the site.

    http://winningtonscouts.hostei.com/

    Any help with this would be great

    Solved the problem

    There were some thugs in the stylesheet coding

  • Need help with loops

    Hi all

    I am a beginner in Labview. If need help in loops. Please check the attached vi and suggest me the procedure I followed is effective or not. If this is not the case, correct me.

    Waiting for answer

    According to the commentary of diagram, table sizes are all 16, then here is everything you need:

    (Hmm, clips chiseled Booleans in the constant diagram, just ignore that)

    "Elements of an array AND" checks if all a real (upper thread)

    'The GOLD table elements' check if at least one is true. (all others)

  • help with looping equation

    I'm really bad here with this (apparently) pretty simple problem of labview.  I have a set of equations that rely on the response of the other previous formula and so on.  I can do that easily enough in excel.  I tried to recreate this function in labview and were really struggling to make it work.  I tried to use while loops and for loops, I think that's what I have to do here, but I have a lot of success.  in any case, I've attached the worksheet with two formulas, a .png showing the relationship between the formulas in the worksheet and my .VI.  Thank you for your help in advance.

    You need both a loop and a shift register.

    Lynn

  • Please need help with the deployment of web applications in Jdeveloper 12 c

    Hello

    I'm desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!

    I have created a project in jdeveloper and created a jsp page in the project, what I want is to run this page!

    I followed the instructions here: Deployment of Applications Web Fusion , I don't really know if I did good or bad, the document is too detailed and not understood clearly.

    I am a newbie oracle user and trying to build a jsp web application connected to the oracle database. fails application deployment it says: cannot run application deployment IntegratedWeblogic error...

    Please could you tell me the steps of deploying applications in Jdeveloper 12 c?
    What deployment profiles, I need to create (ear, war, mar)?

    This deployment descriptor, I need for my application work?

    Please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .

    Thank you

    It depends on your knowledge of jsp and the possible controllers like struts, the faces and the adf (which is an addon of jsf). ADF has the advantage that a large number of configurations and other stuff is handled for you. However, if you are familiar with Struts you can use it too.

    The decision also depends on demand and what he should do. I can't comment on this, as I don't know.

    As you use 12 c my recommendation is to use the stack complete adf, meaning adf faces and adfbc for access to the data in the Database.

    There is a license for the adf if you want to deploy on a WebLogic Server, however there is a free version (adf essentials) that uses a GlassFish server.

    Timo

  • Help with loops and the fi

    Hi, im quite new to action scripts but the use of pascal a lot. Im stuck with a loop. What I want to happen, is when it gets to a certain range, not stop there and do some things visible on the frame when I press the specific letters on my keyboard. I had:

    Stop();
    {if (Key.isDown (85))}
    Statements
    }

    but I found that it would apply only if I held the button when I walked into the frame.
    I did try using some different loops, but in vain
    any suggestions would help!
    Alex

    Try to use a listener...

    var keyListener:Object = new Object();
    Key.addListener (keyListener);

    function keyDownF() {}
    If (Key.GetCode () == 85) {}
    Statements

    }
    }

    keyListener.onKeyDown = keyDownF;

  • Need help with loop and variable

    Hi all.

    I'm almost there with this, but I'm stuck on one last question.

    I am a loop in XML to choose the images to display, with the title and ID (which is used in the link).
    Everything works now except the itemID. This used to work, but now the ID is the same for all containers/links on the page.

    Code is attached below, and the function is the image.addEventListener.
    The itemID variable is that doesn't change is not to reflect the individual elements.

    Please please help.

    Thank you very much


    Hello

    You can try to use logic you used in your posted previous sample. Use the event.currentTarget.id to get the ID of the Image.

    image.addEventListener (MouseEvent.CLICK, function(e:Event):void
    {
    var imgId:String = e.currentTarget.id;
    var url: URLRequest = new URLRequest (" http://localhost/youtubeDownloader-debug/index.cfm?video=" + imgID).
    navigateToURL (url, "_blank");

    });

    You can also use the property 'data' of the Image to store the value you want and use the same property to get the value in the event listener.

    I hope this helps.

  • Help with setting/get variables in app

    Hello

    I have an application that behaves as follows:

    1. the user connects.
    2. the user is presented with a list of projects; user clicks a project to drill down for this project.
    3. the user is presented with project information that includes 4 separate lists tasks grouped by week. So there are tasks for the current week in what is more task for 3 weeks on.
    4. the user can change the talks or create new ones for each of the 4 weekly groups.

    Given that, on the home page for a project I have set up a report and the form for each weekly group. I also have an element for the project as well as each weekly group id id. Here, the goal is that when a user clicks on the 'create' button, they can create a new task for a group of the weekly. However, this does not work.

    For the first group of weekly when I click on 'create' I am presented with the form to fill out for the task. All the information is there, including the correct id for this weekly group so that the task is assigned to this property. However, when I save I get an error that says that this identifying particular is set to null.

    For the next three groups when I click on 'create' I give myself the same thing as above, but without the weekly group id. Even if I put it and record things, I get the same error.

    So, I wonder what I did wrong in the flow of the app. I put these variables too early, too late? Am I really not pick up their despite what I see on my screen? I missed some foundations of the Apex here?

    Thanks in advance for your time and help.

    Jon

    It should be

    : ASK = "CREATE";

    'CREATE' is the name of the create"" button.

    CITY

  • problem with loop module_data liquid with if statement

    I'm having a problem to the below statement inside the loop function for. I works very well outside the loop on a single post, but don't seem to take the entitlement when inside.

    {module_data resources = "blogposts' version ="v3"field model = 'PostFeaturedImage, release to id Date, postTitle, postBody,' =" "order =" "-id" limit = "5" skip = '3' = 'blogPosts' collection}

    {% for section in blogPosts.items%}

    {% If item.postFeaturedImage == "" %}}

    {% assign item.postFeaturedImage = ' / _assets/img/default_blog_picture.jpg '-%}

    {% endif %}

    < div class = "row" >

    < div class = "great-4 columns" >

    < p > < a href = "{{item.postUrl}}" title = "Read more" > < img src = "{{item.postFeaturedImage}}? Action = thumbnail & width = 1200 & height = 600 & algorithm = fill_proportional"alt ="{{item.postTitle}}"/ > < /a > < /p >

    < / div >

    < div class = "big-8 columns" >

    < h5 > < a href = "{{item.postUrl}}" title = "{{item.postTitle}}" > {{item.postTitle: capitalize}} < /a > < / h5 >

    < p > {{item.releaseDate | date: "dddd, MMMM yyyy"}} {{item.CAT}} < /p >

    < p > {{item.postBody | truncate: 220}} < /p >

    < a href = '{{item.postUrl}}' class 'more' = > read more < class i 'icon-angle-right' = > < / i > < / a >

    < / div >

    < / div >

    < hr >

    {% endfor %}

    Thanks in advance for any input.

    Not to assign the same name value.

    Assign a value with a new image name recommended before the, then this name within the FI, or just do an else if.

    {% If item.postFeaturedImage == ""-%}

    {% assign itemImage = ' / _assets/img/default_blog_picture.jpg '-%}

    {%-%}

    {assign = item.postFeaturedImage-% itemImage %}

    {endif %}

    {{itemImage}} to your image

  • Need help with loop removeChild! for (var i = 0; i &lt; 10; i ++)

    Hello! Im working on a game project and having problem when a loop to add more enemys.
    What I want to do is like, so time exhaustion and player failing to the chassis, I want that child to get removed. but I can't access the var in the loop. I know it's an easy way...
    but wil be prefect if someon have any help.

    public void enemysLvl1() {}

    for (var i = 0; i < 10; i ++) {}

    var frukt1:Frukt = new Frukt;

    addChild (frukt1);

    }

    I am grateful for!

    Add every instance of frukt1 in a table, as Ned said, or make one enemy container - a Sprite and then only add enemies to the container. You can then he empty of any call removeChildAt (0) while container.numChildren > 0

    I tend to use Sprite containers a lot...

  • HELP with LOOPING!

    : D any help coding will save me!

    need to loop once, then stops on the last image...

    Thank you!
    Jane

    Check out David Stiller's blog on this subject:
    http://www.quip.net/blog/2006/Flash/how-to-loop-three-times

    It only will give you the code... He'll tell you why, if you know how to modify it according to your needs.

  • help with loop

    Hi hope someone can help me

    "' How can I achieve this without getting the" undefined "at the beginning of each element, as I tried to splice but always get a comma at the beginning

    var letters: Array = ["a", "b", "c"];

    var asd:Array = new Array();

    for (var i: int = 0; i < letters.length; i ++) {}

    ASD letters [i] += [i]

    ASD [i] is asd [i] .split ("undefined");.

    }

    trace (ASD);

    output - undefineda, undefinedb, undefinedc

    use:

    var letters: Array = ["a", "b", "c"];

    var asd:Array = new Array();

    for (var i: int = 0; i< letters.length;="" i++)="">

    ASD.push (Letters [i]);

    ASD [i] is asd [i] .split ("undefined");.

    }

    or even better use:

    var letters: Array = ["a", "b", "c"];

    var asd:Array = letters.slice ();

  • APEX with J2ee Web APP integration

    Hello

    We are evaluating the APEX. I understand that APEX is running on the Http Apache server.

    -I wanted to know if its possible to invoke servlets from the APEX web page /JSP. I guess we can call a URL of the servlet running on a website separate server (e.g. Tomcat, Jetty, etc.) the APEX using java scripts page. But I want to get back the other web server response (success/failure).
    We would like to call a servlet which records the user input data (data can be a file, etc.) in a separate DB of APEX web page.

    -Also is it possible to operate the APEX on a j2ee Web server, is there any work that goes on in this direction?

    Can someone please indicate the location of tutorial/steps that could help me raise please J2ee Web app help is in this regard would be appreciated?

    Thank you very much

    -VK

    Nanny:

    Replace

    DBMS_OUTPUT. Put_line (value);
    with
    HTP. PRN ("Output is" | value);

    Follow this link for more information on the package htp
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/w_htp.htm#i1058734

    CITY

Maybe you are looking for