Renders the model of webapp even when no items found

I have a page in which I make a web application model by using the following code:

{module_webappscustomer id = "26026" template = "mytemplate.tpl"}

If there is that any articles not found the message "no element is found." is displayed.

So far, it of normal, expected behavior.

What I want to do, when no element is found, still renders the model (where I have some liquid code to display a form instead of the items).

Please note that I need to use a template and not collections of the parent page that this code will be used in several places and I would like to follow DRY principals.

An alternative would be if I could pass a holder of content collections.

Any ideas?

Robert and Liam thanks for your help.

Finally, I used collections and includes for this in the form of:

{module_webappscustomer id = "26026" collection = 'myCollection' "model =" "}

{% include ' / my - include - upploadare "-%}

Then in the file included, I can count the number of items in the collection and make things differently if the number is 0.

Note that reuse the same code several times was important because I'm using the same included file several times on the page, but with differently filtered data (even that description is a bit simplified).

A few notes to clarify on what you both wrote:

  • Collections are NOT reflected to the holders of content (but they came to include).
  • Make a module_webappscustomer model as a collection will NOT work if there is no found items (you will get a message "no items found" and the model will not be loaded).  This isn't a problem with understands it.
  • The "no items found" message can be disabled using {module_webappscustomer hideEmptyMessage = 'true'}
  • Understand the difference between rendering = 'collection' and collection = 'something' is important!
  • Custom settings are useful (I had already tried to use these) but will break if the value contains double-quotes ("")

Tags: Business Catalyst

Similar Questions

  • My macpro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi

    my mac pro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi

    If the Time Capsule and MacBook Pros are not on the same network, the MacBook is not backup in the time Capsule. You probably see what snapshots leaving MacBook on the local disk, until the two are reconnected. If you don't want that to happen, disable Time Machine on a different network.

    Good day.

  • Printer Epson NX 415, get a message saying something on the refill cartridges, but even when I tried to solve the problem, I was unsuccessful.

    I have an Epson NX415 printer, the problem I have is my arer of ink cartridges not recognized or fake messages saying that I need to replace a particular cartridge is correct. I tried the Epson OEM cartridges as generic in all combinations without success. Sometimes, I get a message saying something on the refill cartridges but even when I tried to solve the problem I was unsuccessful. I have tried all troubleshooting solutions on Epson web site without success.  Help!

    I hate to say it, but if you can't get help from Epson, it's probably time to buy a new printer.  It's a printer hardware problem or a problem of printer driver, and the two of them come from Epson, not Ms.

    Good luck.

  • My CS5 Illustrator (just updated) guard smoking when I either try to re - create a link, scroll through fonts, use the pipette for the selection of the color of police/or save to a new folder outside of the previously used. Even when I choose to close, he

    My CS5 Illustrator (just updated) guard smoking when I either try to re - create a link, scroll through fonts, use the pipette for the selection of the color of police/or save to a new folder outside of the previously used. Even when I choose to close, he said that it "unexpected." Really irritating - ideas?

    Your options are:

    -try to make it work (could take a few hours and may does not always work)

    -get the CS6 (has problems as well, but works a little better)

    -get CC

    -install a virtual machine with an older system (10.6 or 10.8)

    -Check if your Mac is not as new as you think and you can still run Yosemite (also has problems, but perhaps not as much)

  • whenever I click on the link for creative cloud, it takes me to the download page. Even when I reenstall, the link still tackes just me draft.exe page. Can it be planned.

    I have an account that I have lightroom & camera shop. I used all 3 for more than a year. But now.every when I click on the link for creative cloud, it takes me to the download page. Even when I reinstall, the link still takes me right to the download page. This can be corrected.

    I fixed it by removing all the programs. Then I have them re-installed

  • The cursor moves erratically even when no mouse connected

    I've had the problem for over a year now, but I never received tour to report. From time to time, my cursor moves erratic around the screen, jumping from position every few seconds. I have a MBP, but often use it plugged on a screen and mouse etc with the lid closed. The problem persists if Setup like that, even when the external mouse is disconnected, or when simply use it as a laptop. I recently wiped the hard drive and reinstalled a clean copy of Mac OS x from zero (no backup), but the problem still persists.

    Any ideas?

    Looks like a hardware problem. How old is this MBP? Sometimes, when they get older, the battery may start to inflate and put pressure on the trackpad.

  • Firefox is faster on the safe mode. Even when I disable all extensions and plug-ins, it does still work on normal mode. What should I do?

    I already tried to uninstall e install again, but rest the problema. When I use safe mode, firefox works correctly. I tried to remove all extensions and plug-ins, but the problem persists. Even my mouse pointer moves slowly around firefox screen when the normal mode. I have synced with another computer and I have no problem with each other.

    Hello lgm11, try turning off hardware acceleration and check again (in safe mode hardware, acceleration is disable).

    Thank you

  • creating Windows dvd burning only the aspect 4:3, even when set to 16:9 ratio.

    Burns maker Windows dvd only the aspect ratio 4:3, even when the value 16:9.was ok in vista, but not the case in windows 7 too movie maker in windows 7 is garbage.this pure direct essential bundle is rubbish.why should set us up with that? I bet that there is no answer. tried to download older versions of movie maker work. but you get directed to this essential live bundle .any way this isn't the end of the world.as, I did a few dvd place pods...

    Always the same question on 8 January 2015. Windows Movie Maker produces video files in 16 / 9, but Windows DVD Maker that requires to 4:3 when burning a DVD, regardless of the settings.

    Again, I tried severale time and again on April 24, 2015, the ratio has to be 4:3!

    Too bad because I like the creation of DVD menu.

    I found the solution... very simple and it will work every time. before you burn the DVD with windows DVD creation, make sure you 'exit' your video to mpeg2 format, no matter what software you use to edit your videos, make sure you "output" your finished video in MPEG2 before burning with windows DVD maker

    MPEG2 is a DVD format that windows DVD maker recognizes and so it will burn your video ratio 16.9 this video will play on any DVD player. AVI WMV formats won't work even if you copy with movie maker then MPEG2... This is the key ~ MPEG2 ~ that's the secret.

    Unfortunately, Movie Maker stores projects only as MPEG-4 (.mp4) or Windows Media Video (.wmv).

    If your solution is another problem. We should convert mp4 or wmv in MPEG-2, how?

    Why Windows has no simple and direct way to burn DVD screen wide ratio?

  • Unable to connect to the application Adobe Pro even when DC online and connected account Adobe. Why?

    I recently bought Adobe Pro DC subscription and downloaded the desktop application. When I open the application on the desktop while I'm online, then click 'Sign in' at the top right, nothing happens. Even when I connect to my account on Adobe.com via web browser, the application still says 'connect' but doesn't respond when I click on this. Is there a bug in the software that I downloaded? Is there a simple solution?

    Hi dbulsara,

    Please uninstall the current installation of Acrobat DC program using this tool cleaner Download Adobe Reader and Acrobat cleaning - Adobe Labs tool (if you're on Windows OS) like her for the desktop version & reinstall Acrobat Pro DC following the steps in this KB Acrobat DC subscription document. Download and install.

    Let me know how it goes.

    Kind regards
    Nicos

  • HiDPI (x 2) do not export the correct size. Even when I imported the image larger (original)

    This is a picture of 5118 X 1441 resolution and 144.

    From the active panel, I imported as an enlargement of the size

    When I see on Preview in browser, size automatically to a smaller yet. The same thing happens when I export or transfer to the server.

    Another problem is that the images are not vicibles on iPhone 5 s (have the retina display), not even the version 72 pixels.

    I'd appreciate any help.

    Hello

    Check out this article, under the 'export HiDPI images'

    Adobe help Muse | Creating Web sites high resolution

    See if that helps. Let me know if you have any question.

  • The battery charge falls even when it is plugged into the satellite series

    I have a laptop satellite and although it recognizes the power adapter when it is connected and that the icon in the taskbar shows "load", the percentage of the battery charge seems down.

    It is only while the laptop is turned on, because it does not charge the battery when it is turned off.
    I didn't know that he used the power of the battery so that hip, so I'm puzzled by this not only why the battery doesn't seem to be in charge, but also why the battery seems to fall once the laptop doesn't have to use it anyway.

    Any help is appreciated!

    Hello

    I saw this problem on my own laptop in the past. even if the laptop is charging, the battery seems to fall in charge.

    This indicates that the battery life is coming to an end, there are a limited number of cycles of load for a battery before it dies.
    Also when you have the computer is off fresh is always lost at a considerable pace, because the battery is good, "die."

    You can't do anything on this issue except to buy a new replacement battery for your laptop computer to a repair center authorized Toshiba. This should answer your question.

  • Adding printer series HP PSC2100 via the IP Port, type of printer does not show on the list of devices even when you are using the factory supplied driver disk.

    Installation D-Link DP-301U network home of three computers. I am able to access the printers using its IP address, Setup has worked with Vista Ultimate system but two systems of Windows XP Pro (SP3) does not Printer series HP PSC2100 list when you use the 'Disk' during installation radio button. Is there a work around or Microsoft drivers to resolve this error?

    Hello William51,

    Thank you for your message.  Try the following steps to add your printer.
    Click "Start" > select "printers and faxes".
    Click on 'Add printer' > click 'Next' > select ' local printer, and then make sure that detect automatically is disabled
    Select "Create a new Port" and the arrow down to "Standard TCP/IP Port" > click "next".
    Click "next".
    Type the IP address and click on 'Next' > 'Finish '.
    You must then install the driver/software for your device.  You can use "Have Disk", download from website, or find your model.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Why is the battery loses power even when connected to the wall of entry?

    I always use my laptop connected to the wall outlet and the battery loses power no matter why is - this?

    Hello

    Laptops today are designed to switch to the battery and drain a little and
    Re-load. This keeps the successful battery and helps to prolong its useful
    life.

    Both my Toshiba will be the battery once a week and 80% drain
    and then reload. Of course once they have re-charged they workpieces then on
    A/c power.

    If the laptop does not back the the a/c, then there may be a problem with
    the charger, charge the cell phone circuit, or the battery.

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

    The information below is mainly for Windows 7 but it generally applies to both
    Vista and XP. If you have Vista or XP and need more help please ask in the
    Forums Windows answers corresponding to your version of Windows. Also, please provide all
    the information that we need for us help to help you.

    Windows answers forums
    http://answers.Microsoft.com/en-us/Windows

    How to ask a question
    http://support.Microsoft.com/kb/555375

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

    References to Vista also apply to Windows 7.

    Check with support from the manufacturer of their books online and the drivers and their forums system
    (as applicable) for known issues. Some manufacturer issued BIOS and other updates to help the battery
    problems.

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

    Other information that might help:

    Control Panel control - plan change Options - power plans - power - advanced settings
    Parameters for the drainage and the use of parameters (this is how much to use and not how much or how)
    long to load).

    In fact, what causes a lot of wear on a battery empties it too low on several occasions. With today
    systems overload are not a problem.

    Here are some tips to help and troubleshoot battery issues.

    Old battery? Unplug the power to the computer - remove the battery and clean the contacts with a pencil
    eraser (do not use this, if your battery is fine slots - just clean up the edges of the knife which fit in)
    them and be careful). Batteries are old, or it could be a problem with the computer.
    Check with the support of the machine system, and many of them have online forums.

    New Lithium-Ion type battery usually last longer if you do not unload their less than 30%
    However on a laptop that not extend their life a lot. Best is to use the a/c adapter
    When this is possible.

    I use the free version of BatteryBar to monitor my battery. Click on the green button on the
    Yellow box on the right side of the page to download the latest stable version.

    BatteryBar - free version available
    http://osirisdevelopment.com/BatteryBar/index.html

    Another good program

    Vista battery saver - free
    http://www.codeplex.com/vistabattery

    Problems with the lives of its use and the battery of power - Mr Fixit
    http://support.Microsoft.com/GP/windows_battery_power_settings

    You can also check with the manufacturer of system and forums that many use their own
    proprietary software to monitor the battery and they could be known problems with your battery.

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

    Taking care of your laptop battery
    http://Windows.Microsoft.com/en-us/Windows7/taking-care-of-your-laptop-battery

    Battery meter: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/battery-meter-frequently-asked-questions

    Battery saver
    http://Windows.Microsoft.com/en-us/Windows7/conserving-battery-power

    Solutions to common battery problems
    http://Windows.Microsoft.com/en-us/Windows7/solutions-to-common-battery-problems

    What is the precise the battery meter?
    http://Windows.Microsoft.com/en-us/Windows7/how-accurate-is-the-battery-meter

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

    Try this - to make a Restore Point

    How to create a System Restore Point in Windows 7
    http://www.SevenForums.com/tutorials/697-system-restore-point-create.html

    How to do a system restore in Windows 7
    http://www.SevenForums.com/tutorials/700-system-restore.html

    Then Control Panel - Manager of devices - Batteries - Double click on each item - drivers - tab
    Update the drivers (which can do nothing) - then do a right click and UNINSTALL each - RESTART
    who will update the driver stacks.

    Problems with the lives of its use and the battery of power - Mr Fixit
    http://support.Microsoft.com/GP/windows_battery_power_settings

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Svchost.exe causing 100% cpu usage during the update of windows, even when disconnected.

    I recently had to re - install windows xp on a new hard drive for replacement. My version of xp home edition, SP2 OEM installation disc. (This is ith group included IE6)

    Once installed and running, could access windows update.

    Read all the threads associated etc. and installed SP3, disc after downloading microsoft on another pc. Installed after three trys, first two caused various mistakes, but third attempt seems OK!

    I've also updated the IE6 to IE8, as some sites obviously did not work properly with the older browser.

    Now go do the automatic updates, or log for manual updates... BUT!

    During the process, my cpu fan comes on fast and permanently! The CPU usage is showing that 100%, pc slows to crawl, the mouse becomes slow etc.

    This has never happened before on this machine before you reinstall clean, he had already automatically updated to SP3 and went very well, it was some time ago, before the failure of hard drive, and it has never had this problem!

    Only since having to do a cleaning manual update and re - install.

    The culprit seems to be svchost.exe, once it is used by the update, running the cpu at 100% and continues to do so EVEN after stopping the service, until I manually stop with the Task Manager!

    The svchost.exe instance showing a high is use: SYSTEM.

    According to the files of help here, it is a known issue and a fix KB927891 was issued for SP2, but this should NOT be necessary for SP3, and in fact difficulty used to perform anyway under SP3!

    Ideas for a guy to fix?

    I appreciate the support for XP runs out quickly, and after this update of windows will be redundant, but in the meantime it is always useful!

    Also if I turn off the automatic updates, how can I stop this annoying popup warning bubble?... I can't live without updating, but this bubble nag drives you nuts! :)

    OK just a update, now running cool and 100% auto update and manual update... How? I hear you ask...

    Well I had a beer and a reflection and came to the conclusion, it must be 'order' in which I updated the clean installation of XP.

    Origin, I loaded the old OEM disc new hard disk, loaded the drivers etc, then stop at windows update for updated files.

    Who told me my old incompatible browser and suggested an upgrade.

    I downloaded and installed IE8... still no joy, reading the forums comments I downloaded and installed SP3... which SEEMED to work, BUT then all the hassle of cpu to 100% with the automatic update and updated manual on the windows don't update site!

    So I just gritted my teeth, formatted the drive, another OEM of XP Home Edition SP2 installation loaded the drivers, installed a copy saved to SP3 and after restarting, THEN installed a saved copy of IE8 and THEN trotted off the coast to the windows update site... low and behold, it the connection without problem, did a search, and required updates appeared on the screen without delay all 123 of them...! :)

    Did the updates, restarted and everything was fine, updates automatic in market and left the machine, after about 30 minutes appears the yellow shield, and it downloads a couple more update files without problem.

    All this time I followed the via the Task Manager CPU usage and the strange spike waited 100% apartment, it was on average from 5 to 20%!...so a great improvement has this effect, by simply changing the order of the updates installed from the original! SP3 IE before IE8.

    May not work for all have to do a clean install because of the HD failed, but its worked for me, and I am once more a "happy bunny!

    Dave was soon.

  • default values in the new page, picas, even when going to mm in the preferences of the unit

    everytime I open a new document in indesign dialog CC new document shows page measurments picas even thought that I would have changed it and mm in the preferences of the unit. He just comes back again.

    How can I prevent that from happening. I was able to get to workarounds, but its consumption just enough time to do every time I create a new document.

    its really frustrating that I have my job is mainly for printing and I always use mm.

    Change the preferences with no documents open.

    All new documents will have these preferences.

Maybe you are looking for

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

  • Is satellite C660/C660D supported 3D videos?

    Hello admin, I would like to know if my Toshiba Satellite C660/C660D supports 3D video. I played one of the sample video on YouTube and use a simple 3D glasses (I received when free went to the cinema watch 3d movie) but that seems to not work, or wo

  • Start windows live messenger

    When I try to open windows live messenger, I get this message: "the request failed because its side-by-side configuration is incorrect.  See the application event log. "What should I do?

  • Empty windows marketplace games

    Hello having recently reformated my pc, I downloaded GFWM to see no games appear, I have 3 DLC for fable, but none of my games. I looked and looked for a contact that is appropriate, but no one can seem to help me, and frankly most of the people I ca

  • SX10 and TMS 13.2

    Hi all I try to add SX10 endpoint version TC7.1.4.908e4a9 to version 13.2 TMS and get this error message "failed to update field on: EndPoint_VolumeLevel: value cannot be null." ' Parameter name: String. You have an idea about this? Best regards Mesu