block_parent
Tag block_parent fetches the parent block’s original code so the effective child code becomes a mix of the parent code plus the added child code that follows the <cms:block_parent />
.
Parameters
- none
Example
Parent
<head>
<cms:block 'head'>
<link rel="stylesheet" href="style.css" />
<title><cms:block 'title'></cms:block> - My Webpage</title>
</cms:block>
</head>
Child
<cms:block 'head' >
<cms:block_parent />
<style type="text/css">
.important { color: #336699; }
</style>
</cms:block>
Combined output
<head>
<link rel="stylesheet" href="style.css" />
<title><cms:block 'title'></cms:block> - My Webpage</title>
<style type="text/css">
.important { color: #336699; }
</style>
</head>
For more information visit page Template inheritance - a new method for organizing layouts