I've created a two custom structural blocks. Both blocks are sidebars that are used for navigation, cart, authentication etc. Each structural block has its own core/template block which acts as a wrapper for the content.
<reference name="root">
<block type="core/text_list" name="sidebar.left" as="sidebar-left" translate="label">
<label>Mobile_Nav</label>
</block>
<block type="core/text_list" name="sidebar.right" as="sidebar-right" translate="label">
<label>Sidebar</label>
</block>
</reference>
Both blocks work fine, and I've added multiple customs and non default blocks to them. However, I fail at loading a custom block responsible for login/authentication. I can however load this block in the content block.
<reference name="sidebar.right">
<block type="core/template" name="sidebar.right.content" template="page/html/sidebar-right.phtml">
<block type="checkout/cart_sidebar" name="cart_sidebar" as="sidebar.cart" template="checkout/cart/sidebar.phtml"/>
<block type="ajaxauthentication/sidebar" name="authentication_sidebar" as="authentication" template="ajaxauthentication/welcome.phtml" />
<action method="setChild"><child>"authentication_sidebar"</child><alias>authentication</alias></action>
</block>
</reference>
I suspect it has something to do with that the structural block does not yet exist when I call the ajaxauthentication block. However, I am neither sure nor clueless how to solve it.