How to Use Include Files in Templates – SilverStripe CMS
Last Updated on Thursday, 9 May 2013 02:07 Written by Teet Bergmann Sunday, 12 May 2013 12:00
One of the thing you want to use as an included template files is mostly 2nd level menu (sidebar menu).
Include files must be in themes/yourtemplatename/templates/Includes folder it’s the same level as Layout folder.
2nd level menu example code u add to themes/yourtemplatename/templates/Includes/Menu2.ss:
Learn MoreHow to Fix the WordPress Include Issue
Last Updated on Monday, 4 February 2013 03:15 Written by Saravanan Shanmugam Wednesday, 6 February 2013 12:00
Anyone getting the following error on your WordPress site?
Warning :require(/wp-blog-header.php) [function.reuires]:failed to open stream:No such file or directory in C:\HostingSpaces\user\domain\wwwroot\index.php on line 17.
Don’t worry. Here is the simple fix that eliminates the error
Learn MoreHow to Solve WordPress “Include” Issue
Last Updated on Monday, 14 January 2013 10:03 Written by Arian Jahansouz Monday, 14 January 2013 10:03
If you are having an Include Issue, or receive a message that includes “failed to open stream: No such file or directory,” there is a very quick and easy fix!
The full error looks like this:
Learn MoreHow to Import a CSS File From Another CSS File
Last Updated on Monday, 7 January 2013 12:00 Written by Richi González Monday, 7 January 2013 12:00
Hello,
Today, I will tell you how to call a CSS file from another CSS file. To make it clearer, we will call fileB.css from fileA.css, which both are in the same directory. This comes handy when you want to keep your styling rules organized.
In fileA.css, let’s imagine we have this code:
Learn MoreHow to Include the Admin Bar in a Template in Clip-Bucket v2
Last Updated on Friday, 3 August 2012 10:41 Written by Richi González Saturday, 18 August 2012 12:00
Hello,
Somebody recently asked me how to add the admin bar in a Clip-Bucket v2 template, so here is the guide for everyone. Enjoy!
Difficulty level: Easy
If you are developing a template, I recommend you to add the code in the header.html, so the bar shows in all pages. If you want to display it in specific pages, only you can add the code to that specific page.
Learn More
Recent Comments