Add 'header_required' problem

Permalink 1 user found helpful
Hello everyone.

(first of all, my English is not my first language, so sorry if the grammer is not that good)
Since today I am new with Concrete 5. I have read the whole website, watched some videos and after all I am very interessed in all the options Concrete 5 can give me.

So I tried to build something at my own.
I followed this videohttp://vimeo.com/2982834 so I can edit a HTML based website easily.

After a few minutes I have to delete the <title> and have to place this:

<?php
Loader::element('header_required');
?>

When I'm uploading all the files again and refreshing my website, there is just a margin-top of 49px but no dashboard area in the top of my website.

Then when I take a look at my code, it looks likes everything went fine. The php added some javascript and some links in my <head> but I do not see a thing of the dashboard.

With my HTML and CSS background the first thing I think of is a wrong path to the files. But after some searching trough the directory's I couldn't find anything.

Is there anyone who can help me with this problem, because I would love to start building websites with Concrete 5!

Ronnyrr
View Replies: View Best Answer
Mainio replied on at Permalink Best Answer Reply
Mainio
Make sure you also add the footer_required elements into your theme. This should be done BEFORE closing the body-tag, so before </body> in your theme:

<?php 
Loader::element('footer_required'); 
?>


Especially if you use v5.5.0+, this is extremely important.

Antti / Mainio
skingsford replied on at Permalink Reply
Just started with Concrete5 today.
Had the same problem. Your advice fixed it.
Will keep the forum at hand now.
Thank you.
adajad replied on at Permalink Reply
adajad
As Mainio already has pointed out, the footer_required code is essential since 5.5.0. What that code does is load all js required.

In addition to the video you are following, you should really read this excellent how-to on how to make a theme.

http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
Ronnyrr replied on at Permalink Reply
Ronnyrr
Mainio, thanks for your reply!
I added the footer_required and the dashboard worked!
I didn't know that was required to add in your default.php!

As I said, I am a beginner with Concrete 5!

Adajad, also thanks for your reply!
I am going to read that article!

Thanks!

EDIT: I've scrolled trough the article you've posted, adajad. But I'm afraid it won't help me much. I'am going to read the thing related to Concrete 5, but the most stept are just some basic stuff. Thanks anyways!
adajad replied on at Permalink Reply
adajad
I think that if you read the post a bit more closely you will see it has all the required elements to build a theme for concrete5. It basically tells you what you need to change in a regular html template to make a concrete5 theme.

That being said, I can see in the posts below that you are already up and running.
Ronnyrr replied on at Permalink Reply
Ronnyrr
I have a second, beginners, question.
Because I have made an new Area in my default.php and I edited it.

<?php
     $a = new Area('Main');
     $a->display($c);
?>


But where in my Dashboard can I find that area?
How can I make a new one, and how do I have to call it in my default.php?

I like the options Concrete haves, but the dashboard is still a mess for my. But with some help of you guys I am sure I can learn it and make some nice things. Once I know the basics I'm sure I can make a few pretty cool websites with Concrete!

EDIT: Never mind, it allready works, I guess I going to rock on this! :)
Mainio replied on at Permalink Reply
Mainio
You very rarely see any areas in the dashboard, this is what the "in-context" editing basically means. You see the areas when you pop the page in edit mode.

That said, you CAN actually also build areas that you see in the dashboard, e.g. if you want to have a common sidebar on multiple pages. This can be done through stacks:
http://www.concrete5.org/documentation/general-topics/scrapbooks...
http://www.concrete5.org/documentation/how-tos/developers/concrete5...

(don't mind they speak of "scrapbooks" there, scrapbooks used to do some of the functionality that stacks currently do)

Some times also global areas might come handy if you want to build an editable header/footer for instance. This basically means that once you have the global area included in the theme, any blocks added to that area will automatically show up on EVERY SINGLE page where you have included the global area. The second link above also gives you some information of this under "Global Areas".

Antti