Quote from: jtech at Aug 30, 2010, 12:15 PM
Hey DJ13,
Great work again! I just re-submitted the package to the modx repo with your last changes. What might be a practical use of only outputting the image source as opposed to just calling the TV unaltered by scripts? Flexibility is always nice, but I’m a bit slow today so I’m having trouble thinking of a way to use the "source only" feature.
Perhaps I can pick your brain a little bit on something.. The last feature that this snippet is missing is the ability to connect to the phpthumb installation that is already a part of modx. My original implementation of including the whole phpthumb script is a bit bulky and unnecessary. Thankfully phpthumb is a light weight script so it isn’t too big of a deal, but it would be nice to utilize what is already available (similar to Gallery).
I have been studying the modx docs trying to familiarize myself with "connectors" (I think they are what is needed?) but haven’t figured out much. Do you have any ideas on how to accomplish this?
Again, great work! It is really neat to see little ideas grow into useful products when placed in the hands of an excellent community!
Choice only source would be useful to dynamically create Java script (maybe and CSS) when is not needed the entire image tag, but only the source of the image.
I’m new into Modx world, and also study the documentation.I do not know how, and whether it is possible to utilize integrated MODx phpthumb. If anyone knows please help.
I agree with You about the community. Thank You for your support.
This gives real flexibility if you’re trying to do anything other than just display a thumbnail, e.g. linking to an image.
[[!getResources? &parents=`3` &limit=`4` &tplFirst=`articleheadline` &tpl_2=`articlesnextheadlines1` &tpl_3=`articlesnextheadlines2` &tpl_4=`articlesnextheadlines3` &includeContent=`1` &sortby=`createdon` &showHidden=`1` &sortDir=`DECS` &includeTVs=`1` &tvPrefix=``]]
<div class="col3 left"> <div class="column-content"> <div class="post"> <p><a href="[[~[[+id]]]]"><img src="[[+articleimage:phpthumb=`&w=185&h=100&zc=1, class="bordered", title=""`]]" /></a></p> <h4><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h4> <p>[[+introtext:default=`[[+content:ellipsis=`70`]]`]]</p> </div> </div> </div>
<div class="col3 left"> <div class="column-content"> <div class="post"> <p><a href="[[~[[+id]]]]"><img src="[[phpthumb? &input=`[[+articleimage]]` &options=`&w=185&h=100&zc=1` &onlysrc=`1`]]" class="bordered" title="" /></a></p> <h4><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h4> <p>[[+introtext:default=`[[+content:ellipsis=`70`]]`]]</p> </div> </div> </div>
<img src="[[*yourTV]]" alt=" "/>