Concrete5 – Blocks within Templates
Concrete5 offers you a lot of blocks you can add to your page. But sometimes you might want to have a certain block on every page. How do you do that?

There are two possibilities!
Page Defaults
Concrete5 has a feature called “Page Defaults”. You’ll find it in the dashboard:
By clicking on “Defaults” you’ll able the “Page Type” instead of a simple page. When you add a block there, it will appear on every new page you add. If you click on a block while you’re editing a “Page Type”, you’ll see this menu:
It’s quite handy as it makes it possible to deploy the blocks you’ve just added to the existing pages. It’s probably still easier if you add the blocks to the page type before you create all the pages, but that’s up to you.
If you add your default blocks using this method, they’ll be editable by the users unless you use the advanced permissions model. Using the advanced permission model is fine, but sometimes too complicated for a small page. What if you want to make sure every page contains a navigation without using the advanced permission model? Go to the next page!
Pages: 1 2
8 Comments



on May 12th, 2009 at 16:18:40
Wie schaffe ich es, dass der Menüpunkt der aktuellen Seite hervorgehoben wird (active)?
on May 12th, 2009 at 16:23:27
Das ist abhängig vom Template. Im Standard-Template wird zum Beispiel die CSS Klasse “nav-selected” verwendet. Also ganz einfach im CSS eine Anweisung wie diese einfügen:
.nav-selected {
font-weight: bold;
}
on September 29th, 2009 at 17:12:39
Sprekenzie deutsch? No, not really, but I am learning C5 thanks to these tutorials. Thanks!
on September 29th, 2009 at 18:35:34
Here are the autonav attributes and values I found by looking at the code:
controller->orderBy = ‘display_asc’;
//$bt_links->controller->displayUnavailablePages = ‘false’;
$bt_links->controller->displayPages=’second_level’;
$bt_links->controller->displaySubPages = ‘none’;
$bt_links->controller->displaySubPageLevels = ‘enough’;
$bt_links->render(‘view’);
?>
‘orderBy’
‘display_asc’ - in their sitemap order
‘display_desc’ - in reverse sitemap order
‘chrono_desc’ - with the most recent first
‘chrono_asc’ - with the earliest first
‘alpha_asc’ - in alphabetical order
‘alpha_desc’ - in reverse alphabetical order
‘displayUnavailablePages’
?’true’/'false’? (not sure if value be quoted)
‘displayPages’
‘top’ - at the top level
’second_level’ - at the second level
‘third_level’ - at the third level
‘above’ - at the level above
‘current’ - at the current level
‘below’ - at the level below
‘custom’ - beneath a particular page
‘displaySubPages’
‘none’ - none
‘relevant’ - Relevant sub pages
‘relevant_breadcrumb’ - Display breadcrumb trail
‘all’ - Display all
‘displaySubPageLevels’
‘enough’ - Display sub pages to current
‘enough_plus1′ - Display sub pages to current +1
‘all’ - Display all
‘custom’ - Display a custom amount
‘render’
‘view’ – use default view
‘templates/custom_view’ – apply custom template
on November 8th, 2009 at 07:54:19
Die Zeilenangaben passen überhaupt nicht zum angezeigten Code.
Gruß
on November 8th, 2009 at 10:19:35
Hab’s korrigiert! Danke!
on June 1st, 2010 at 16:08:32
I used this method to modify the “full width” page type, adding a phone number above the navigation. But when I view the site following the update, the phone number is located below the navigation. If I go back to the “full width” template, the phone number is in the correct location. Why is it flipping positions on the child pages?
on June 3rd, 2010 at 09:40:17
I doubt that’s related to this block. You should probably use a forum and post a link to the site – it’s a lot easier to help you if it isn’t just about theory.