Liquid {module_cataloguelistdump} - render items to remove ul

Hi
I think this is a classic benefit of using Liquid to control what's rendered, but I can't get it working. I basically need to remove the <ul></ul> tags and render just the <li> items using a custom template.
The module ref is:
{module_cataloguelistdump catalogId="30061" render=“item” collection=“catalog-list” template=“/custom-templates/menu-item.tpl”}
And the template is:
<li><a href="{{url}}">{{name}}</a></li>
Any pointers appreciated, and definitely havern't got my head round Liquid yet.
Cheers
Paul

Thanks for the pointers Liam....I have it working now, to share the solution:
{module_cataloguelistdump catalogId="30061" collection="catalog-list" template=""}
{% for item in catalog-list.items %}
<li><a href="{{item.url}}">{{item.name}}</a></li>
{%endfor%}
Cheers

Similar Messages

  • Unable to cancel - open purchase order where all items are removed

    Hi all,
    When We try to cancel/close open purchase order where all items are removed from item master ?
    It showing error message,
    "No matching records found  'Items' (OITM) "
    Purcahse order was created on may-2007.
    As purchase order showing in open item list.
    Any solution for this problem ?
    Jeyakanthan

    SAP does allow items to be removed from the item master with open documents, but only if the documents have not created journals.
    It does create headaches though, and this situation is one of them.
    If there are not many items, I suggest you recreate the items, close the PO and just cancel the items rather than remove them.
    The other workaround is to change the items on the PO to something different that is in the item master, then close it.

  • Dynamically render items

    Is there a way I can dynamically render items on a page?
    I have a table with item names, types (radio, checkbox, etc), default values and labels. I want to be able to just add rows to this table and have them show up just as if I had manually added the items using the App Builder. After Submit procesing for the page should be able to access the values of the items just as "easily"
    Thanks

    Hi, <BR><BR>
    Ok, I've created a plsql region as follows to dynamically build my form:<BR><BR>
    DECLARE<BR>
    --Cursor to pull out all active records from RES_DLV_CONSERVATION table<BR>
    cursor c_records is <BR>
    select CON_ID, CON_SCHEME <BR>
    from RES_DLV_CONSERVATION <BR>
    where CON_ACTIVE = 1;<BR>
    --Variables to hold the records from the cursor<BR>
    v_id number;<BR>
    v_record varchar2(4000);<BR><BR>
    BEGIN<BR><BR>
    --Open a table to hold the manually created Accreditation form<BR>
    htp.p('<table>');<BR><BR>
    --open cursor and loop through records populating variables<BR>
    open c_records;<BR>
    loop<BR>
    fetch c_records into v_id, v_record;<BR>
    exit when c_records%notfound;<BR><BR>
    <i>--Build a form dynamically using the variables. <BR>
    --Use the record id to create the names of the form items<BR>
    --so they can be referenced later. <BR>
    --('chk_' prefix for checkboxes, 'inp_' prefix for text)</i><BR><BR>
    htp.p('<tr><BR>
    <td><font class="label_def">'||v_record||' </font></td><BR>
    <td><input type="checkbox" name="chk_'||v_id||'"></input> </td><BR>
    <td><font class="label_def">Names of Accredited Staff</font></td><BR>
    <td><input type="text" name="inp_'||v_id||'" style="width:300"></input><BR>
    Seperate each name with a comma (,)</td><tr>');<BR>
    end loop;<BR>
    close c_records;<BR><BR>
    --Close table<BR>
    htp.p('</table>');<BR><BR>
    END;<BR><BR>
    I've named each of by items using the record id. <BR>
    I now have to create an insert function to populate my table from the form<BR>
    How do I then reference these items manually to insert the values into my table.<BR><BR>
    Cheers<BR>
    Yog

  • Liquid: Sort Webapp items by custom date

    I would like to be able to sort a list of web app items by a custom date. It is a list of events that have dates associated with them. They all get released on the same day, but they have unique event dates to each of them for when the event actually happens.
    This is what I have so far:
    {module_webapps render="collection" filter="classified" collection="warroadEvents" id="17654" itemId="122469" hideEmptyMessage="true" sortType="datereverse" template=""}
    {% for event in warroadEvents.items %}
         {% assign todaysDate = globals.site.dateNow | date %}
         {% assign eventDate = event.['Event Date'] %}
         {% assign dateOrder = todaysDate | minus: myDate %}
         <div class="col-xxs buffer event-callout">
             <a href="{{event.url}}"><img src="{{event.['banner image']}}?Action=thumbnail&Width=825&Height=275" alt="{{event.name}}" class="img-responsive"></a>
             <a href="{{event.['e-split url']}}" target="_blank" class="ticket float-right" style="margin-top: 1.5em;">
                 <img src="/_images/layout/buy tickets com.PNG" alt="" class="ticketimage">
             </a>
             <h2>{{event.name}}</h2>
             <p><strong>{{event.['Event Date'] | date:"dddd"}}, {{event.['Event Date'] | date:"MMMM d"}}: {{event.['Start Time']}}</strong></p>
             <h4><a href="{{event.url}}">View More Details</a></h4>
        </div>
    {% endfor %}
    I have created 3 variables. One that stores today's date, another that stores the event date from the web app item, and a third that subtracts the two to find the difference. I think I am part of the way there. I am not sure how to re-sort my for loop so that the date that is coming up soonest shows up first and so on.

    Custom filter solutions are one of the big limitations with this stuff at the moment.
    Basically you cant.
    While you could wrap the items in an if..... And do date matching and comparing and not show them etc you will not be able to sort or order them based on that.
    And with anything you do you can only do it in a scope of a total of 500 items or per pagination page. Per pagination page stuff creates an issue where it will show say 24 per page and lets say 3 on each page do not match you get 24 render pagination still but 21 shown on a page. It creates some funky results a bit.
    I have been going on about this for a while now and that we need some core changes to Liquid to make it a bit more viable in the scope of how BC spits out data. For now though you cant do what your doing really.

  • Noted item balance remove

    Dear SAP Consultants
    I have created Vendor (F-57) & Customer (F-49) noted item but i want remove or delete that balance.
    So plz give me solution.
    Good answer very good points will assign.
    Thanks
    Girish

    Hello Girish,
    F-49 will create noted item, but it doesnt show any balance in books of accounts. You can use F-39 and clear it.
    Down payment request is considered as noted item, for example. This is one sided posting. No effect in GL balances. This is just for keeping track of requests from business partners.
    Thanks
    Para

  • Render items prior to a main render

    Hey sorry but couldn't think of a better way to title this.  First off thanks for all your help in the past.  I am slowly learning but you guys have always given me good direction and great advise.
    I was wondering what do you do in the case of using items created in AE within another AE project?
    I created an animation which will be placed multiple times on a ribbon sized project.  I notice that all of my renders of the ribbon always hangs up around the same frames.
    What are best practices when using projects within projects?
    thanks again for your help.

    Would you use one asset file and resize in the composition or would you make a second asset file already resize and then use that on a composition.   Example would be a logo splash initially created at 1080 but is needed now for a lo-res reason. 
    I presume you're talking about creating a Standard-Definition version, using High-Definition footage.  Don't worry about a render time hit with that workflow -- it's fine.
    Now, If you were using 4K footage in an SD comp over and over again, doing such a thing might be helpful.  Downscaling is more for things like a 20,000 x 20,000 still in an SD comp, and you have no plans to use the Ken-Burns-style zoom-in treatment.  It's helpful in that instance.

  • How to remove the menu items when remove Add-On

    I have built an SAP B1 add-on. Now when I remove the add-on the exe is still running as a process and the menu items are not removed. How do I take care of them

    hi.
    I am using below code... for killing the exe at process
    but i am not understood menu items.
    what type of menu items..
    once close the b1 where is menu items..
    can u plz explain..
      Private Sub app_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles objApplication.AppEvent
            Try
                Select Case EventType
                    Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
                        objApplication.MessageBox("A Shut Down Event has been caught" & _
                            Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")
                        '// terminating the Add On
                        ' oApplication.SetMessage("SAP Business One is Shutting down..", SAPbouiCOM.BoStatusBarMessageType.smt_Warning)
                        System.Windows.Forms.Application.Exit()
                    Case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged
                        objApplication.MessageBox("A Shut Down Event has been caught" & _
                            Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")
                        'oApplication.SetMessage("Company has been changed.", SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                        System.Windows.Forms.Application.Exit()
                    Case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition
                        objApplication.MessageBox("A Shut Down Event has been caught" & _
                            Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")
                        'oApplication.SetMessage("All Add-on are Shutting down..", SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                        System.Windows.Forms.Application.Exit()
                    Case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged
                        objApplication.MessageBox("A Shut Down Event has been caught" & _
                           Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")
                        ' oApplication.SetMessage("System Language has been changed.", SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                        'Case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged, SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged, SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition, SAPbouiCOM.BoAppEventTypes.aet_ShutDown
                        '    System.Windows.Forms.Application.Exit()
                End Select
            Catch ex As Exception
                'oApplication.StatusBar.SetText(ex.Message)
            Finally
            End Try

  • Items manually removed from history still shows up in Awesome Bar (but without favicon)

    Even if I delete all History items related to a certain search term (for example: "aftonbladet"), the Awesome Bar still remembers it. I don't have any bookmarks with that search term.
    Items in the item bar that sticks like this, even if I remove any history related to them, have no favicon.

    First I tried to repair the database with the Places-Maintenance addon. Didn't work.
    Then I quit firefox and removed any places sql files from my profile folder and moved them to my desktop. I then started Firefox again. Naturally, all my history was gone (no biggie) but the problem persist. Even if I visit a bunch of websites, then manually clear all the items from my Browser history (such as pressing Ctrl A then Delete), many of the websites still show up in the Awesome Bar. None of those websites are bookmarked and my Browser history has been manually emtpied.

  • TS4002 Messages older than 30 days in inbox are not moved to deleted items when removed.

    I've had a few messages that were stored in my inbox and were older than 30 days. I've noticed that when I actually delete them they aren't moved to Deleted Items (and sat for 30 days before permanently deleted). It seems that the actual date of the email is being used to calculate the age and not the time it sits in deleted items.

    If deleted email isn't being moved to the trash you might want to go to icloud.com from your computer, open mail, click on the gear-shaped icon on the top right and choose preferences, then confirm on the General tab that you have checked "Move deleted messages to" and selected "Tash" from the drop-down list.

  • Item Class removed during import of EEX

    I have amended the SQL for a custom folder and this custom folder has one item class and is joined to two other folders. In my export I have included the BA, the three folders and the item class. When I import this EEX to a support environment the item class is deleted. If then import the EEX a second time the item class is recreated.
    Has anyone seen this behaviour before? Is there any way to resolve/prevent this? I don't believe the export strategy is at fault as I have migrated 100's of objects in this manner. What is most strange is that the item class clearly exists in the EEX as it is creating it on the second import.
    I am using the Refresh object: preserve display related properties option and objects are being matched by identifier. These are the standard choices for all our migrations.
    Thanks,
    Nic

    Hello Nic
    I frequently need to import EEX files a second time and do it regularly. This is because of a round-robin scenario where item classes are shared between folders. So if folder A is imported before folder B and the item class is driven from folder B it will not be attached to the items in folder A. If I now do the import a second time then because the item class already exists when folder A is iimported the system sees that the LOV is there and hooks it back in.
    Hope this behind the scenes explanation and Rod's previous posting help.
    Best wishes
    Michael

  • When creating a custom control, why is the picture item option removed?

    I customized a system boolean to add images for each of the 6 states (including mouse hover) by selecting the picture item from the list and importing the image from a .png file.  After resizing the control, I replaced each of the images with a new one in the corrected size.  After replacing the sixth image, the control now always shows it's highlighted version and the Picture Item entry in the run-time menu has vanished.  How do I restore the control's behavior to enable all six images?
    Attached is the affected .ctl file:
    Edit:  I'm working in Labview 8.6.1f1.
    Solved!
    Go to Solution.
    Attachments:
    Button.ctl ‏20 KB

    It seems like the last image that you pasted went into the Boolean Text layer.  Since this layer seems like it can hold only one image, the picture item menu doesn't exist, and all of your attempts to right-click on the button were right-clicking on the boolean text.  Switching to Customize mode allowed me to move the Boolean Text layer away from the button and then I could see that the various picture items were still intact.

  • Icons (camera, ipod) stay on desktop even after item is removed

    This may be a very basic Apple proble, as I am fairly new to the Apple world and this is the first time this has happened.
    When I last plugged my digital camera in to download pictures, the folder "No Name" appeared, but after removing the camera, the icon has stayed on my desktop and I can't get rid of it.
    Also, I have plugged my wife's iShuffle in 3 times doing stuff, so now there are 3 "iPod" folder icons on the desktop as well... one for every time I plugged it in.
    I have used these in the past without this problem. I may have unplugged them without using the "eject" feature first, if that helps any. Any ideas?

    I may have unplugged them without using the "eject" feature first,
    if that helps any.
    It does help.
    Before unplugging/disconnecting a digital camera or an iPod from the computer, you need to eject the mounted drive first - no different as required before disconnecting an external hard drive from your Mac. If you don't, you should receive a warning message indicating damage can (or may have been) caused to the disconnected drive.
    If you have done so, this is not an Apple problem but a user error problem.
    Without the camera or iPod connected to the computer, have you tried a computer restart?

  • Render items but not report?

    I want the code that creates values for items on a page to run but not the actual report on the page until a button is pushed. How can I do that?

    Hello,
    Please consider changing your handle to something more friendly then user… It’s easier to track your threads that way.
    >> … but not the actual report on the page until a button is pushed
    You can condition your report region by the REQUEST value. On your button branch, you have an option to set the REQUEST value. In case of buttons, the request value is usually the button name (and NOT the button label).
    The request value is automatically reset when you are branching to a new page (including self branch) unless you specifically set its value on the branch definitions. If the report region will be conditioned by the REQUEST value, it will run only after the specific button will be pressed.
    Regards,
    Arie.

  • BAD: Outlook Calendar items are removed as they occur!

    I canceled my ME.COM account because it didn't work at all. The syncing affected my calendar and it looks like it tweaked something in iTunes.
    When I sync - it looks like iTunes decides to remove events from my calendar in Outlook 2007. This is *TOTALLY UNNACEPTIBLE*! If I sync several times a day (which I do) - my calendar entries that have passed dissapear!
    THIS WILL NEVER WORK for business. I am very dissapointed in the way iTunes works - I can't remove apps etc.
    This will drive me back to a blackberry if I am not able to get support from Apple. I hope they are listening.
    I need to sync bi-directionally and trust that the middleware won't destroy my data! This is not the case - I can no longer trust that ANYTHING coming from the iPhone will not destroy my Outlook calendar!
    Perhaps this is how Apple wants to ensure I switch to a Mac! Sorry for the rant - but I have tried unsuccessfully to get ANY support...

    Haven't seen this exact issue, but as part of a "best practices" document we prepared for users, we've told them NOT to update or accept appointments from any mobile device ( including IOS devices), just to do it from the Outlook client.  Microsoft has also published a couple of best practices documents which you should look at if you haven't.  Also, recurring meetings are a huge issue; for example, the MS best practices is only to create recurring appointments that won't change much, if at all...if there is a recurring meeting that changes frequently, it's better to schedule multiple individual instances of it than one recurring appointment. 

  • Indesign question: Master page items I remove won't stay gone

    I'm working on laying out a book, with various chapters which are separate files. Naturally there's a master page with various guides I use a lot, as well as a fairly standard running header with page numbers and chapter and section names. As is standard practise, I want these to appear on nearly every page, but not on the first pages of chapters. (There are other times I might want to override this, but that's the main one.) So, I Ctrl-Shift-click and delete them when I set up a new chapter.
    Problem is, they don't stay gone. Every so often, I open up a previous chapter and find that these elements are back on the first page of that chapter, and I delete them again. I've only been noticing this since I made the chapters in question into a book file so I could keep an eye on my page count and synch up styles more easily.
    My best guess is that maybe it has something to do with the aforementioned synching. I do want those chapters to share the same master page(s) but do not want IDto keep reapplying elements from them to individual pages that I've already manually removed them from (sometimes more than once). How can I prevent this from happening? (Or alternatively, if this isn't the cause of the problem, what else could it be and how do I deal with that?)

    Fair enough. Guess that's just as easy, if not slightly easier, than what I've been doing, and so far it seems to be working.

Maybe you are looking for