Still don't get page type
Permalink
I know when you make a page you have to assign a page type so it has a structure, but when testing concrete5 on some themes I've downloaded it doesn't seem to have much effect. The press release, right sidebar and left sidebar don't have any effect. I'm slowly beginning to get to grips and have a good look at the source code but the page types just keep throwing me off. I'm used to controlling the lay out via css, positioning the divs where I want them etc. can anyone give me a few pointers and real examples (not concrete5 documents) as to how they use the page types.
it's a brilliant system and would like to get up to speed asap.
Thanks again
it's a brilliant system and would like to get up to speed asap.
Thanks again
Okhayat, Nice to speak to you again. Thanks for replying. So if you make a css file for each template (say for a page with a header and three columns underneath) what would you name it or how would I link it to the appropriate page? Use <link rel> as normal?
I'm just trying to get to grips with the structure of a page in C5 and how or what is the most common. Is there a way to make my own page type? I tried but it didn't seem to do anything.
I'm just trying to get to grips with the structure of a page in C5 and how or what is the most common. Is there a way to make my own page type? I tried but it didn't seem to do anything.
Yeah, this could be one way.
I usually create a single CSS with all what I need, then assign the CSS IDs or CLASSes to the DIVs I want to use the CSS with.
For example this is a left sidebar template:
<div id="content">
<div id="main><!-- content --></div>
<div id="left-sidebar">...</div>
</div>
.. and this a right sidebar template:
<div id="content">
<div id="main><!-- content --></div>
<div id="right-sidebar">...</div>
</div>
I usually create a single CSS with all what I need, then assign the CSS IDs or CLASSes to the DIVs I want to use the CSS with.
For example this is a left sidebar template:
<div id="content">
<div id="main><!-- content --></div>
<div id="left-sidebar">...</div>
</div>
.. and this a right sidebar template:
<div id="content">
<div id="main><!-- content --></div>
<div id="right-sidebar">...</div>
</div>
http://www.concrete5.org/documentation/developers/pages/themes...
Regarding page types, it's just about choosing a template. Basically, if you have a theme with only default.php, this will be used for all types of pages.
To have a 'real' right sidebar, left sidebar, full width or any other kind of a page, you would need to customize a .php file for it. Or at least the CSS files.
I usually create a separate .php file for each template.