Magento Forum

   
Have an AJax Context ? 
 
nfabre
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2007-08-31
Limoges (France)
 

In front office is it possible to perform the same action with Ajax or with a direct url and load a different section layout ?

<layout version="0.1.0">
    <!-- 
load direct url -->
    <
module_index_index>
        <
reference name="root">
            <
action method="setTemplate"><template>page/2columns.phtml</template></action>
        </
reference>
        <
reference name="content">
            <
block type="module_index_index/send" name="module.send" template="module/send.phtml" />
        </
reference>
    </
module_index_index>  
    <!-- 
load ajax -->  
    <
ajax>
         <
block type="page/html" name="root" output="toHtml" template="page/ajax.phtml">
            <
block type="core/store" name="store" as="store"/>
            <
block type="core/text_list" name="content" as="content"/>
        </
block>
    </
ajax>
</
layout>

And if is possible, i hope that we should not modify the core, just modify xml config file ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top