Web Apps list filter - if statement works do not?

I create a selectable list by link of the subcategories with number of assigned press releases

next to the subcategory listed.

I use an if statement to filter the subcategories with no assigned press releases.

The site-> settings-> categories are filled with categories and subcategories.

There is a Web application with the same categories and a Web application with the same subcategories as

the site-> settings-> categories.

When a Parent category is selected in the left column menu, we go to a Page of category model

to view a list of the subcategories of this category.

To display the subcategory list is the following code:

{module_webapps make = "collection" template="/layouts/custom/subcategories-collection.tpl" id = "29111" filter = "classified" itemid = "{{CategoryID}}"}

Here is the "/ layouts/custom/subcategories-collection.tpl" file:

< table >

< thead >

Name < th > < /th >

Number of PRs < /th > < th >

< / thead >

< tbody >

{% for item in items %}

{% If {module_webappscount, 29117, c, {{point.}} CategoryID}}}! = 0 %}

< b >

< td > {{item.categoryName}} < table >

< td > {module_webappscount, 29117, c, {{point.} CategoryID}}} < table >

< /tr >

{endif %}

{% endfor %}

< / tbody >

< /table >

Note: Web App #29117 is press releases, #29110 is #29111 and categories subcategories.

The problem:

When the if statement is included to filter empty subcategories

only displays the table header, and there is no list of subcategories.

If you delete the statement all subcategories are listed under

the header of the table. Empty and assigned.

Why is the survey not only select the subcategories that have

Assigned press releases.

If someone would like to know, here is the solution that I use:

The announcement subcategory Page module:

{module_webapps id = "Subcategories" filter = 'class' itemid = "{{CategoryID}}" resultsPerPage = "100"}

List subcategory template code:

{module_webappscount id = filter "29117" = "classified" itemId = "{tag_categoryid}" collection model = "my_prcount" =""}

{% If my_prcount.count! = 0-%}

{tag_name} - {module_webappscount id = filter "29117" = "classified" itemid = "{tag_categoryid}"},

{endif %}

NOTE: #29117 = press releases Web App id

Image of the category list Page:

Thanks to Dave Haggblad and Scott Reynolds!

Tags: Business Catalyst

