Quote from: jtech at Aug 12, 2010, 04:44 PM
Hey Lossendae,
Do you happen to have any documentation on your Custom TV? This looks really useful!
Does this work similar to an output filter (e.g. [[+myImageTV:postthumb=`&w=100&zc=1`]] ) Or something like that..?
Very anxious to learn more about this!
Thanks for any additional info!
-Jared
Hello jtech,
You can try the TV like that:
Install the plugin
- create a TV with the name of your choice
- Choose postthumb as input and output
- the output let you choose the width and height of your thumbnail
- Associate the TV to your desired template and save it
The TV is a thumbnail maker with a crop utility.
It opens a window from which you can load the pics of your choice from the MODx browser.
It is also veeeeery buggy for now.
You will have to load the picture twice for the presized original picture to appear.
And sometimes reload it once again because the cropping tool’s playing badly for an unknown reason yet.
On the front end, the thumbnail only output the src of the image so you’ll have to use something like that:
[[*thumbnail:notempty=`<img src="[[*thumbnail]]" alt="[[*pagetitle]] thumbnail" class="thumb"/>`]]
The cropping tool is using Extjs, feel free to improve it.
I have also made another version, using Jquery and Jcrop, less buggy but not native. I think that i will release the jquery as default one until the native works properly.
Let me know if you need more informations.
edit: see attached an updated version with both jquery and native version embedded. Jquery is use by defaut and i added a few plugin options to let the user choose which version he want to use and if jquery should be loaded or not when he use the jquery version.
Screenshots: