Liquid photogallery

Hi All
Just trying to get my head around Liquid in particular for the module_photogallery.
I wanted to create a better photo gallery than the current one in BC. One where i can create a custom layout instead of relying on the default table gallery view inside BC.
Using the following as my reference - Developer reference
So I have created a page with the following module with a collection -
{module_photogallery id="32587" render="collection" collection="photogallerys" }
On the same page if I write the following liquid code:
{% for item in photogallerys.items %}
        <img src="{{item.thumbnaillink}}">
{% endfor %}
This was working how i intended it to (i know that it only targets one photogallery at a time)
Now I was thinking that what I could do is add a reference to a custom template like so: template="/Templates/custom/photo_gallery.tpl" . Now add the Liquid For item loop to that template.
So the photo gallery page would look like this
       {module_photogallery id="32587" render="collection" collection="photogallerys"  template="/Templates/custom/photo_gallery.tpl"}
The photo_gallery.tpl template file would look like this:
{% for item in photogallerys.items %}
        <img src="{{item.thumbnaillink}}">
{% endfor %}
When running this page nothing gets rendered to the screen.
I can make it render the photogallery items if I add  {module_photogallery id="32587"} to the template file.
Am i missing something in how to gain access to the liquid tags inside a module? Is this not possible currently in BC?

<!-- Liquid Enable Collection -->
{% for item in items %}
        <img src="{{item.thumbnaillink}}">
{% endfor %}
Don't forget that comment at the top, ie <!-- Liquid Enable Collection -->
This above was only a temporary solution - Surprised it still works but it wont at some point soon. The above is basically not the correct method.
{module_photogallery id="32587" render="collection"  template="/Templates/custom/photo_gallery.tpl"}
{% for item in this.items %}
        <img src="{{item.thumbnaillink}}">
{% endfor %}
The above is the correct implementation.
Clients SHOULD NEVER be doing any coding or template insertion of any sort - IF that happens or any one of my dev team implements that at Pretty they will be shot!
Code is for the developers, developers build solutions for clients to manage their site and content, not code it.
And what you said - BC have already did this.
You already have render="item/collection" in the module and collection="" for inline and custom template and template suppression with template="" - Good implementation and one you guys should use. BC wont be doing comments and any of the old implementations will get cleaned out.

