Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Load a local module
 
efuionut
Jr. Member
 
Total Posts:  3
Joined:  2008-07-30
 

I want to load a local module, to be visible in every page ( something like “Log Module"). How can I config the xml file to auto load the local module.

 
Magento Community Magento Community
Magento Community
Magento Community
 
davion
Jr. Member
 
Total Posts:  18
Joined:  2008-05-03
 

You can take a look for example at Poll molude xml config.

here is that section that you need adjust:
/app/design/frontend/default/default/layout/poll.xml

<!--
Default 
layoutloads most of the pages
-->

    <default>

        <!-- 
Mage_Poll -->
        <
reference name="right">
            <
block type="poll/activePoll" name="right.poll">
                <
action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
                <
action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
            </
block>
        </
reference>

    </default>
 
Magento Community Magento Community
Magento Community
Magento Community
 
efuionut
Jr. Member
 
Total Posts:  3
Joined:  2008-07-30
 

I don’t want to load a template. just a module, i want a script to run in every page to make a sistem log, in admin to see every editor activity.

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