Alright. I have the page source spitting out the url value. But when I added the following code to the Chunk {{slidetpl}}, no images display in the area.
page source:
imgs.push
({
file: 'http://www.domain.com/directory',
title: 'image2',
desc: ''
url: '#'
});
Does the rokslideshow.js need to be changed?
perusing forums is where my comp sci degree got me.
[+slideimage+] = the placeholder that go get your template variable (tv) named "slideimage".
What is the value in the tv when you edit the resource?
Quote from: mrhaw at May 05, 2010, 12:21 PM
[+slideimage+] = the placeholder that go get your template variable (tv) named "slideimage".
What is the value in the tv when you edit the resource?
I’m using the full path to the images right now.
perusing forums is where my comp sci degree got me.
In my understanding you need to define file name (e.g. assets/images/01.jpg) for each picture
by editing the TV for each resource that contain picture, title, description and url.
That’s what I’m doing. I’m defining the slideimage variable with the full path to the image. e.g.
http://www.domain.com/dev/assets/templates/gi/images/img_promo.jpg
It shouldn’t matter if its full URL or relative correct? I have the image defined in the slideimage (tv) for each resource. The images display fine for me if I take out url from the slidetpl chunk.
perusing forums is where my comp sci degree got me.
I haven’t installed this but you can configure this
in your Rockslide chunk
window.RokSlideshowPath = '';
But better set a base href tag in your MODx template
<base href="[(site_url)]"></base>
make sure that outputs
http://www.domain.com/dev/
and the just use
assets/templates/gi/images/img_promo.jpg
in TV.
Play with it...
Well I figured out what I was doing wrong. I added the url: [+description+], but didn’t add a comma! Here is the correct code to use the description document object as the link for the photo. To not have a link use # or leave blank.
imgs.push
({
file: '[+slideimage+]',
title: '[+pagetitle+]',
desc: '[+content+]',
url: '[+description+]'
});
perusing forums is where my comp sci degree got me.