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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Silverstripe and Fancybox


Go to End


2 Posts   1959 Views

Avatar
VictorH

Community Member, 29 Posts

18 December 2009 at 9:28am

I'm trying to get fancybox (http://fancybox.net/) to work on a Silverstripe build of mine.

I'm trying to have some inline elements appear on the the fancybox popup.

In order for it to work you need an anchor tag where the href="#something" has the fancybox show the contents of a div with an id='something'.

The problem is Silverstripe adds the base tag to the anchor href so instead of href="#something I get href="/mysite/section/#something".

Anyone have any ideas?

Avatar
VictorH

Community Member, 29 Posts

18 December 2009 at 2:04pm

THIS IS NO LONGER AN ISSUE. I DIDNT DO ANYTHING AND IT FIXED ITSELF.