Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Why can't I see the assigned template layout in page editor

Contributor ,
Jun 23, 2013 Jun 23, 2013

Hi

On some of my sites when I assign a template to a page the template look and feel will render the page content, however on of my sites the assigned template won't render the look and feel which makes it very hard for my clients to edit.

see screen shot.

template-view.png

Any ideas?

thanks

MIcha

TOPICS
Content management and modules
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 23, 2013 Jun 23, 2013

Hey there,

Will be down to how you have formed the stylesheets and referencing them.

If the style CSS is not in that main stylesheet BC picks up from the templates head then it cant find it. So if that is in an @import or you have several stylesheets in your head it wont work correctly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 23, 2013 Jun 23, 2013

Hi Liam

What is the main stylesheet? the 'stylesheet' folder? I have all my stylesheet files in the header and the header is a placeholder.

Cheers

Micha

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 23, 2013 Jun 23, 2013

Depends on the site setup, need to look at the source of your head to be able to tell you if it what I said or not.

Post a link to the site.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 23, 2013 Jun 23, 2013
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 25, 2013 Jun 25, 2013

Markup looks ok to me-- don't know why BC isn't picking up the stylesheets from your template.  Can you create a new template with the same markup and see if that works?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 25, 2013 Jun 25, 2013

Because of the CSS trickster, styles spread across different stylesheets with that setup.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 25, 2013 Jun 25, 2013

What is a CSS trickster? I have one stylesheet "bootstrap.css" the other style triggers only on smaller devices. I will create a simpler template version where the head is part of the template and not a placeholder and see how it goes.

Cheers guys.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 25, 2013 Jun 25, 2013

CSS is your stylesheet and trickster is his name.

You have the following:

        <link href="/css/bootstrap.css" rel="stylesheet" />

        <link href="/css/bootstrap-responsive.css" rel="stylesheet" />

        <link href="/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" />

And I can see several CSS errors as well from the modifications yuo have done. A combination of these factors is causing the editor to have troubles.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 25, 2013 Jun 25, 2013

Thanks Liam,

I will take a look. the CSS should be clean. most of my CSS is complied using SCSS and Compass so and I don't get errors.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 25, 2013 Jun 25, 2013
LATEST

Sorry Liam I don't know what CSS errors you're talking about. Anyway, I did a test and found that if I include the <head> code in the template instead of a placeholder the editor will work properly. So to conclude this issue, if you want to see your style in the editor the CSS files should be included in the template not placed as a placeholder.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines