Bug in extra head content when using a custom page type??
Permalink
Can someone please confirm that this is a bug before I report it so that I don't waste my time reporting what turns out to be a non-bug?
Steps to reproduce:
- create a new page type
- checkmark that you want the attribute "Extra Head Content" for it.
- go into the Extra Head Content section and enter some line adding javascript, CSS, or whatever.
- save
- go back to the regular admin interface.
- add a page using this page type
- save the changes.
Now go look at the source code of the page. What happened to the extra head content? It's nowhere to be seen.
Is this some sort of bug?
Logically it would seem that whatever extra head content is added to the page type should appear for all pages created using that page type type...no?
Carlos
Steps to reproduce:
- create a new page type
- checkmark that you want the attribute "Extra Head Content" for it.
- go into the Extra Head Content section and enter some line adding javascript, CSS, or whatever.
- save
- go back to the regular admin interface.
- add a page using this page type
- save the changes.
Now go look at the source code of the page. What happened to the extra head content? It's nowhere to be seen.
Is this some sort of bug?
Logically it would seem that whatever extra head content is added to the page type should appear for all pages created using that page type type...no?
Carlos
I'm seeing this too - what's the fix?
Carlos,
This is purely as a sanity check, but when you say "go into the Extra Head Content section and enter some line adding javascript, CSS, or whatever", are you doing this in the new Page Type's "Defaults"?
- John
This is purely as a sanity check, but when you say "go into the Extra Head Content section and enter some line adding javascript, CSS, or whatever", are you doing this in the new Page Type's "Defaults"?
- John
Hi John,
I am no longer using Concrete5 for anything other than maintaining the one installation of it I did for a client so...I can't even remember what this thread is about LOL.
Sorry.
Carlos
I am no longer using Concrete5 for anything other than maintaining the one installation of it I did for a client so...I can't even remember what this thread is about LOL.
Sorry.
Carlos
LOL! No problem! Sorry I didn't pay closer attention to the date of your original post. I saw stretchrt's response and assumed this was a new thread!
- John
- John
Ahh yes, sorry to go digging up old threads, but it was exactly the problem I'm seeing.
I'm adding in the code in the Page Type defaults, but it doesn't flow through to the actual pages. No matter for me now, as I'm just going to add it in my theme's header.php, but it would still be a problem if you wanted it just for certain page types and not others.
Richard
I'm adding in the code in the Page Type defaults, but it doesn't flow through to the actual pages. No matter for me now, as I'm just going to add it in my theme's header.php, but it would still be a problem if you wanted it just for certain page types and not others.
Richard
No problem... it was my fault for not checking the original post date of Carlos' thread!
What version of C5 are you seeing this problem on. I just tested the same scenario on a site running v5.5.1 and it worked just fine: custom page type, added the "Extra Header Content" custom attribute in the "Settings" for the page type. Then went to Defaults, edited the page type to add CSS and saved the Default. When I added a page to the site using that page type as the design, the Extra Header Content was there.
- John
What version of C5 are you seeing this problem on. I just tested the same scenario on a site running v5.5.1 and it worked just fine: custom page type, added the "Extra Header Content" custom attribute in the "Settings" for the page type. Then went to Defaults, edited the page type to add CSS and saved the Default. When I added a page to the site using that page type as the design, the Extra Header Content was there.
- John
I'm running 5.5.1 too - have to admit tho that I haven't created any new pages of that type since adding the header extra content, but it certainly doesn't push through to the children already existing, and I don't see any way to do that.
No, that's true. I don't think it CAN be pushed through to any existing children. You can add blocks to the Default Settings, then click on them and say "Add to Child Pages" and then even select the ones you want to push it to... but you have to be careful about duplication: if you've already added that content to several pages, using the "Add to Child Pages" feature won't detect that it's already there and you'll end up with duplicate.
- John
- John
How do I stop receiving notification of new responses on this thread? I keep getting emails on it and there is no "Stop Monitoring" button at the upper left.
Anybody?
Carlos
Anybody?
Carlos
Oops. Never mind. The button came on after I posted. Have now unsubscribed. Carry on.
Carlos
Carlos
Yes, I realise all that - ah well, would be a handy feature to have, to be able to push through the header content - maybe in a future version.