Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello, I am having a problem with CouchCMS. Connecting my .php-document to the CMS works fine, and I can post text and images. The problem is though that my content doesn't seem to stretch down and that it is instead putting images and text outside of the box. English is not my original language so my explaining might be bad, so I am posting a screenshot showing my problem. As you also can see, the "Powered by CouchCMS" is placed very weird. Image

I am also posting how my code looks like. I read in another post on this forum about connecting the cms:editable to the stylesheet. I tried that without any luck.

Code: Select all
 <div class="container">
       
        <div class="row">
           
            <div class="col-md-12">
            <cms:editable name='main_content' label='main_content' desc='main_content' css='css/main.css'   
    type='richtext'>
                <div class="content">
                 </cms:editable>       
            </div>
       
        </div>
   
    </div></div>


I am under some time pressure at the moment with this project and I would really love to have some guidance with this. It's probably easier than I think, but right now it feels like nothing works for me. Thanks.

// Sorenator
Hi,

Going by the code you posted, one possible reason behind the problem could be that the content made editable will result in invalid HTML markup (no closing tag for <div class="content">)-
<cms:editable name='main_content' label='main_content' desc='main_content' css='css/main.css'
type='richtext'>
<div class="content">
</cms:editable>

Maybe you should try it like this -
Code: Select all
<div class="container">

    <div class="row">

        <div class="col-md-12">
            <div class="content">
                <cms:editable name='main_content' label='main_content' desc='main_content' css='css/main.css'   
                type='richtext'>
                </cms:editable>       
            </div>
        </div>

    </div>
</div>

As for the CSS not showing up, perhaps the relative path does not resolve to the right location. Please try using an absolute path as discussed in the docs - http://docs.couchcms.com/tags-reference ... t.html#css

Hope it helps.
KK wrote: Hi,

Going by the code you posted, one possible reason behind the problem could be that the content made editable will result in invalid HTML markup (no closing tag for <div class="content">)-
<cms:editable name='main_content' label='main_content' desc='main_content' css='css/main.css'
type='richtext'>
<div class="content">
</cms:editable>

Maybe you should try it like this -
Code: Select all
<div class="container">

    <div class="row">

        <div class="col-md-12">
            <div class="content">
                <cms:editable name='main_content' label='main_content' desc='main_content' css='css/main.css'   
                type='richtext'>
                </cms:editable>       
            </div>
        </div>

    </div>
</div>

As for the CSS not showing up, perhaps the relative path does not resolve to the right location. Please try using an absolute path as discussed in the docs - http://docs.couchcms.com/tags-reference ... t.html#css

Hope it helps.


Wow, thank you very much. You just helped me a lot when my brain wasn't working. Thank you for this really great CMS.

Best regards
3 posts Page 1 of 1