Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Code: Select all
<cms:if k_success >
         <div class="k_successmessage">
            <cms:send_mail from=k_email_from to=k_email_to subject='New message from QuantumSLP'>
               The following is an email sent by a visitor to your site:
               <cms:show k_success />
            </cms:send_mail>

   <h3><cms:editable type="text" label="Form Success Message" name="form_success_message" /></h3>

         </div>
      </cms:if>



I thought that this would create a new region(Form Success Message) in the admin area, but it doesn't. Any tips on what to do ?
Hi,

You are trying to define the editable region within a conditional 'if' block - this will create the region only when the block is executed (i.e. form successfully submitted) by a super-admin. It'd also mean that during normal runs of the page, when this block is not executed, the region would get marked as deleted.

So, the correct way would be to define the region within the <cms:template> block at the top of the template and then use <cms:show form_success_message /> in the success condition.

Hope it helps.
Thanks KK ! You made me look silly for the nth time :D
3 posts Page 1 of 1