Adding sidebars on both sides, as well as a footer
Permalink
I'm new and just trying to see if c5 works how my brain works. I watched the video on applying existing themes to c5 which seemed pretty easy, but what I don't understand is how do I add a new 'area'? What if I wanted a sidebar on both sides and a footer that was editable as well? What if I wanted 4 columns, etc...?
After reading some documentation, it seems maybe a block or scrapbook should be used?
After reading some documentation, it seems maybe a block or scrapbook should be used?
this can be controlled by page types. By adding a file called four_collumn.php or something like that in your theme you can allow a four collumn layout to be chosen- but th file has to have 4 columns in its html/css and each of them has to be an editable area- so you can't do it from the dashboard or frontend.
Is there documentation on this?
just look for making a theme and page type docs.
If you don't already have a theme set up the way you imagine it, you can always use the design option. Open a new page, select full page, select the "add to main" and instead of inserting a new block, choose "Layout" to allow you to break the main into multiple adjustable width columns. This can be used in layers (a three column over a four over a one etc.)
Great to help visualize a new page design or to just create a custom one-off
Great to help visualize a new page design or to just create a custom one-off
I got lost doing this. I went to my sitemap and added a new page, selected full width, I don't see 'add to main' Where am I suppose to go to do this?
When you visit the full page you just created... enter Edit mode. Any area you can modify/edit from the front end will be bordered with a red dotted border and will turn grey as you hover over it.
In the main body of your page, will be an area labeled "add to main". Select this box and you should be given the options; add block, paste from scrapbook, add a layout, & design.
Choose "add a layout" to open a window to input your rough parameters ( columns, rows, spacing etc.).
Once that new block area is created, the column width is manually adjustable.
In the main body of your page, will be an area labeled "add to main". Select this box and you should be given the options; add block, paste from scrapbook, add a layout, & design.
Choose "add a layout" to open a window to input your rough parameters ( columns, rows, spacing etc.).
Once that new block area is created, the column width is manually adjustable.
Hey guys, I've converted a static theme to C5, but some reason when I reference my css file using php directive it is not working.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="<?php $this->getStyleSheet('style.css'); ?>" type="text/css" charset="utf-8" />
<?php Loader::element('header_required');?>
</head>
The href is coming up blank, 'href=""' instead of showing my style.css file. I tried using getThemePath as well.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="<?php $this->getStyleSheet('style.css'); ?>" type="text/css" charset="utf-8" />
<?php Loader::element('header_required');?>
</head>
The href is coming up blank, 'href=""' instead of showing my style.css file. I tried using getThemePath as well.
try <?php echo $this->getStyleSheet('style.css')?>