How to use PrettyPhoto?

Permalink
Hi.
Are there some who have tried to integrate prettyphoto in Concrete5?

I've been trying for a while now. But end up with a few problems that I can not solve.

My first attempt was with Desigerns content. I tried to make different blocks together of html, images, links, etc. but here I bump into a few problems.

1: I can not insert the rel="prettyphoto[something]" in my links. Maybe with some javascript? But how can I change it inside Concrete5 for further galleries?

2: It is not possible to link to a picture ... And yet, if you make use of some static html, etc. But then the end user must know the full url. while he / she must remember to rewrite rel="" content.
It will never happen ....

My second attempt was with various image links plugsins.
Here is the same problem I can not get rel="prettyphoto[something]" into the link in some way.
I could insert my a tag with rel="" into my template.
In this way, the end user simply insert an image that link to another picture and it will work. (Nice! :))

But ... Then I have to make a template for each gallery .. Overkill!

I'm really frustrated and I am completely blind to what the solution might be.
Is there someone who has tried this before? and found a solution?

Another gallery is not an option.

 
Highlight replied on at Permalink Reply
Ok. got this to work.!

whit this:
$(function() {
   $('#path a').attr('rel', 'prettyPhoto[image]')
   $("a[rel^='prettyPhoto']").prettyPhoto();
});


Then i usede Fancy Image Links.
Set the thumbnail and then link to a bigger images.