Similar Messages

  • Photogallery for responsive website

    This is a question I'm starting to hear more often from my clients: "Why does the photogallery not look right on my smartphone?"
    I know that the module uses tables and the basic CSS is not set up for responsive layouts. However, when I opened the modulestylesheets.css file in Dreamweaver CC, there were only two items in the photogallery section of the CSS. I cannot see how to modify the photogallery td's in the css to allow them to function properly in my responsive template.
    Any pointers would be greatly appreciated!
    Also, if Adobe could look into this, it seems appropriate given the direction web is headed! It would be great if all modules were designed to function appropriately within a responsive template.
    Thanks in advance!

    Hi there,
    Table elements are table elements, you can convert them to block level elements that can be responsive.
    Responsive tables in BC
    Further to this BC.Next and liquid you can run the module as a collection and completely build a gallery exactly how you want.

  • I have a macbook air bought in 2010 wit liquid damage that might has affected the SSD card. I need to get my data but apple won't help. Authorized dealers never seem to have the same model to try whether the SSD card works. How can I get my data quickly?

    Hi
    I have a macbook air bought in 2010. It has liquid damage that might or might not affected the SSD card. I need the data on my SSD card for work and I need it urgently. Apparently Apple won't get the data out, even if I have apple care... Licensed apple dealers need to have the same macbook air model so they can insert the SSD card and check whether the data is there, and they never seem to have one...
    I'm really disappointed with apple. It's been two weeks and I haven't been able to find out whether the SSD card is holding my data. It can't take that long to do it in store... How can they sell a product and then wash their hands on the matter?
    Anyway, enough with the apple rant. I need to get this data urgently so I need to find out how I can get it out of the card. The SSD card and data might be fine so I don't want to take it to a data recovery centre and get charged loads.
    Thanks for your help.
    Olatz

    See this link for a 4870 card, best instructs for flashing for a noob like me. (last lowest price was $150 for a 1GB vRAM 4870 from TigerDirect).
    http://web.me.com/jacobcroft/4870Flash/4870Flash.html
    However, not every 4870 card will work with the ROM currently floating around out there. BEWARE!
    Link to recovering a bricked card:
    http://forums.techpowerup.com/showthread.php?t=64328

  • Please help - Trying to create a realistic liquid morphing

    Hello
    I’m fairly new to Flash and vector art but have a
    project to create a Flash based flowchart that is made up of liquid
    blobs that morph to show the various paths to the chart.
    I’ve had a go making the blobs in flash but when l go
    to animate them, it all looks a bit rubbish - see:
    http://www.mintmedia.co.uk/example2.html
    Could anyone suggest a better way of attempting to do this
    animation....
    Thanks in advance
    Rich

    Is there no way to create an appcontroller that works like an applescript? Or get an applescript to be recognized so a new NSButton added to the Bookmark bar be activated?
    i.e.
    *tell application "System Events"*
    * tell application "Safari" to activate*
    * keystroke "n" using {command down}*
    * delay 0.1*
    * keystroke "l" using {command down, shift down}*
    *end tell*
    Or,
    _Something Like:_
    / AppController /
    *#import <Cocoa/Cocoa.h>*
    *@interface AppController : NSObject*
    *IBOutlet id NSButton;*
    *-(IBAction) autoFill:,delay 0.1,checkSpelling:(id)sender*
    @end
    I really don't know if that AppController looks anything like it should or if it's even close.

  • Is it possible to include a Lightroom web-photogallery in Dreamweafer and how to do it?

    Lightroom 4.4, Dreamweaver 6
    Eine frühere Diskussion im März zu einer ähnlichen Frage hat mir nicht weiter geholfen.

    Hi Preran, Hi Nancy,
    Many thanks again, but your suggestions don´t hit my problem.
    Some Details are needed: I created my Dreamweaver-homepage (www.natur-momente.de) including a photogallery, to select and show photographs by navigation. Disadvantage of the included photogallery: it is very time-consuming to import new photographs and series of photographs. So I need to replace only the current photogallery.
    Dreamweaver structure:
    <div.................>
    {photogallery}
    </div>
    I found no way to fit in the very elegant and comfortable-to-use Lightroom Web-Photogallery.
    Reiner

  • Faulty/stuck power button again! Who was the genius that located the ear-jack hole with the "Liquid Contact Indicator" at the top of the iPhone, so perspiration can accumulate and void the warranty

    My Power button is stuck again...... like many, many other owners....like two of my previous iPhones.  According to the Genius at the Genius Bar in Reno, Nv., my warranty is void because the LCI which is located in the ear-jack hole on the top, has come in contact with moisture/humidity/sweat.  My iPhone has never been dropped or wet. My iPhone4s is in pristine conditon and is in great working order except for the "stuck" power button, but because of a poor quality and location of the ear-jack hole, my warranty has been voided. Everything I have is Apple.  The Rep/Genius in Reno while fullly aware on the chronic power button problems, tried to put the stuck button on  an exposure to moisture. He said, "It doesn't matter if mositure didn't cause the button to stick or not. Your warranty voided because of the Liquid Contact Indicated turned color. Of course, the "power/sync" hole LCI is perfect.  Thank you Apple! I think I'll refuse my iPhone5 delivery on Friday and go buy a "Droid" phone.
    Hey, who out there wants to buy my new iPhone5 when it gets to me on Friday???

    Thanks for your reply. I too would not rule out moisture damaging the power button, but ...
    I guess was being too subtle. My points are:
    1. "Stuck" power buttons is a known issue/problem and Apple has been dealing with it since the first iPhone. This is quality problem. The evidence is with other users all around us and all over the web.
    2. The "sweat" issue is a design problem and should've been addressed long before the release of the iPhone5 in a few days.  Yes, they moved iPhone5's  headphone-jack to the bottom/underneath of the iPhone. To say that the "sweat" issue is the users' fault is like saying, Apple iPhones should only be sold to swine or other mammals without sweat glands. We're talking about as little as one drop from someone's temple running down the headphone-jack opening while one is engadged with a phone call.  That's all it takes to change the color of the LCI.
    3. Also I wanted to make my complaint public on this forum and not Facebook,  hoping to both, not only catch the eye of an Apple lurker, but let others know of the danger of speaking on their iPhones while out in the sun, high humidity or driving a car with the top down....... my point being, even the free AT&T Go Phones have protection against the slightest elements.
    4. I paid close to $700 for this iPhone4s 64G less than a year ago.  I don't like being dismissed with a cut and dry, cookie-cutter answer from a 20yr old without reasonable explanation and then be shoo'd out the door. "Next?"
    5. I love Apple products and I'm glad the new release has addressed the jack/perspiration problem although I know there were other factors involved in the decisions to not move/move it.

  • How long does corrosion take to appear from contact with liquid?

    I have had problems with o2 about my iphone since december 2010! i got a refubished iphone from o2 in october but by december i started having troubles charging it so sent it back to them for a fix. I was contacted by them saying i would have to pay £129 for my phone to be repaired as it was corroeded in the docking area? i had this iphone from about the 16th oct 2010 until the 3rd dec 2010 would corrosion have become apparent in this time (just over a month!) i had the iphone? I know that while i have had the iphone it has never ever been in contact with any liquids.
    Be very greatful for any help or advice as i feel like im fighting a losing battle here!

    You can try this, don't think there are any Radio Shacks in Europe, but someplace should sell the same thing.
    Radio Shack Precision Electronics Cleaner, contains Isohexane, Difluoroethane & Ethanol.  This type of cleaner eliminates any corrosion, evaporates, and provides a layer of protection. Good luck.

  • Purchase order on Liquidity forecast

    Hi all,
    Today we have integrated the configuration of the the liquidity forecast by sales orders and open items accounting, but it does not consider the purchase orders. Does anyone know how could I configure it in order to consider the purchase orders?
    Thank you in advance
    Regards.

    Hi,
    I have a problem that none of the PO amount is reflected on cash liquidation, the report only retrieves balances of PO which have been converted to invoice through MIRO.
    I found that the configuration is complete, planning group has been assigned to vendor master data. Do you have any idea how planning level in Cash Management connects to Material Management/Vendor?
    Or is there something missing that I can't get balance of PO in cash liquidation report?
    Thanks a lot

  • Liquid data type updates

    Hi everyone,
    With the next release (to go out on Monday) we're adding proper date format support in liquid for all modules. Besides all the improvements and additions made available with this release, one important note, which requires you to do some updates after the release, is that we're breaking backwards compatibility for liquid date tags by outputting the dates in ISO 8601 format ("yyyy-MM-ddTHH:mm:ss") instead of current format(“yyyy-MM-dd”).
    Here is a brief overview of the changes:
    All module fields which represent date or date times are now passed to Liquid as date time objects (previously they were passed as strings). This brings the following benefits:
    Comparison between date time objects works correctly
    It is possible to compute the difference between two date time objects using the minus filter. Example: {% assign dateDiff = Globals.Site.DateNow| minus: myDate %}
    We added the means for obtaining the current date time: Globals.site.dateNow. The returned date is in the site’s time zone.
    By default, when no filter is applied, all date variables will be output in the following ISO 8601 format: “yyyy-MM-ddTHH:mm:ss”. For example {{ myDate }} would output something similar to: “2014-12-12T07:19:49”. (Note: this is a backwards compatibility breaking change, as previously we outputted dates using the following format: “yyyy-MM-dd”. The breaking change only affects Liquid tags). Following the release, you should update your sites using the provided date filters to format the dates as you need.
    The output of date time variables can be formatted using the following filters:
    date (with no parameters)– displays a nice to read string representing just the date part from the date time variable. The date is formatted in the site’s culture. This compatible with the way older BC tags display dates. For example {{ myDate | date }}, in the English US culture will output a string similar to: “12-Dec-2014”.
    datetime (new filter) – displays a nice to read string of the date time variable using the site’s culture. This compatible with the way older BC tags display date time. For example {{ myDate | datetime }}, in the English US culture will output a string similar to: “12-Dec-2014”.
    date “format” (existing filter, nothing updated, mentioned here just for consistency) – displays the date in the site’s culture using a format specified by the format variable. The list with the available formats is available here: http://msdn.microsoft.com/en-us/library/8kb3ddd4%28v=vs.110%29.aspx. Note that the date filter can also be used to format objects that result as a difference between two date time objects, however, in this case the format string will respect a different set of rules as defined here: http://msdn.microsoft.com/en-us/library/ee372287%28v=vs.110%29.aspx. The following example demonstrates how to display just the number of days in the difference between two dates: {{ Globals.Site.DateNow| minus: myDate| date: "%d" }}
    We added the Convert filter which can be used for converting variables to a certain type. The syntax is: variable | convert: “type”. Below are the values supported by the type parameter:
    “date” – converts a variable to a date time instance. We only support the following formats for strings that are converted to date time: “yyyy-MM-ddTHH:mm:ss” and “yyyy-MM-dd”.
    “number” – converts a variable to a number instance. If converting from string, only period “.” is supported as a decimal separator. This filter will probably be most useful when trying to convert GET query parameters: {% assign pageNumber = Globals.get.pageNumber | convert: “number” %}. The previous example assumes that URL that loaded the page contains a parameter named pageNumber. The convert numeric filter is an alternative to the rather hack-ish approach of converting to numbers using mathematical operators: {% assign myNumber = variable | plus: 0 }. Please note that it is not recommended to use the convert numeric filter just to assign numeric constants. For example, this approach is not recommended: {% assign myNumber = “3.14” | convert: “number” %}. Use the following approach instead: {% assign myNumber = 3.14 %} (note the lack of quotes around 3.14 in the second example).
    “boolean” – converts a variable to a boolean instance. Please note, that just as it is the case with numerics, it is not recommended to use the “boolean” filter for declaring a boolean constant. For example this is not recommended: {% assign myBool = “false” | convert: “boolean” %}. Use the following syntax instead: {% assign myBool = false %}
    “string” – converts a variable to its string representation.
    We added implicit casting to the most relevant type in comparisons and inside filters representing mathematical operations (plus, minus, times, divide, modulo). With implicit casting, if one of the two operands is of type string and the other is of a different type (for example numeric or date time), we will attempt to convert the string operand to the type of the other. The conversion will fail if the string is not in an appropriate format for the type it is converted to (same rules as in the Convert filter are applied). In comparisons, if the implicit casting fails, the comparison is made with both operands converted to strings. Additional notes:
    Implicit casting allows using date time literals directly in comparisons if the other operand is of date time type. For example, this will work correctly since "2015-01"15" will automatically be converted to date time before making the comparison: {% if myDate > "2015-01-15" %}Some message{% endif %}
    Date parts obtained using the date filter can be used directly in comparisons with numerics. For example:
             {% assign daysDiff = Globals.Site.DateNow| minus: myDate| date: "%d" %}
              {% if daysDiff < 10 %}
                A message
              {% endif %}
    With the implementation of implicit casting we also fixed some rather funny bugs related to comparisons and mathematical operations. For example, previously, 5 < 5.5 was evaluated as false, but 5.5 > 5 was evaluated as true. Also the result of 5| plus: 5.5 was 10, but the result of 5.5| plus: 5 was 10.5 (now 10.5 is the result of both operations, as expected).
    As a potential caveat, note that implicit casting will bring the operands to the relevant type only if one of them is actually of that type. If both operands are of type string, the comparison is made as of between strings. This means that following condition is evaluated as false {% if "3" < "15" %}, because as a string "15" is smaller than "3".
    Implicit casting from string to numeric only works if the string represents just a numeric. If the string contains additional characters, like a currency symbol, the conversion will fail. For example, this will not work correctly {% "$15" < 20 %}. Our goal, in the next releases, is to update all modules containing price related tags to have them in plain numeric format.
    We added the following filters for easily formatting numeric values representing prices.
    number - displays numbers with a fixed number of two decimals using the decimal separator appropriate to the site's culture. For example, in the English US culture, {{ 99| number }} will display 99.00
    currency - displays numbers in the same way as number but also inserts the currency symbol at the beginning of the returned value. The currency symbol respects the site's culture. For example, in the English US culture, {{ 99| currency }} will display $99.00
    In the next release or releases, we're going to focus on fixing the remaining data types for modules.
    Cristinel

    Liam, the server date isn't helpful for converting timezones. We would need a direct date filter. With a filter for UTC and one for the user we should be able to do quite a bit from there.
    The most powerful things that could be implemented for date time are the following:
    • moment.js and Moment Timezone built into the filters.
    • the ability to add time info into date time fields
    But I know that's a tall order.

  • Liquid damage on MacBook Pro will data be lost?

    I have a MacBook Pro that I purchased two years ago. I spilled liquid on it and now it won't turn on. I know I will have to get a new one but I was wondering if there was any way for my old data like pictures and documents to be salvaged. Is there anyway apple can take out the memory in my old broken one and put it into my new one?

    Mar246 wrote:
    I have a MacBook Pro that I purchased two years ago. I spilled liquid on it and now it won't turn on. I know I will have to get a new one but I was wondering if there was any way for my old data like pictures and documents to be salvaged. Is there anyway apple can take out the memory in my old broken one and put it into my new one?
    Not meaning to be a nag (well, yes, I guess I am, a little bit), but this sort of issue is precisely why one should always have an up to date backup (or more than one, ideally), on hand.  Had you a backup, the state of the internal HD would be immaterial at this point and your data safe and sound.
    But, as others have pointed out, you may be able to just remove the internal drive. put it into an external enclosure and read everything off that way.

  • How to use the size filter in Liquid?

    How does the "size" filter work in Liquid if the size of an array is zero. I would like to check if an array's size == 0 or if it is empty. Does the size filter output anything if the array is empty? If not, is there a better way to check if an array is empty? Thanks.
    {% if {{lastMinuteOpeningsApp | size}} == 0 %}
        <!-- Some HTML code here to run if the array is empty -->
    {% endif %}
    I really wish there were more/better examples on the BC documentation for Liquid.

    Hi Dean,
    Firstly - You do not need to do the braces inside the if:
    {% if {{lastMinuteOpeningsApp | size}} == 0 %}
    {% if lastMinuteOpeningsApp | size == 0 -%}
    Secondly, If you are accessing web app items, you do not access the webapp as you have.
    <pre>{{lastMinuteOpeningsApp | json }}</pre> Will get you the output of the web app liquid object. You will see the items actually inside "items"
    So your web app items would but items are not returned if there are no web app items - Have a look. With that you can just say if lastMinuteOpeningsApp.items. Size will only return the maximum number of items you have per pagination limit.

  • How do I create a Full Width Photo for a Liquid Layout - CS3

    Greetings & Help!
    I'm trying to create a full width photo layout without the
    photo's being tall.
    Exactly as the following websites - which all seem to be
    using the same size of photo or very close to it.
    This site is static with full width photos that are not tall.
    http://www.jenniferhandyproperties.com/selling
    This site is static for the most part and full width photos
    that are not tall
    http://www.gnvpartners.com/web/
    This site is Flash with full width photos that are not tall.
    expodesigncenter
    I would love to create a flash site just like expo but at
    this point I would settle for a static photo with the same size
    being the same on each page.
    Also I would like my site to be a liquid layout so the photo
    and everything else (text, Links etc) on the page flows correctly.
    The problem...
    I'm trying to use photo's from Istockphoto.com. The size of
    the photo's they offer are
    425 x 282 px (5.9" x 3.9")
    849 x 565 px (11.8" x 7.8")
    1698 x 1131 px (5.7" x 3.8")
    I'm selecting horizontal photo's. I do not know how to match
    the same width, height and appearence as the websites I mentioned
    above.
    If I choose a photo that fits the width then the length is
    too long. Also if I choose a large photo and have to crop it then
    most of the detail of the photo is lost.
    I'm attempting to create a mock-up for my web in Fireworks
    CS3 and after search Adobe and www I came across the mock up should
    be 1004px which would end up being 1024 with vertical scroll bar
    and small margins.
    I also have Photoshop & Flash CS3 but should mention (if
    you haven't already guess it by now) I am a rookie when it comes to
    creating a website.
    So if you can offer a solution in "Non-Tech Terms" I would
    appreciate it.
    Thank you in advance for your time.

    Greetings & Help!
    I'm trying to create a full width photo layout without the
    photo's being tall.
    Exactly as the following websites - which all seem to be
    using the same size of photo or very close to it.
    This site is static with full width photos that are not tall.
    http://www.jenniferhandyproperties.com/selling
    This site is static for the most part and full width photos
    that are not tall
    http://www.gnvpartners.com/web/
    This site is Flash with full width photos that are not tall.
    expodesigncenter
    I would love to create a flash site just like expo but at
    this point I would settle for a static photo with the same size
    being the same on each page.
    Also I would like my site to be a liquid layout so the photo
    and everything else (text, Links etc) on the page flows correctly.
    The problem...
    I'm trying to use photo's from Istockphoto.com. The size of
    the photo's they offer are
    425 x 282 px (5.9" x 3.9")
    849 x 565 px (11.8" x 7.8")
    1698 x 1131 px (5.7" x 3.8")
    I'm selecting horizontal photo's. I do not know how to match
    the same width, height and appearence as the websites I mentioned
    above.
    If I choose a photo that fits the width then the length is
    too long. Also if I choose a large photo and have to crop it then
    most of the detail of the photo is lost.
    I'm attempting to create a mock-up for my web in Fireworks
    CS3 and after search Adobe and www I came across the mock up should
    be 1004px which would end up being 1024 with vertical scroll bar
    and small margins.
    I also have Photoshop & Flash CS3 but should mention (if
    you haven't already guess it by now) I am a rookie when it comes to
    creating a website.
    So if you can offer a solution in "Non-Tech Terms" I would
    appreciate it.
    Thank you in advance for your time.

  • Just found out liquid has been spilt on my MBA 2013 13"

    Bought my MBA four weeks ago from the UAE Apple Store (adds to the aggravation of the story) and last night a little bit of liquid (I'm guessing Vodka) got split over the keyboard and trackpad.
    I only realised today, as my keys on the right side of the keyboard felt like they were harder to press than normal, and felt sticky. The same problem applies to the trackpad. Also the backlit keyboard is no way near as bright as it was, even at full bars it is dimmer than what one bar would have once provided.
    The actual Mac seems to be running absolutely fine.
    My worry is that over time the keyboard or trackpad may stop working and the problem may stem from this situation. Plus it’s very annoying to have to 'live with' these problems only a month after investing into this beautiful machine. Ideally I would like to give in the MBA and have them clean up the problem, so it does not haunt me in the future. I am flying back to the UK for university in a few days so handing it here does not seems like an option for now.
    A few questions;
    1) Does buying a Mac from the apple store automatically mean it comes with warranty?
    2) Would warranty cover this?
    3) If so, is the warranty international?
    4) If not, is there anything that anyone could recommend to help me?
    Thanks a lot in advance

    No warranty is cover any liquids  spill by ur own fault,this only apply just defect machines and what you have done now is damages most parts inside,yes ur right can not working later as the parts become corrode/rust.Just clean as u can do now until not working,very costly when needs repair (could replace whole keyboard) or u may can do is bring to apple store or any comp store for a check up on ur own cost...remember next time never eat or drink beside the machine,other mac user have same issue like you and required repair or replace new mac on their own cost...sorry for bad news.

  • How do I find and import Liquid Ledger files after a re-install

    I had to re-install my os x system and I chose to save my files. I have re-imported all items such as documents, pictures and addresses, but I do not know how to import my Liquid Ledger files. I do not know where they are. If I have re re-enter 4 months of accounting I will scream.

    You might want to ask in the Liquid Ledger Support Forums

  • Regarding Liquidity Planner Customization (Configuration) ?

    Hello ,
        Every one
            Currently i am searchiing basic neccessary Liquidity Planner Customization to be do . My question is could any body tel me the way how should i get the names of all necessary Liquidity Planner Customization ?
            If any body has list of it could you tel me the names ?
    Thank you
    Deepak Pawar

    The best thing you could do is read the configuration guide for [FSCM-CM|http://help.sap.com/bp_bl603/BBLibrary/HTML/160_ES_VE.htm].
    Hope it helps!

Maybe you are looking for