Keeping Themes & Pages Types Straight

Permalink
ok -
I'm a newbie here so please forgive me... I have read a lot and am still confused...

I have created two themes:
1.One to handle my front page graphics (it has a large header)
2.One to handle my internal page graphics (sm header)

I have one page type that I created and am using - because the content layout is the same - even though the header is different.

--- here's my application problem ---

I have created 3 pages on my site - all calling the same page type.

Within the editor via design editor I have applied the FrntPg theme to the index.php and applied the InternalPg theme to the other 2 pages.

But - when I return to the dashboard and go to make edits to the page type - it seems to be attached to the theme... it show's up with different content depending on what theme is "activated"

and if i apply the the InternalPg theme - it over rides the fact that i have attached the FrntPg theme via the editor to index.php... what am i missing here?????

Do you have to have different separate page types for each theme even though the content layout is the same???

I thought you could have multiple themes applied to diff pgs of the site - to handle diff graphical layouts...

PLEASE HELP!! THANKS

 
Mnkras replied on at Permalink Reply
Mnkras
you don't need separate themes, you can have them in 1 theme, just make your home theme into a home.php and your inner pages as you have them most likely into the default.php
chameleon replied on at Permalink Reply
Ok - thanks!

so - follow up question -

how do i add a page type that doesn't work off of default though??

i tired yesterday to add a home.php page to the theme folder on the server, but i don't see it then in the dashboard to add defaults to etc.

is there something else i need to do to create a new page type? and install it for use?
okhayat replied on at Permalink Reply
okhayat
You need to 'activate' that file.
Goto Dashboard -> Pages and Themes -> click Inspect (besides your theme).
You'll see your file name there with a check box with 'Create page type' in the same row that shows your file.
Just click 'Activate Files' and it should be added.
chameleon replied on at Permalink Reply
thanks!! worked like a charm :)
chameleon replied on at Permalink Reply 1 Attachment
I was able to create my page types and themes now... but in IE7 & IE8 there is a large space at the top of the site that is not there in FF... i have tried setting body margins & padding to zero...but it won't go away...

any ideas?? please help!!!
see attached screen shots...

thanks!!!
okhayat replied on at Permalink Reply
okhayat
Is there a link to the page? Maybe I can help you find where it is.
chameleon replied on at Permalink Reply
yah - here is a link...

http://concrete.testpls.com/

here is some of the css from the main.css file



html, body {height: 100%; }
body {background-color: #000000; background-image: url(images/background_gradient.jpg); background-repeat: repeat-x; padding: 0px; margin: 0px; }
h6 {background: url(images/background_gradient.jpg; background-repeat:no-repeat;}
img {border: 0px}
a { cursor:pointer}

label { font-weight:bold;}
fieldset { border:1px solid #ccc;}

/* error text class optionally provided by theme */
div.ccm-error-response {color: #f00; margin-bottom: 12px;}

/* Page Structure / Navigation */

#page{ margin:auto; text-align:left; mmargin-top: 0px; }



thanks for your help!
aeroclown replied on at Permalink Reply
aeroclown
Fix this in your main.css first

#page{ margin:auto; text-align:left; mmargin-top: 0px; }


so that you have #page { width: XXpx; margin: 0 auto;}

or atleast fix your typo in the #page directive and that will affect your site layout. Fixing that typo might make ie behave as it will certainly do crazy things with broken directives.

Also the three links across the top are broken. If you are putting those in the template by hand, its ok, you'll just need to verify the url from the sitemap or add the existing links as aliases to each page path.
okhayat replied on at Permalink Reply
okhayat
1. Fix your CSS as aeroclown pointed and remove the IE specific CSS, it's really not needed if you fix your code. IE is not that stupid ;-)
2. Check your template and make sure you're using the right functions. The reason why I say this is, I noticed your CSS's href is '/index.php/tools/css/themes/ase/main.css' while it should be 'http://concrete.testpls.com/themes/ase/main.css' or simply '/themes/ase/main.css'
3. Clean up your template. When I got to 'Meet our president' page, there is a 'remove test?' text at the top.
chameleon replied on at Permalink Reply
thanks for the advice guys - but, i'm still on the hunt for a fix...

yah, right now this is a test environment for me so links, etc. are wrong...

and the ie-specific.css is only in there to make the .png I have hovering appear correctly in ie, so no worries about that...

I think I might rebuild my page theme & types today from scratch to make sure that there isn't anything strange... in html this site looks fine across browsers live [http://aseoptics.com/], i've just been trying to wrangle it into concrete5 - it's my test subject

let me know if you think of anything else... wasn't sure if this was a standard problem

thanks again
aeroclown replied on at Permalink Reply
aeroclown
@Okhayat

Hmm, my css relative links are also /index.php/tools/css/themes/ase/*.css

That is as per

http://www.concrete5.org/help/building_with_concrete5/developers/th...

uses <?=$this->getStyleSheet('your_stylesheet.css')?>

As a replacement tag. I am just curious do you use this replacement tag ? Because I am in my theme and that is how it inserts the path to the theme css. So I am just wondering if that is normal or if something is broken in my install. It certainly seems to function correctly on the site.

@Chameleon

Take the default page type of your theme since you have probably built all of hte other pages off of it. Pull out the php snippets a then run the html through the W3C page validator. See if you come up with anything unusual or broken in the validation of the html. You might have an open division or something like that. Also make sure that the spacers you have in place are as they are intended to be. If it was some kind of quick fix for another problem you were having it might be an indication that there is a problem in the code structure.
okhayat replied on at Permalink Reply
okhayat
You're right, it says so. From what I learned, it's better to directly link 'static' files, rather than passing them through PHP.
That's why I use $this->getThemePath() instead and just link the CSS/JS and other files.
Anyway, this is a personal preference, not necessarily the best practice.