Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Problems with PrettyPhoto using inline option for links


Reply


2 Posts   2222 Views

Avatar
lucksc

Community Member, 1 Post

19 November 2010 at 9:36am

I've uploaded the PrettyPhoto files and have everything working with the exception of using inline content (http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/) on my page. When I click on the link to display the inline content I receive "Image cannot be loaded. Make sure the path is correct and image exist." If I try to use other features like the gallery or iframe options then those appear ok. Has anyone else experienced any problems with this? My guess is that it's a problem with the anchor tag having the page url assigned prior to the #. Any help would be greatly appreciated. Thanks!

Avatar
ocean

Community Member, 37 Posts

19 May 2012 at 4:37am

Same issue here...

All I can see that is different in terms of the elements is a forward slash inserted before the ID reference, so instead of anchor reading href="#inline-1" it is href="/#inline-1" as rendered by silverstripe.

Not sure if this is causing the error with prettyPhoto, or how to turn that forward slash off?

Would appreciate a solution also.

Best wishes
~ Sean