Load different footer files

Permalink
Hello, is it possible to load different footer files for different page types? I thought I could change
<?php $this->inc('elements/footer.php'); ?>

to this:
<?php $this->inc('elements/footer-afixed.php'); ?>

but I get this error:
Warning: include(/home/spectrum/public_html/xceldefense/concrete/themes/basic_bootstrap/elements/footer-afixed.php) [function.include]: failed to open stream: No such file or directory in /home/spectrum/public_html/xceldefense/concrete/core/libraries/view.php on line 488
Warning: include() [function.include]: Failed opening '/home/spectrum/public_html/xceldefense/concrete/themes/basic_bootstrap/elements/footer-afixed.php' for inclusion (include_path='/home/spectrum/public_html/xceldefense/libraries/3rdparty:/home/spectrum/public_html/xceldefense/concrete/libraries/3rdparty:.:/opt/php53/lib/php') in /home/spectrum/public_html/xceldefense/concrete/core/libraries/view.php on line 488

Is there a way to accomplish this with out using a pile of different CSS?

Thanks,
Kurtopsy

Kurtopsy
 
exchangecore replied on at Permalink Best Answer Reply
exchangecore
You can certainly do this. The error you are getting is basically saying that it can't find that file in a package directory, in the application/themes/basic_bootstrap/elements/footer-afixed.php, or in /concrete/themes/basic_bootstrap/elements/footer-afixed.php.

I recommend tripple checking that the file does indeed exist in one of those paths, and also that the permissions are set appropriately. Also, you should clear your cache if you haven't already.
Kurtopsy replied on at Permalink Reply
Kurtopsy
Hi exchangecore,

You're right! I cleared the cache and it worked. Can't believe I didn't try that :)

Thanks much!