Liquid product list tag - {tag_productlist, collection model = 'prodList"=" "}

Hello

I came across this tag on the doc to "allow other liquid objects" as I was trying to find a way to customize the output HTML of products so I can use a provision of the masonry.

I added the code to the General layout:

{tag_productlist, collection = "product list" template =""}

< ul id = 'masonry-container' class = 'row small-block-grid-2 way-block-grid-4 big-block-grid-4' >

{% for item in product - list.items %}

< class li = "product-list-masonry" >

•• content *.

< /li >

{% endfor %}

< /ul >

It works very well as list view, but nothing does when clicking on to the detail view. This tag can be used? How to make the layout of retail product?

I also tried {module_data}, but entered into similar problems.

{module_data resource = 'products' version = 'v3' fields = "id, name, tags, smallImage, largeImage, description, attributes, custom1, custom2, custom3, custom4, isOnSale, canonicalUrl" skip = "0" limit = "100" order = 'id' collection = 'products'}

Pointers appreciated.

Thank you

Paul

Hi Paul,.

You must instead use something like this:

{% if globals.get.ProductID %}

This is the product detail layout

{% else %}
    {% for item in custom-tag.items %}
  • {{item.name}}
  • {%endfor%}
{% endif %}

You must first tell whether you are in the 'broad' view of the product, or on a star catalogue listing its products. Once you know that you can either generate the view of product or products in a loop and build the list.

Hope this helps,

Mihai

Tags: Business Catalyst

Similar Questions

  • Cannot add my laptop to my product list

    I tried several times to add my recent purchase of a Dell laptop to "My product list" on the dell.com site but every time I get the message "MPL Asset returns null and impossible to insert the service tag. Can someone tell me what I am doing wrong?

    Hi Johnsoned,

    Thanks for posting!

    It may take a few weeks to catch up with the Web site service marks.  This does not mean that you do not have a blanket or technicians does not detect your computer, it's just facing information has not been updated yet.  Give him another chance in a few weeks.  Thank you.

    Kind regards
    Robert

  • Catalog cannot be displayed in a table element? Is it possible to do them in a format similar to an unordered products list unordered list?

    Hello to the BC community,

    As indicated above, catalog cannot be displayed in a table element? Is it possible to do them in a format similar to an unordered products list unordered list? Overall, I'm looking to create a sensitive site and I like what the general store looks like, I just want to set the flow of catalogue items as I can with products. List items would be great for a catalog item, but I can't seem to locate it in the documentation that comes with BC. I could be completely missing it and if I did, I'm sorry! Thanks in advance for any help I can get with this topic!

    You just need to change the options of the tags - the Developer Reference
    This is the last parameter of the tag.

  • product list dump

    When you use the dump list tag, I noticed that when you use the unordered instead of tables list you can not say bc how products should be in a row. Is this true or am I missing something?

    Yes, because your in the world of the tables now. There is no of rows or columns in the formats list.

    If you float your elements LI they will go and flow to the width of the container. So what will be the number of elements in the same row.

  • only a fraction of email addresses, I received mail and mail sent to appear I have my list of addresses collected.

    I have thousands of email addresses I've sent and received since then but maybe 50 show place in my list of addresses collected. I want to export my contacts emails, but I can't find the majority of these names and addresses.

    Thank you

    OK figured it. All the contacts that I wanted were on my AOL and Gmail servers. I went into gmail and aol and all the contacts it has exported there in my contacts apple program.

    There are now!

    Thanks for all the help.

  • Cannot search all music as sound files take all songs out each album & listed the entire collection in alphabetical order

    Ive done this research ~ kind: music that I wanted to find ALL my music & move to folder, however its all songs out each album & listed the entire collection alphabetical order! No matter the artist so now all my album folders are empty!

    can anyone help? can it be reversed or cured please!

    I have windows 7 Home Premium

    Hi, no, I have not tried a system restore I did that thing of file of music several months ago & it has since changed my PC

    Thanks for any help!

  • The upgrade from Design Standard CS6 CS6 of Production Premium or Master Collection CS6

    -TL; DR below-

    Hello everyone, I am a bit lost when it comes to upgrading a Creative Suite package.  First of all, it is almost impossible access to what whether Creative Suite related on the Adobe site, as all the links eventually tries to get the user to purchase a subscription to creative cloud instead of a Creative Suite.  This made it difficult to find information on Creative Suites in general and advertise almost impossible to find.

    Web site navigation side, I'll give you a brief summary of what I currently have: I bought a registration key for the Adobe Design Standard Student Edition software package about CS6 two years ago (?) instead of cloud creative because I'd rather have a perpetual license instead of a subscription.  From this point, I took an interest in creating animations in Photoshop using techniques of creating the image by image. However, I would like to acquire the animation programs (specifically After Effects, Flash Professional and Flash Builder) who are part of the Production Premium and Master Collection packages in order to create the best content.

    Where does this leave me: at the beginning, I planned on buying everything just the programs I needed and standalone purchases, but after trying to navigate the site, it was obvious that I would not find what I was looking for, like most, have led to a creative advertising Cloud.  I am not at all interested in creative Cloud subscription system, so this isn't an option for me.  Basically, I need to upgrade my current design Standard CS6 Student Edition to a Production Premium CS6 Student Edition or a Master Collection CS6 Student Edition.  I already had a conversation by chat with Adobe Help system message, but I couldn't hardly representative to understand my request, much less give the answers that I needed.

    What I need to know is: can I upgrade my current design Standard package a Production Premium or Master Collection Student Edition CS6 for less money than any purchase of one of the two packages again?  Where can I do it without being redirected to a page CC?

    TL; DR: Possibility to upgrade Design Standard CS6 CS6 of Production Premium or Master Collection CS6?

    Thank you very much for your help!

    Link to buy the CS6 via phone http://www.adobe.com/products/cs6.html read all the way down

    -by response n ° 6 https://forums.adobe.com/thread/2089792 education CS6 version is no longer available

    -That being said is more upgrade version https://forums.adobe.com/thread/2140965, you pay full price for CS6

  • My purchased 12 Photoshop elements is not in my product list?

    I bought Photoshop elements 12 about 2 years on my iMac. Now I think to buy a desktop computer and install the program on one without paying again for her. So, I went to my product list, but he wasn't there. I have no serial number, and I don't know where to find it.

    I hope you guys can help out me!

    If you purchased a boxed version, try the same serial number of your installation of win. http://helpx.Adobe.com/x-productkb/global/find-serial-number.html

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Buy Acrobat Pro Win ESD through TechSoup XI.  Clicked links and of the steps taken. Problem, he asks us to choose what we want to download, and there are no Acrobat XI Win ESD in the product list. At TechSoup to purchase check. Help?

    Buy Acrobat Pro Win ESD through TechSoup XI.  Clicked links and of the steps taken. Problem, he asks us to choose what we want to download, and there are no Acrobat XI Win ESD in the product list. At TechSoup to purchase check. Help?

    It's... See 11 English Pro (for Windows). Your Dah!

  • Try to change product list css

    I know it's a bit off-topic, i.e. of piracy BC with jQuery... but if you can help... I'm changing the css of product list for the items in the catalog. I put implement jQuery masonry script to achieve a sensitive layout for small products with a removal script and the addition of two classes. The script works very well and I all works perfectly (for example here: http://silverster-***-race.dotsilo.com/air-filters), with the exception where the small product list is displayed in a catalog list under... / parentCatagory/childCategory. Here is an example where the list is displayed vertically rather than the planned masonry style: http://silverster-***-race.dotsilo.com/Gauges/srp-gauges

    It is the default HTML that creates BC (wrapped with my own DIV and ID):

    < div id = "items" >

    < ul class = "productList productSmall" >

    < id = "catProdTd_6742743" li class = "productItem" >

    <! - some content of product here - >

    < /li >

    < id = "catProdTd_6742744" li class = "productItem" >

    <! - some content of product here - >

    < /li >

    < /ul >

    < / div >


    I was able to change classes (from .productItem to .masonry .item) brick with jQuery elsewhere on the site (as an example of air filters and the homepage: Home - Japanese Race supplies).

    The jQuery, I used to change the course successfully was the following:


    $('div#items ul li') .removeClass ('productItem') .addClass ('brick-masonry point'); This script replaces the brick .productItem with .masonry .item class


    My problem seems to be that the secondary catalog (subdirectory) don't know the script. Is this something that escapes me when you work with a subdirectory like this? I look at a work of pure CSS autour, but it's complicated with masonry generation of its own classes too. For any help or suggestion appreciated.


    Thank you. -Simon



    He solved. It's just that the script to remove and add the class had to pass a few other scripts on the page.

  • Is it possible to add thumbnails to display the list of the new model?

    Is it possible to add thumbnails to display the list of the new model?

    Not with the News Module. You have an account that has access to the web apps?

  • dynamic category list link to the product list page does not

    I have a list of dynamic category which is filled from a mySQL database

    <? PHP {? >}

    < li > < a href = "product - list.php? CatID = <? PHP echo $row_Recordset1 ['CatID'];? > "> <?" PHP echo $row_Recordset1 ["productGroupGUID'];? > < /a > < /li >

    <? PHP} while ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));? >

    im not sure if the aboive is correct?

    I need to link to the product page and just show all products in this category

    list of php code is

    $var1_Recordset1 = "-1";

    If (isset($_GET['CatID'])) {}

    $var1_Recordset1 = $_GET ['CatID'];

    }

    @mysql_select_db ($database_lotties, $lotties);

    $query_Recordset1 = sprintf ("" SELECT * FROM lottieProducts, lottieCat WHERE lottieCat.CatID = lottieProducts.CatID AND lottieCat.CatID = %s ", GetSQLValueString ($var1_Recordset1,"int")");

    $Recordset1 = mysql_query ($query_Recordset1, $lotties) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($Recordset1);

    Thanks in advance

    He made

    $varCat_rsProductData = '0 '.

    If (isset($_GET["cat"])) {}

    $varCat_rsProductData = $_GET ["cat"];

    }

    @mysql_select_db ($database_lotties, $lotties);

    $query_rsProductData = sprintf ("" SELECT * FROM lottieProducts WHERE lottieProducts.CatID = %s ", GetSQLValueString ($varCat_rsProductData,"int")");

    $rsProductData = mysql_query ($query_rsProductData, $lotties) or die (mysql_error ());

    $row_rsProductData = mysql_fetch_assoc ($rsProductData);

    $totalRows_rsProductData = mysql_num_rows ($rsProductData);

    link to the chat list

    ">

  • provision of customized product list

    When you use tag_productlist is it possible to put a layout other than tables or lists (without using javascript)?

    As I am using bootstrap, and these two standard layouts do not fit very well.

    If this is not possible with tag_productlist, is there another way I can a list of output products and I always paging?  With the help of liquid would be great.

    Not for the moment and not really tag with liquid.

    100%, you can add additional code on the list to work with sites based bootstrap with little effort.

  • Product Information from Toshiba tool model number is "invalid".

    Just received alert Tempro about upgrading Windows 10 (currently on Windows 7)
    It will list all products which could be upgraded to Windows 10
    It seems to do that no list for my Satellite C855-1J0
    I used the Toshiba product information tool that returns information identical to that on the plate on the base of the machine.
    On which type in the update of Windows 10 box, she's back in is not a valid model number.

    The machine was bought in a shop chain throughout the country, so there is no reason to doubt of authenticity.

    Is the info on the specific plate?
    If so, then why not identified by the compatibility of Windows 10 list?
    Is it right for the upgrade?
    I have already registered on the Microsoft website "get Windows 10'.

    Toshiba take in charge that the nine models of laptops for Windows 10. For them, less than two years older laptops models are 'old' models? They don't even support Windows 8.1 laptop models for Windows 10, not to mention these models like yours with Windows 7 installed.

    Who cares what you said Microsoft, if Toshiba does support your drivers for Windows 10 laptop model because they like to have small extra margin on your model, it is not good to install Windows 10 no mater what Microsoft compatibility app tells you. Next time buy those brands that will support new drivers for laptop, more than three years, not those who, like Toshiba, who support only nine drivers with new laptop models.

  • Liquid liquid inside another tag tag

    Hi guys

    My problem is simple relative, and I'm sure that I'm doing a lot more complicated than it is.

    I want to use the Gallery integrated module for customers who want to just upload images to the server and do as little work as possible in the admin.

    The first thing I need is a preview of the gallery. I did it like this:

    {module_data resource = "photo galleries" version = "v3" fields = skip "id, photoGalleryName" = "0" limit = "500" order = 'id' = 'photo galleries' collection}

    {% for section in photoGalleries.items %}

    < a href = "/ galleriV2? name = {{item.photoGalleryName}} and {{item.id}} = album" > Ga til galleri {{item.photoGalleryName}} < /a >

    < br / > < br / >

    {% endfor}

    It gives me a list of galleries, and I put the ID in the link, so I can display the correct images on the gallery page.

    On this page I do:

    {module_photogallery id = "{{globals.get.album}}" template = "" = "photoGalleryV2" = '500' resultsPerPage collection}

    {% for section in photoGalleryV2.items %}

    < class li = 'projects of grid-point-image in format' >

    < div class = 'grid-point-interiors' >

    < a href = "{{item.link}} ' class = 'media-box' >"

    < img src = "{{item.link}}? Action = thumbnail & width = 260 & algorithm = fill_proportional"alt =" ">

    < span class = "Gallery-cat" > {{item.description}} </span >

    < /a >

    < / div >

    < /li >

    {% endfor}

    Everything works perfectly and I was very satisfied with the result, but then I thought do just one thing and add a picture in the gallery above the link to the gallery in the view all page, so I wanted to do something like that.

    {% for section in photoGalleries.items %}

    {module_photogallery id = "{{item.id}}" template = "" collection = "{{item.id}} photoCollection" resultsPerPage = "1" "}

    {% capture imagePath %} {{item.id}} {% endcapture-%}

    < img src = "{{.some .link [0] photoCollection ['imagePath']}}" >

    < img src = "{{photoCollection ['item.id'] .items [0] .link}}" >

    < a href = "/ galleriV2? name = {{item.photoGalleryName}} and {{item.id}} = album" > Ga til galleri {{item.photoGalleryName}} < /a > < br / > < br / >

    {% endfor}

    I scored things I've tried, and I know I make a lot of calls to the photo gallery module, so if there is a simpler solution that would be great, because I'm not sure it's possible. I discovered that something like this {{photoCollection ['imagePath'] .some [0] .link}} with the media should be possible in e.g. shopify, but it doesn't seem to work in British Colombia.

    So to sum everything up, lets say there are 3 galleris, I want to call the module_photogallery and make 3 different collections (this works) and target them thereafter.

    The problem is I can get liquid to produce the "correct" text but it doesn't recognize it as liquid because braces are "missing" and I can't do "double" in square brackets. (Hope that makes sense).

    I initially just thought I could do something in the sense of: braces inside braces, {{.some [0] of .link photoCollection {{imagePath}}} but do not work.}

    I hope that the explanation of the problem is understandable

    Tips are greatly appreciated

    Hello

    Try to avoid of {% capture %} as often as possible, using {assign % if you can.}}

    {capture imagePath %} {{item.id}} {% endcapture}

    should be

    {% assign imagePath = item.id-%}

    Explore the following a little more...

    {% for section in photoGalleries.items %}

    {module_photogallery id = "{{item.id}}" template = "" collection = "{{item.id}} photoCollection" resultsPerPage = "1" "}

    {capture imagePath %} {{item.id}} {% endcapture}

    GA til galleri {{item.photoGalleryName}}

    {% endfor}

    Try this

    {% for item in photoGalleries.items %}    {module_photogallery id="{{item.id}}" template="" collection="photoCollection" resultsPerPage="1"}    {% assign imagePath = photoCollection.items[0].imagePath -%} // is it called imagePath in galleries?
    
        
    
        Gå til {{item.photoGalleryName}} galleri

    {% endfor -%}

Maybe you are looking for

  • Transfer music to new IOS / ITunes install via iPhone?

    How can I transfer all my music, photos etc. of my phone and my iPad for the new ITunes without losing their? Free programs or advice? Thank you

  • How to I used my apple id with all the information

    Dear admin, I have no bank account and I want to download in the AppStore, but I'm only 20 year old, and I do not use family shares are at - it another way to use apple store id

  • iPad Pro charging problem...

    .. even a problem after 2 iOS updates? This is ridiculous - should return, if not fixed soon.

  • HP TouchSmart Desktop PC eSATA connection 300-1020?

    I have a HP 300-1020 Desktop TouchSmart.  I'm trying to connect a Thermaltake BlacX 2.5 "" / 3.5 "SATA HDD, eSATA & USB docking Station."  It came with two cables: USB and eSATA.  The {very detailed not} statements have two cables being connected to

  • BSOD on startup - c000021a

    I've recently updated my Norton AntiVirus 2011. My sytem automatically restarted and when it comes out of the Windows XP loading screen at startup it gives me a blue screen with error code of c000021a. I tried to restart with 'last known configuratio