Jump to content

Get theme resource as object?


snugRugBug

Recommended Posts

Posted

I know that if I have a template tag like this:

{file="$image->thumb_file_name" extension="gallery_Images"}

and I want to get the file as an object, then I can do this:

{{$file = \IPS\File::get("gallery_Images", $image->thumb_file_name);}}

What I want now is to fetch a resource as an object. I know the template tag looks like this:

{resource="backgrounds/1.jpg" app="core" location="front"}

but I can't find a Resource class anywhere in the code base.

Has anyone managed to do this before?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...