Unable to edit my Areas (H/F loaded, no JS errors, z-index?)
Permalink 1 user found helpful
Hi Folks,
maybe anyone of you is able to help me with getting my areas editable.
When I changed the Theme to my own, editing disapeared so I started searching and came across problems with header or footer not loaded (but it is) and JS errors (none here) and read that the z-index could cause the problem.
So I checked back on my code and saw two z-index attributes being on 10 and 25 or something. When I read it could be, that editing controls are on a z-index of 5 I took down my values to 0 and 1 but I still see no editing controls?
The code of my template is quite easy:
It definately isn't the template itself right?
Thanks & greetings from Germany
maybe anyone of you is able to help me with getting my areas editable.
When I changed the Theme to my own, editing disapeared so I started searching and came across problems with header or footer not loaded (but it is) and JS errors (none here) and read that the z-index could cause the problem.
So I checked back on my code and saw two z-index attributes being on 10 and 25 or something. When I read it could be, that editing controls are on a z-index of 5 I took down my values to 0 and 1 but I still see no editing controls?
The code of my template is quite easy:
<?php // Include the header $this->inc('elements/header.php'); ?> <!-- Content area wrapper --> <div id="content" class="inner"> <div id="content_inner_wrapper"> <div id="content_inner"> <?php BeginContainer("content_slim white_100 padding_11"); BeginContainer("content_inner_full white_100 padding_6_4"); // Content area $content = new Area('Content'); $content->display($c); EndContainer();
Viewing 15 lines of 37 lines. View entire code block.
It definately isn't the template itself right?
Thanks & greetings from Germany
![Job](/files/avatars/113019.jpg)
Are you using advanced permissions?
Yes I do
I know tried to remove anything that could be overlaying but it doesn't seem to work.
Maybe I could go the other way around and force the C5-Controls to Z-Index 1000 to be definatly secure that it's not hidden by something?
Are the controls inside of div#ccm-page-controls-wrapper ?
Greets
Maybe I could go the other way around and force the C5-Controls to Z-Index 1000 to be definatly secure that it's not hidden by something?
Are the controls inside of div#ccm-page-controls-wrapper ?
Greets
Dear SlapY,
i have the same problem too.
but i try to disable my javascript at the header or footer element, and the problem solve.
maybe C5 expert can give more correct answer to put your own javascript to C5.
I hope this works...
regards,
Steven
i have the same problem too.
but i try to disable my javascript at the header or footer element, and the problem solve.
maybe C5 expert can give more correct answer to put your own javascript to C5.
I hope this works...
regards,
Steven
When I add the OP's code to a Page Type, I get this error:
The core doesn't have such a function, to my knowledge.
Also, you don't need to use a different variable each time a new area is created. Sooner or later you will end up using a variable that's already in use.
Dangerous...
C5 convention...
$a = new Area('whatever') can be used for every area.
Fatal error: Call to undefined function begincontainer()
The core doesn't have such a function, to my knowledge.
Also, you don't need to use a different variable each time a new area is created. Sooner or later you will end up using a variable that's already in use.
Dangerous...
$content = new Area('Content'); $content->display($c);
C5 convention...
$a = new Area('Content'); $a->display($c);
$a = new Area('whatever') can be used for every area.