Couple of questions ... Areas and Blocks

Permalink
Hello .. my first time here and first install with C5, slowly getting my feet wet. Just when I say 'oh, that was easy', something new comes along and stumps me for a few ;)

I am trying to figure out a couple of things and was hoping someone could point me in the right direction.

1. Where do you define custom 'areas' in addition to the default ones. For example, lets say i wanted to have a custom area called 'Specials'. Where would i define this?

2. I have a custom navigation that i built. Blocks seem intimidating to me a little bit b/c I am more a designer than I am a programmer. Assuming I have no need for extra pages, only to edit the ones I will be making... there shouldn't be any issues hard coding the links?

If i wanted for the navigation to be dynamic and expandable when if I were to add pages later... how much of a pita is that to do... any reference to doing such a task?

Thanks in advance!

 
cgrauer replied on at Permalink Reply
cgrauer
1. As long as you don't use custom page types and themes you'll find it in the /concrete/themes/default/default.php, full.php, left_sidebar.php etc. depending on tha page type you use. If you use custom themes you'll find these files in the theme's folder at /concrete/themes/... for c5 themes and /themes/... for custom themes. And this is the code to create an area object and display it.

$as = new Area('YourArea');
$as->display($c);


see also:http://www.concrete5.org/help/building_with_concrete5/developers/th...


2. Why do you use a cms if you want to hardcode your navigation??? Use the autonav block for navigation, it's very flexible. Read this:http://www.concrete5.org/help/editing/add_an_auto-navigation/...
You can also customize it's view:http://www.concrete5.org/index.php?cID=2921...
and you can put it in your theme, so you don't even need to insert a block on every page. It appears "automatically":
http://www.concrete5.org/index.php?cID=22440...

Do not hardcode, use c5's API and framework functions, it's cool! You don't need to be a programmer to copy and paste some php code...