$this->action not working in block manually inserted into template
PermalinkIt also seems that the header items in on_page_view aren't being inserted so I had to manually add them to the template.
Otherwise the addon is working fine embedded through code. Am I missing something with how to embed a block directly in the template through code or is this a bug? Here is my code to embed the addon:
$bt = BlockType::getByHandle('jb_register'); $bt->controller->signupMethod='go'; $bt->controller->style='tabbed'; $bt->controller->addToUserGroup=4; $bt->controller->hideWhenLoggedIn=1; $bt->controller->showWhenLoggedIn=0; $bt->controller->showWhenNotLoggedIn=1; $bt->controller->showLoginForm=1; $bt->controller->hideLoginFormRegistered=1; $bt->controller->showLogoutFormRegistered=1; $bt->controller->showPasswordRecover=1; $bt->controller->hidePasswordFormRegistered=1; $bt->controller->enableCaptcha=0; $bt->controller->redirectAfter=0; $bt->controller->redirectAfterLogin=0;

It may be easier to use simply edit a suitable global area into your theme and add the block to a global area.
For now I used the editor to embed it as a global block at the bottom of the page and hide it when not in edit mode. Luckily this is a block that I can hide since it is shown in an overlay as needed. The drawback is the block is visible and editable at the bottom of every page which is confusing to an editor to see that at the bottom everywhere.
http://www.concrete5.org/community/forums/customizing_c5/developer-...