rbroder
Posts: 67
|
| Posted: 06/19/2011, 5:15 PM |
|
I am trying to put the doctype, head, and meta content-type tags in my include pages. I am using utf-8 charset.
This generates: Warning:The charset used in the HTML template of included page "C:\data\ccpROJECTS\TestQualityApps\header.ccp" does not match the charset of the HTML template of generated page.
Furthermore, the generated html does not contain the doctype, head, or meta tags.
Is this considered normal behavior? Anyone have a work around?
|
 |
 |
rho
Posts: 85
|
| Posted: 06/19/2011, 11:40 PM |
|
Hi,
CCS sometimes removes the contenttype metatag from include page. This makes sense, as the page will be included in another page - which will have it's own contenttype metatag. However, CCS then gives the warning. I contacted Yes Support about this.
As I like my CCS projects to be 'clean' (that is, no errors and warnings when generating), I workaround this by reapplying the contenttype metatag in the include (and generating the page) until it 'sticks' and then save. However, I've found that when changing the server in the Project Settings, the metatag gets removed again.
It is interesting that the metatag removal is not consistent: it happens on incidentally on some includes and on some servers, so I haven't been able to find a general workaround. Maybe someone else has any tips?
Cheers, Rob.
|
 |
 |
datadoit
|
| Posted: 06/20/2011, 8:09 AM |
|
As a general practice when working with includable pages:
- When making changes in design mode, switch to code view, then to HTML
view, then to design view.
- Right click in design view and choose Page Properties, set the
encoding back, then switch to code view, HTML view, back to design view,
then publish.
- Test your changes. If all is well, save the changes.
- Repeat.
:)
I do this so often that it's done subconsciously.
|
|
|
 |
|