MODx Video Tutorials Forum
Adding random images to your page - Printable Version

+- MODx Video Tutorials Forum (http://modxvideotutorials.com/forums)
+-- Forum: MODx Revolution (/forumdisplay.php?fid=3)
+--- Forum: MODx Revolution Manager (/forumdisplay.php?fid=9)
+--- Thread: Adding random images to your page (/showthread.php?tid=228)



Adding random images to your page - LennekeDP - 11-23-2011 12:08 AM

Hi there,

http://fotografie.lennekedp.nl/

If you look at this page you see 2 images. At first I added them just the way I used to add them while not using a CMS system. But if somebody else simply wants to change them I thought it would be more easy to do it with Gallery.

At first I added it this way:
[[!GalleryItem? &id=`23` &toPlaceholders=`0`]]
And then using the id of the image I want. But I can't find how to change te size etc. of the image.

Or do you know a better way of adding pictures to my website? I also tried tie GalleryItemTV, but then I could only add one picture to a page, or more times the same picture.

And do you know a way of adding more PrettyGallery albums seperated at one page? A lot questions, I know, I'm sorry for that.

I'm using MODx Revolution 2.1.3-pl (traditional)
http://codingpad.maryspad.com/2009/05/31/building-a-website-with-modx-for-newbies-part-9-adding-a-contact-form-using-eform/

Like here you posted withing the tutorial several pictures and when you click on them you can see them al by clicking next. I know that website is based on Wordpress, but is there an easy way of doing that on MODx? Or is it just as when you use Lightbox that you have to name each image at your template?


RE: Adding random images to your page - mary - 11-29-2011 10:48 AM

It really depends on what your aim is. If you're just posting the occasional picture in your content then I would just recommend you do it using the content editor (having TinyMCE enabled helps to make the image upload and insertion process easier). I would then integrate something like jQuery's fancybox (http://fancybox.net/) to enable the fancy image viewer.

If on the other hand you're having a dedicated photo section on your site with albums and all that then I would definitely consider using Gallery. I personally haven't used it much but here's a tutorial that might help: http://rtfm.modx.com/download/attachments/13664292/Tutorial+-+Gallery+Component+with+Galleriffic.pdf?version=1&modificationDate=1288905236000

HTH


RE: Adding random images to your page - LennekeDP - 12-01-2011 03:34 AM

Thanks a lot Mary! I'll be on it.