XModPro

Using Tokens in Xile Setup

GINO FILIPPELLI GINO FILIPPELLI posted Nov 29, 2015
Active Dec 1 · Viewed 1233 times

Hi, I wanted to make a reusable module using Xile which has a setting page to setup things like image resizing etc.

Rather than use the custom settings section of the XMP module, I decided to store my settings in the DB. This is because it seems the custom setting section of XMP cannot be used with dropdown etc for selecting settings.

Anyway, the issue I'm having is that I don't seem to be able to do this:

ResizeVersions='width=[[UploadWidth]];format=jpg;mode=max, sm_:width=[[SmallWidth]];height=[[SmallHeight]];format=jpg;mode=crop, thm_:width=[[ThumbWidth]];height=[[ThumbHeight]];format=jpg;mode=crop'

No errors are thrown, but instead I'm getting strange results with the upload sizes.

Can anyone shed any light on this for me? Indeed, if it's not possible to use tokens within the control, is there another way to do it?

8 Replies

Loading replies...