Jump to content
  • entries
    7
  • comments
    32
  • views
    8,552

Code That Shits Me

.Joel

771 views

<Rant Mode>
I've been putting a new section together for Extreme Kites which I personally think is going to be another incredible resource over time, it'll be announced on the XK News Blog shortly.  I would have released it earlier but after getting it to about 90% ready for launch I did a "minor" update between versions on the website to apply some new patches.  Well it totally borked the new section, seeing as documentation is fucking scarce on some things finally today we had a break through!

Worked fine on Monday....

<section data-controller='core.front.core.lightboxedImages' >
  {{$images = $record->customFieldDisplayByKey('gpsimgs', 'raw');}}
  {{$images = explode( ',', $images);}}
  {{foreach $images as $image}}
    {{$url = \IPS\File::get( 'cms_Records', $image )->url;}}
    <a class='ipsAttachLink ipsAttachLink_image' href='$url' >
      <img src='$url' class='ipsImage ispImage_thumbnailed' alt='$url' style='max-height: 34px'/>
    </a>
  {{endforeach}}
</section>


Works fine on Thursday....

<section data-controller='core.front.core.lightboxedImages' >
  {{$images = $record->customFieldDisplayByKey('gpsimgs', 'raw');}}
  {{foreach $images as $image_url}}
    <a class='ipsAttachLink ipsAttachLink_image' href='{$image_url}' >
      <img src='{$image_url}' class='ipsImage ispImage_thumbnailed' alt='$url' style='max-height: 34px'/>
    </a>	
  {{endforeach}}
</section>


And for anyone that knows what the i'm ranting about above.... well you just worked out what the new section is as well ;)  I'm heading for Kingston SE in 48 hours, so we'll see if I can get this completed before then otherwise it's something to do each night from the Cabin until it's finished.

 



2 Comments


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×