config.xml 5.24 KB
<?xml version="1.0" encoding="UTF-8"?>
<config>
	<!-- versionierung des moduls - 
		wichtig vor alle dem auch im Zusammenhang mit dem Datenbankinstallationsskript
	-->
	<modules>
		<Anc_Image>
			<version>0.0.3</version>
		</Anc_Image>
	</modules>
	<!-- was im frontend passiert -->
	<frontend>
		<!-- einbindung der layoutkonfiguration (s.u.) -->
		<layout>
			<updates>
				<Anc_Image>
					<file>anc/image.xml</file>
				</Anc_Image>
			</updates>
		</layout>
		<!-- damit die controller funktionen über eine url erreichbar sind (s.u.) -->
		<routers>
			<!--Umleitung bzw aktivierung der controllers-->
			<anc_image>
				<use>standard</use>
				<args>
					<!-- alle urls die mit "http://magento/ancimage" werden ins modul Anc_Image umgeleitet -->
					<module>Anc_Image</module>
					<frontName>ancimage</frontName>
				</args>				
			</anc_image>
		</routers>
		<events>
			<sales_order_save_commit_after>
				<observers>
					<!--                    <anc_printconfigproduct_attribute_set_load_before>
						<type>singleton</type>
						<class>anc_printconfigproduct/observer</class>
						<method>copyAttributeset</method>
					</anc_printconfigproduct_attribute_set_load_before>					-->
					<anc_image_save_image_order_link>
						<type>singleton</type>
						<class>anc_image/observer</class>
						<method>saveImageOrderLink</method>
					</anc_image_save_image_order_link>
				</observers>
			</sales_order_save_commit_after>			
		</events>
	</frontend>	
	
	<global>
		<helpers>
			<anc_image>
				<class>Anc_Image_Helper</class>
			</anc_image>
		</helpers>		
		
		<!-- dem system bekannt machen das block klassen existieren -->
		<blocks>
			
			
			
			
			<anc_image>
				<class>Anc_Image_Block</class>
			</anc_image>
			<!-- Wichtig damit die Blocks zum editieren richtig geladen werden-->
			<anc_image_adminhtml>
                <class>Anc_Image_Block_Adminhtml</class>
            </anc_image_adminhtml>
			<adminhtml>
				<!-- @anc_image_eingabetyp -->
				<rewrite>
					<catalog_product_edit_tab_options_option>Anc_Image_Block_Adminhtml_Catalog_Product_Edit_Tab_Options_Option</catalog_product_edit_tab_options_option>
				</rewrite>
			</adminhtml>			
		</blocks>
		<catalog>
			<product>
				<options>
					<custom>
						<groups>
							<!-- @anc_image_eingabetyp -->
							<ancimage translate="label" module="anc_image">
								<label>NcImage</label>
								<render>anc_image/adminhtml_catalog_product_edit_tab_options_type_ancimage</render>
								<types>
									<ancimage_type translate="label" module="anc_image">
										<label>Image</label>
									</ancimage_type>									
								</types>
							</ancimage>							
						</groups>				 
					</custom>
				</options>
			</product>
		</catalog>
		
		<!-- die konfiguration der datenbank schnittstelle -->
		<models>
			<anc_image>
				<class>Anc_Image_Model</class>
				<!-- folgendes ist ein verweis auf den nachfolgenden tag <anc_image_resource> -->
				<resourceModel>anc_image_resource</resourceModel>
			</anc_image>
			<anc_image_resource>
				<class>Anc_Image_Model_Resource_Mysql4</class>
				<!-- entitie's mit s hier können mehrere Tabellen(namen) untergebracht werden -->
				<entities>
					<ncimage>
						<table>anc_image_ncimage</table>
					</ncimage>
					<ncimage_quoteitemoption>
						<table>anc_image_ncimage_quoteitemoption</table>
					</ncimage_quoteitemoption>	
<!--					<image>
						<table>anc_image_album</table>
					</album>-->
	<!--				<album_list>
						<table>anc_image_album_list</table>
					</album_list>				-->
				</entities>
			</anc_image_resource>
			<catalog>
				<!-- @anc_image_eingabetyp -->
				<rewrite>
					<product_option>Anc_Image_Model_Catalog_Product_Option</product_option>
				</rewrite>
			</catalog>			
		</models>
		<resources>
			<!-- hier verbirgt sich das installationsskript um die datenbanktabellen zu erstellen -->
			<anc_image_setup>
				<setup>
					<module>Anc_Image</module>
					<class>Mage_Sales_Model_Mysql4_Setup</class>
				</setup>
				<connection>
					<use>core_setup</use>
				</connection>				
			</anc_image_setup>
			<!-- datenbank verbindungen -->
			<anc_image_write>
				<connection>
					<use>core_write</use>
				</connection>
			</anc_image_write>
			<anc_image_read>
				<connection>
					<use>core_read</use>
				</connection>
			</anc_image_read>			
		</resources>
	</global>
	<admin>
        <routers>
            <anc_image>
                <use>admin</use>
                <args>
					<modules>
                        <certification_may before="Mage_Adminhtml">Anc_Image_Adminhtml</certification_may>
                    </modules>
                    <module>Anc_Image</module>
                    <frontName>image</frontName>
                </args>
            </anc_image>
        </routers>
    </admin>	
	<adminhtml>
		<menu>
			<Anc_Anc module="anc_image">
				<title>ANC</title>
				<sort_order>71</sort_order>
				<children>
					<ncalbum module="anc_image">
						<title>Bilder</title>
						<sort_order>1</sort_order>
						<action>image/adminhtml_image/list</action>
					</ncalbum>
					<!--	@backend_grid-->
<!--					<ncimage module="anc_image">
						<title>Image</title>
						<sort_order>2</sort_order>
						<action>image/adminhtml_album/list</action>
					</ncimage>				-->
				</children>               	
			</Anc_Anc>
		</menu>
	</adminhtml>
</config>