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.

Themes /

Discuss SilverStripe Themes.

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

Includes


Reply


4 Posts   1960 Views

Avatar
Wil

Community Member, 15 Posts

18 May 2010 at 5:10pm

I am still working on getting my theme to work and everything appears to be working until I use <% include Footer %>.

None of the includes work. I tried to move my Header by using <% include Header %> and that didn't work either.

I am still searching the forums and hoping someone can point me in the right direction. Right now I have to have everything in Page.ss.

tx

Wil

Avatar
3dgoo

Community Member, 133 Posts

18 May 2010 at 6:09pm

After you change a file in the Includes folder you must flush the page with ?flush=1 or ?flush=all.

Does this fix the problem you were having?

Avatar
Wil

Community Member, 15 Posts

19 May 2010 at 2:59am

I have tried ?flush=1 several times, but so far only formatting in the main Pages.ss works. As soon as I try to use an include, everything in the include dissappears.

I am working on the footer and header right now and both when using includes do not work, but both when placed in Page.ss work.

tx

Wil

Avatar
Wil

Community Member, 15 Posts

26 May 2010 at 1:22pm

Duh!

I had a small i on the includes folder.

Wil