I am trying to add the captcha core/text_list block
to the wishlist_index_share
handle in the wishlist.xml
layout file but the block is not displayed.
Here is my code:
<wishlist_index_share translate="label">
<label>Customer My Account Wishlist Sharing Form</label>
<!-- Mage_Wishlist -->
<update handle="customer_account" />
<reference name="my.account.wrapper">
<block type="wishlist/customer_sharing" name="wishlist.sharing" template="wishlist/sharing.phtml"/>
<block type="core/text_list" name="form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>user_create</formId></action>
<action method="setImgWidth"><width>230</width></action>
<action method="setImgHeight"><width>50</width></action>
</block>
</block>
</reference>
<reference name="right">
<action method="unsetChild">
<name>wishlist_customer_sidebar</name>
</action>
</reference>
</wishlist_index_share>
I also added to Mage/captcha/etc
config.xml
to the frontend areas the following so the form would show up in the System -> configuration -> customer configuration -> captcha section form list:
<wishlist_index_share>
<label>Share Wishlist</label>
</wishlist_index_share>
Also in the same file, in customer -> captcha:
<always_for>
<user_create>1</user_create>
<user_forgotpassword>1</user_forgotpassword>
<guest_checkout>1</guest_checkout>
<register_during_checkout>1</register_during_checkout>
<wishlist_index_share>1</wishlist_index_share>
</always_for>
In the wishlist.phtml file I call the captcha block with the following line:
<?php echo $this->getChildHtml('form.additional.info'); ?>
Any ideas of what I need to add to the layout file? Thank you so much