Thank you all for your quick replies. I tried to simplify my answer, but i think i may have managed to confuse you more. Let me explain further:
I am building this site using modx:
http://www.alexpi.pagodabox.com/
This is a responsive site, and the problem i have is with its large image on the main page.(actually,that gray boxes you see will become images in the end.)
I have managed almost everything so far on my local machine, but since i am not the one who designed it, the designer has uploaded on the real server the html and css so far. I sent you that url just for you to get a better view of the situation.
This is the code the page outputs on my local machine:
<ul class="gallery">
<div class="group1">
<li class="large">
<a href="">
<span></span>
<div data-picture data-alt="">
<div data-src="assets/snippets/advthumbs/advthumb.php?svyranzr=Fnygb-Tenaqr.wct&arjkfvmr=450&arjlfvmr=300&zrgubq=erfvmrpebc&jngreznex=&svyrbhg="></div>
<div data-src="assets/snippets/advthumbs/advthumb.php?svyranzr=Fnygb-Tenaqr.wct&arjkfvmr=900&arjlfvmr=600&zrgubq=erfvmrpebc&jngreznex=&svyrbhg=" data-media="(min-width: 30em)"></div>
<div data-src="assets/snippets/advthumbs/advthumb.php?svyranzr=Fnygb-Tenaqr.wct&arjkfvmr=700&arjlfvmr=470&zrgubq=erfvmrpebc&jngreznex=&svyrbhg=" data-media="(min-width: 55.44em)"></div>
</div>
</a>
</li>
.
.
.
Inside the <a href=""> i have placed the ditto placeholder [+url+] and inside the <span></span>
i have placed the placeholder [+title+].
These are my three ditto calls:
[+phx:if=`<div data-src=""></div>`:ne=``:then=`[!Ditto?&parents=`4` &tpl=`index_large_small`&total=`1` &filter=`description,large,9` &orderBy=`menuindex ASC`!]`+]
[+phx:if=`<div data-src="" data-media="(min-width: 30em)"></div>`:ne=``:then=`[!Ditto?&parents=`4` &tpl=`index_large_large`&total=`1` &filter=`description,large,9` &orderBy=`menuindex ASC`!]`+]
[!Ditto? &parents=`4` &tpl=`index_large_medium`&total=`1` &filter=`description,large,9` &orderBy=`menuindex ASC`!]
And the chunk index_large_medium:
<div data-src="[[advthumbs? &filename=`[+top_image+]` &newxsize=`700` &newysize=`470` &method=`resizecrop`]]" data-media="(min-width: 55.44em)"></div>
The other two chunks are pretty much the same.
With the <a href="[+url+]"> and <span>[+title+]</span> i want to achieve that hover effect(of course that happens with css, but i want ditto to output the project's/image's title and if you click on the image it will take you to the actual project).
The way i see it there can only be two solutions:
1)my designer has to figure out a way to achieve the same effect by changing the css and html and making so the template would be like this:
<ul class="gallery">
<div class="group1">
<li class="large">
<div data-picture data-alt="">
<a href="(project's url here)"><span>(project's title here)</span><div data-src="assets/snippets/advthumbs/advthumb.php?svyranzr=Fnygb-Tenaqr.wct&arjkfvmr=450&arjlfvmr=300&zrgubq=erfvmrpebc&jngreznex=&svyrbhg="></div></a>
<a href="(project's url here)"><span>(project's title here)</span><div data-src="assets/snippets/advthumbs/advthumb.php?svyranzr=Fnygb-Tenaqr.wct&arjkfvmr=900&arjlfvmr=600&zrgubq=erfvmrpebc&jngreznex=&svyrbhg=" data-media="(min-width: 30em)"></div></a>
<a href="(project's url here)"><span>(project's title here)</span><div data-src="assets/snippets/advthumbs/advthumb.php?svyranzr=Fnygb-Tenaqr.wct&arjkfvmr=700&arjlfvmr=470&zrgubq=erfvmrpebc&jngreznex=&svyrbhg=" data-media="(min-width: 55.44em)"></div></a>
</div>
</li>
.
.
.
or
2)there is some way to place the [+url+] and [+title+] placeholders before the ditto calls and outside their templates.
I have tried other solutions, like using the &hiddenFields parameter or the DittoFormat snippet, but to no avail.
I am sorry for the long post. I don't mind deleting it if it can't be solved. Also, this is my first site and it is giving me a real headache -_-