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.

Template Questions /

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

sub page not working


Go to End


2 Posts   1665 Views

Avatar
studio6

Community Member, 14 Posts

19 October 2010 at 1:41pm

Hi i have a template that im trying to move over to ss. on it there is a bit of flash at the top it all works well on the home pager but thats all. all the page are useing the same page.ss file so cant work out why this is. the funny thing is if i put the url in for any top lever pages but take the / off the end it will work but will not with the / and it will not work on any sub pagers. can any one help me im going nuts trying to work this one out.

Avatar
3dgoo

Community Member, 135 Posts

21 October 2010 at 11:01am

I'm guessing in your .ss template you have code for your flash. And this is referenced with a relative path. My guess about the problem is the relative path is wrong on all pages, except the home page.

Make the path to the flash absolute by putting {$BaseHref} before the rest of path.

This is all a guess, let me know how you go.