Similar Questions

  • The feature "Display list of web app points submitted by a user" is not available in the free trial version?

    The feature "Display list of web app points submitted by a user" is not available in the free trial version? I can see it in the tutorials but its not available when I am connected.

    It is just named differently now. You should be able to add the {module_webappscustomer} module through the Toolbox Modules in the web page editor window, as shown below. Please note that the webapps function is available only for sites webCommerce. Learn more about the available modules and usage in detail here - http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Web_App_Modules

    Thank you

    Vinayak

  • Can I use microsoft web apps for my company if I have not yet bought the desktop version of microsoft office

    Can I use microsoft web apps for my company if I have not yet bought the desktop version of microsoft office

    Yes, but don't expect to see the complex Assembly with web apps, however, since it has limited functionality.

  • Web app lists items in secure areas

    I have an application single web, and I'm trying to distribute items web apps secure through secure areas, that a client can connect.

    For example, client A is a member of Secure Zone 1, which contains the secure web app elements X, Y, Z

    Client B is a member of the Secure area 2, which contains the secure web app components U, V, W

    What I discovered that both clients can see all the elements of web application (U V W X Y Z) in the layout of the list view, but clicking to view the details of an article not in their secure area invites you to connect.

    Is this correct? If I GET an element by placing it in a secure area, I do expect to appear in a list for a customer who is not a member of this secure area.

    Your understanding of the work of the BC is correct.  Only the details page will respect your setting of the safe zone.

    To achieve that you need, the page that contains the list of issues should be fixed in the appropriate box, and you should always output by category, Setup may list a category to each of your secure mirrored areas.

    An extension to that would allow you to have a single output page would be to ajax in the output of list view and draw on the specific page based on the secure area of users.  You can get the names of the users secure areas using a builtin BC {module_subscriptions} tag

  • Web App lists

    Does anyone know if theres a way to display actually all elements of web application in the list view? Right now, it is limited to 500 items per page.

    Hi Scott,.

    500 points will be displayed on a page (frontend) is the maximum per page at this point. With regard to point #501 will automatically have added paging.

    Hope that clarifies,

    -Sidney

  • Filter oil painting works is not in Photoshop CC2015.1 update [was: the filter oil painting]

    I have a NVIDIA GeForce GTX graphics card of 775M 2048 MB running on an iMac OS X El Capitan, which is not listed as supported for the use of the filter of painting in oil. Is there a work around for this or I have to get a different graphics card to make this filter work?

    I had the same problem!

    I have Nvidia experience in my PC, so I do my graphic card updated her!

    Today I have re-updated drivers my directly from the Nvidia site! So its all is ok now! Oil painting works!

    After driver installation, you can enable OpenCL in preferences > performance > advance settings > use OpenCL

  • app store of Windows 8 works do not at all

    Nine computer Acer AXC600-ES338 1 TB HDD 6 GB memory Intel Core i3 processor 2130 with windows 8 are the specs.  When I click on the app store anything that happens.  I tried to push the windows button + and typed in wsreset.exe and something pops up saying: "this application cannot be started because there is a problem with his 'license'. Can be any idea, what's the matter with him? PS I have an internet connection active and installed my free Avast antivirus. I was not able to access the store at all and I would like to download applications. I also want to mention that I just noticed my "change PC settings" does not work either - it produces no result when I click on it. I still know what else does not work im yet to get used to this computer.

    -Thank you.

    Because my computer is only a few days old, she was still under warranty. I just took to technical support and they solved the problem - apparently missed me some updates, but I don't see how because I scanned and scanned for updates but none appeared. in any case all of my applications worked and its good to go.

  • Data control for the Web Service based filter table adf only appear not

    I have a SOAP web service I'm consumption as a web service data control.

    When I use one of the results of the web service through data to the web service in the form of a table control in the user interface with the filter and sort, I don't see the filters on the top of the table.

    It comes to JDeveloper version 11.1.1.7.

    Please let me know if anyone has an idea on this issue.

    TIA

    ABS

    You need connect your own logic on the filtering table.

    The table doesn't actually do the filter - it does, is the data control to filter the info - for a Web service we do not know how it will actually make a sort-, so you'll need to add a filterListener on the table and call a WS that will be returned the filtered data method.

  • If statement works is not a reason any

    In a scene for one of my animations, I have the following-

    if(a == 3)

    {

    a = 0;

    gotoAndPlay (1, "scene 4");

    }

    on the other

    {

    gotoAndPlay (1, "Scene 3");

    }

    If (clicked2)

    {

    gotoAndPlay (1, "scene 5");

    }

    on the other

    {

    gotoAndPlay (1, "Scene 3");

    }

    I have the variable declared in a previous scene, and it worked at first.  It does not give me an error, but the Variable seems do nothing (he won't in the next scene, even if it is equal to 3)

    It is the line of code in the context previously-

    var clicked2:Boolean = false;

    Button2.addEventListener (MouseEvent.CLICK, goScene2);

    function goScene2(event:MouseEvent):void {}

    clicked2 = true;

    }

    a ++ ;

    Thanks in advance!

    Use the statement trace for debugging.  for example,.

    trace (a, a String, a == 3);

    if(a == 3)

    {

    a = 0;

    gotoAndPlay (1, "scene 4");

    }

    on the other

    {

    gotoAndPlay (1, "Scene 3");

    }

    If (clicked2)

    {

    gotoAndPlay (1, "scene 5");

    }

    on the other

    {

    gotoAndPlay (1, "Scene 3");

    }

  • State of the listed material unknown state via API, not so much using VMware Infrastructure Client

    Anyone know if it is a result of ESXi vs say Foundation, company, etc.?  Querying the State of the material using the perl Toolbox storage devices returned the status of "unknown".  While the use of the Windows infrastructure client under 'configuration' then 'State of health', storage devices are listed as with the lights green and 'Normal '.

    through perl toolkit, for example:

    print join ("\t", $host - & gt; name, $hba - & gt; device, $hba - & gt; key, $hba - & gt; model, $hba - & gt; status, $hba - & gt; pilot, $hba - & gt; bus). "\t";

    foo.com vmhba32 key - vim.host.ParallelScsiHba - 4 port SATA IDE Controller (ICH9) vmhba32 unknown ata_piix 0

    To obtain the status of storage devices, as seen in VI Client, you must watch HostStorageElementInfo API. This API gives the State of operation of the various components of storage. To access data from this API, you need to drill down to the next of the object "HostSystem: property

    runtime.healthSystemRuntime.hardwareStatusInfo.storageStatusInfo

    This will give the HostStorageElementInfo table and held the State values, as seen in the VI client.

    Hope this information is useful.

  • How can you restore a list template Web App

    Hi, I made a few changes to one of my models web apps list and he it messed all that. I want to just go back to the previous version. Is it possible to ? Help, please. Thank you

    Hi Brett,

    Only the pages and templates have a restore capability. Layouts of web app don't unfortunately. The best practice is to save the layout before you start working on it. I have the file in a backup FTP location is usually or simply copy and paste in a text editor.

    -mario

  • Web App registration process - release of press items by sub-category?

    This is the process of Listing of Web application - Press Articles by subcategory:

    1. click on the menu "category" list on the Home Page

    I chose computers and their devices.

    2 computers and their devices Category page with subcategory displayed in the inner column using the drop-down list:

    Interior - model category with the drop-down list of related subcategories

    Code:

    < select name = "CAT_Category" id = "CAT_Category" class = "cat_listbox" >

    {module_webapps, 29111, c, {{CategoryID}}, alphabetical}

    < / select >

    NOTE: 29111 is ID Web App - subcategories and the CategoryID is the ID for computers and peripherals category selected in the menu.

    In Web App - list subcategory template Layout is the following code:

    Code:

    < option value = "{#tag_name}" > {tag_name} - {module_webappscount, 29117, c, {tag_categoryid}} < / option >

    NOTE: 29117 is ID Web App - press release. Aims to list all the subcategories related to computers and devices category

    and to show that the number of press releases to the listed subcategory.

    It is the inner workings of code - above {module_webapps, 29111, c, {{CategoryID}}, alphabetical}

    How to select an item from the drop-down list and go immediately to the subcategory Page?

    On the category Page, there is once again a drop down list of subcategories of the category computers and devices at the top of the

    inner column but less is a list of press releases related to the selected subcategory above.

    Code:

    < select name = "CAT_Category" id = "CAT_Category" class = "cat_listbox" >

    {module_webapps, 29111, alphabetical c, {{parentID}},}

    < / select >

    < hr / >

    < h2 > press releases - {{categoryName}} < / h2 >

    {module_webapps, 29117, c, {{CategoryID}}, 10, 1, date}

    Previously, I used {module_webapps, 29111, c, {{CategoryID}}, 10, 2, alphabetical} without the < select > tag

    but it don't market not see well on an iPhone. The list is too cramped in width. Each element of the subcategory in the list is a link

    and if you click on the link with the fact that he goes to this category Page in the inner column press releases. It works but

    drop-down list work better for mobile devices, specifically phones.

    Hello

    If you use liquid you should really use the named modules now, not tags inherited old module.

    You can just style differently or simply to convert a list into a drop down list with javascript and CSS 100% better then even a drop-down list, thinking it's a menu.

  • I need to display a search form web app, inside the detail of another web application view. Anyone know

    I can't seem to get a search form web app to work within another page of detail web app. Anyone know if this is possible?

    I can view a list of web app; and the search engine works on a standard page. but when I try to load it into another web application details page, I get an error: "page not found". In this case, regarless of whether if I put {module_searchresuts} on the same page as the form or if I redirect the results to a different page.

    Does anyone have any suggestions?

    Thank you, but I needed to get the search form and the results of the Web A app to show inside the detail for the Web App B model... Apparently is not possible. I finished by simply using an iFrame - inase anyone who crosses the same question

  • number of comment web app

    I'm afraid I won't be able to do this, but maybe someone can give me a definitive answer.

    Why the comment count tag does not work on my web app list available but is in the details list?

    Is there a workaround if it is a common problem.

    Concerning

    Boxhedge

    Hello Boxhedge,

    Yes, I came to this issue, as well, it turns out that BC will not display the number of comments in the list unless you sort by popularity. Why I do not know, I submitted a few tickets on the issue.

    for what is a workaround, you can probably use JavaScript to load the number of commentary to the details view. But it should work regardless of the genre.

    Hope this helps,

    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Category links for Web App

    I have created a web application that displays the items and each item web application will be assigned to a category. I would like to show the category links that once clicked will reveal all items in this category. For example, on this page http://zoetraining.businesscatalyst.com/training-development-articles in the CATEGORIES box on the right, I would like to allow the user to click on the link 'Coaching' and go to a page that displays all items classified in the Coaching category.

    If possible, can someone please share instructions on how can I achieve this?

    Thank you
    Linda

    So I found further clarification on my question by reading this page: Categories to help organize the content in Business Catalyst basically, you create a tag of web application module that automatically displays a list of elements app web in a specific category.

    British Colombia, I open the page in which I want to view a list of some Articles of the category then insert my cursor in the body of the content of the Page where I want to see the list. On the right side of the page, there is a section called Toolbox. From there, I click on Web Apps > list of items in the Web application > web application name > view all the elements of a Classification of category. Then, in the next step, you select the category of classification. After that, you can customize it even further.

    I don't have to manually create a page for each category, but the list is automatically generated by the app web module tag I created as described above using the wizard in the Toolbox.

    Hope this helps other people who want to learn to do the same type of installation.

Maybe you are looking for

  • Apple Watch series 2 swimming

    Have the new Apple Watch series 2 so I can swim with it.  Swimming is my main activity during the week.  Is there something special I need to do when I swim?   I know how to start the activity.  I didn't know if there was a setting I have to change t

  • don't spam, even using scanning

    Some time ago has participated in an investigation of firefox, now spam without end that I never had before. using scan does not stop, with the name or domain change slightly each time.Far from creating a new account, I'm at my wits end.scanning can

  • Satellite L305D-S5938: factory settings restore Vista or Win7

    Hello. Please excuse me if this question has an obvious answer.Sorry if this has already been asked before. I bought my computer until Windows 7 came out (around August 2009), so he came originally with Vista, and a CD to upgrade came in the mail. I

  • Cursor jumps periodically on Portege M700

    Can anyone propose a resolution to a problem I have? While I'm typing, the cursor jumps periodically around on the screen. This means that a moment I'm on a particular line, the next I'm inserting text in a line somewhere else in the document. It is

  • Satellite L650 11th - no support from bridge?

    Hello! I have a problem. I just ordered the Satellite L650-11F, but when I opened the box, there was no bridge inside media.Is this normal? There is a hole for it on the right side of the laptop