Converting HTML to Concrete5
Permalink
I am a total newbie, and found a great video tutorial online about how to convert an HTML theme to C5. However, the series just seemed to get lost and I can't find where I left off. Can someone point me in the right direction, so I can watch this series from start to finish? It's really hard missing a step and trying to catch up when I can't find a big chunk of the tutorial. I really need to be able to watch them in order!
Hope my question makes sense.
Thank you!
Hope my question makes sense.
Thank you!
leave all the html in place.
replace all content with:
change the area name shown above as Main to a unique word. Spaces ok.
replace all content with:
<?php $a = new Area('Main'); $a->display($c); ?>
change the area name shown above as Main to a unique word. Spaces ok.
in your footer, before the </body> tag put this:
<?php View::element('footer_required') ?>
just after your <head> tag put this
name your html file "default.php"
and you are done.
<?php View::element('header_required'); ?>
name your html file "default.php"
and you are done.
There are other things you can do but that's really all you NEED.
I'm up to Episode 5 of the training videos, and guess what ... My admin area is gone! I opened up the site in a browser today to continue where I left off yesterday, and there's no option for the dashboard, editing, or anything else on my local site! How do I get it back? Help!?!
You can always get to your Dashboard: http://yoursite.com/index.php/dashboard/...
That's assuming you're logged in: http://yoursite.com/index.php/login/...
Sounds like you missed the header_required above (which adds room for the Edit Toolbar at the top.
Or your theme could possibly be overriding that, absolutely positioned, etc.
Normally it's best if you can post a URL to your site - @tallacman is a wiz at theming.
That's assuming you're logged in: http://yoursite.com/index.php/login/...
Sounds like you missed the header_required above (which adds room for the Edit Toolbar at the top.
Or your theme could possibly be overriding that, absolutely positioned, etc.
Normally it's best if you can post a URL to your site - @tallacman is a wiz at theming.
Yes ... that did it. :) Newbie questions ... I will have a lot of them, I'm sure. :)
Except for the major PITA = autonav ;)
I had the header and footer ... I just didn't know where to go to log in! :)
I think all the official c5 videos are in the official c5 youtube collection:https://www.youtube.com/user/concrete5cms/videos...