Jump to content
We are closed Thursday 23rd November and Friday 24th November. Support is still available via your client center but response times may be delayed.
Invision Community

KenuFHR

Members
  • Content count

    17
  • Joined

  • Last visited

About KenuFHR

  • Rank
    New Member
  • Birthday 06/12/1985

Contact Methods

  1. Pages SuperGrid support

    Thanks for your help - got it working!
  2. Pages SuperGrid support

    Thanks for the quick reply. I haven't been able to make it work despite some fiddling with it so far, but at least I am under the impression that I understand the logic a bit better. What's confusing to me is that the link to the image is displayed with the default code. I tried adding a new image field to the new database that I created for testing SuperGrid and here's what happened, even when none of the articles have any images uploaded for the new image field: All thumbnails get this 'Image:' box in the top right corner. The link to the article only works by clicking this little 'Image:' box after that and the link functionality is removed from the thumbnail itself. If I upload an image in the new image field, it puts that picture on top of the thumbnail (and still acts as the link). I was wondering if you might be able to tell me whether this is something dictated by the SuperGrid code (telling it to look at all fields in the database), a bug, or some forum specific feature? Otherwise, even if I make the correct image visible by editing the code, I'd imagine will still have that link from field_9 on top of the thumbnail (as in my previous post). Appreciate your help - thank you! Kind regards, Kenneth
  3. Pages SuperGrid support

    Hi there @opentype, First of all, thank you for putting in the work to create this plugin - it looks great overall! I just bought the plugin today and I'm having some issues with making it work with my current news content. The issue is that we use a custom field 'news_image' (Template key) as a thumbnail on our website www.nhlgamer.com. We don't use that specific image in the news article itself (besides a super small image in the beginning of the news article). I have tried to edit the $record->_record_image_thumb part of your code below, but was unable to get it to work. Could you tell me if it's as simple as just getting the syntax correct there and possibly let me know the correct way to call for the image if that is the case? <div class="ipsType_right SG_image_container_sidebar ipsAreaBackground_reset" style="padding-bottom: {{if settings.SuperGrid_aspect_ratio}}{setting='SuperGrid_aspect_ratio'}%{{else}}50%{{endif}}; {{if $record->record_image}}background-image:url('{{if settings.SuperGrid_image_use_thumbnail}}{file='$record->_record_image_thumb' extension='cms_Records'}{{else}}{file='$record->record_image' extension='cms_Records'}{{endif}}');{{elseif settings.SuperGrid_fallback_image}}background-image:url('{setting='SuperGrid_fallback_image_url'}');{{endif}}"> <div class="cCmsRecord_image"> <img class="ipsImage" src="{$record->customFieldDisplayByKey('news_image', 'listing')|raw}" extension="cms_Records"> </div> Above you can see how it's called by default at the moment on our site. Edit: Here you can see how it is currently looking: On the right hand side I am testing with a new database and everything is working as intended. On the left (in the middle) I have linked to the original database, where the thumbnail image is instead now displayed as a text link for some reason (this is with your template code unedited, as above): image.tiff I can give you access to the page that I'm currently working on, but I figured the above is probably enough to form an understanding of the issue. Thank you in advance! Kind regards, Kenneth
×