image.xml 8.98 KB
<?xml version="1.0"?>
<layout version="0.1.0">
	 <!-- in "meinem Benutzerkonto" wird  ein weiterer link angezeigt, der über den Controller die neue seite anzeigt -->
    <customer_account>
        <reference name="customer_account_navigation">
            <action method="addLink"><name>galleriesmanager</name><path>ancimage/customer/galleriesmanager</path><label>Verwalten Sie Ihre Bilder</label><urlParams /></action>		
        </reference>
		<reference name="head">
			<action method="addJs"><script>Anc/Image/extlib/dropzone.js</script></action>		
			<action method="addCss"><stylesheet>css/anc/image/dropzone.css</stylesheet></action>
			<action method="addJs"><script>Anc/Image/extlib/jquery.prettyPhoto.js</script></action>		
			<action method="addCss"><stylesheet>css/anc/image/prettyPhoto.css</stylesheet></action>			
		</reference>		
		<reference name="right"></reference>
    </customer_account>	
	
	<catalog_product_view translate="label">
		<reference name="head">
			<action method="addCss"><stylesheet>css/anc/image/dropzone.css</stylesheet></action>
			<action method="addCss"><stylesheet>css/anc/lib/ancextension_type.css</stylesheet></action>						
			<action method="addCss"><stylesheet>css/anc/image/customer_galleriesmanager.css</stylesheet></action>						
			<action method="addCss"><stylesheet>css/anc/image/prettyPhoto.css</stylesheet></action>			
			<action method="addJs"><script>Anc/Image/Type.js</script></action>		
			<action method="addJs"><script>Anc/Image/extlib/dropzone.js</script></action>		
			<action method="addJs"><script>Anc/Image/extlib/jquery.prettyPhoto.js</script></action>	
			
			<!--jquery version problematik @since 20140828-->	
					<action method="addJs"><script>Anc/Lib/croppic/croppic.min.js</script></action>		
					<action method="addJs"><script>Anc/Lib/Croppic.js</script></action>	
			
				
						
			<action method="addCss"><stylesheet>css/anc/lib/croppic/croppic.css</stylesheet></action>			
			
		</reference>
		<reference name="product.info">
		</reference>		
		<reference name="product.info.options">
			<!-- @anc_image_eingabetyp -->
			<action method="addOptionRenderer">
				<type>ancimage</type>
				<block>anc_image/catalog_product_view_options_type_ancimage</block>
				<template>anc/image/catalog/product/view/options/type/ancimage.phtml</template>
			</action>
		</reference>		
	</catalog_product_view>

	<!--	for the @AncBundleproduct Extension and the sepcial catalog_product_subview @anc_image_eingabetyp	-->
	<catalog_product_subview translate="label">
		<reference name="head">
			<action method="addCss"><stylesheet>css/anc/lib/ancextension_type.css</stylesheet></action>						
			<action method="addCss"><stylesheet>css/anc/image/dropzone.css</stylesheet></action>
			<action method="addCss"><stylesheet>css/anc/image/prettyPhoto.css</stylesheet></action>		
			<action method="addJs"><script>Anc/Image/Type.js</script></action>		
			<action method="addJs"><script>Anc/Image/extlib/dropzone.js</script></action>		
			<action method="addJs"><script>Anc/Image/extlib/jquery.prettyPhoto.js</script></action>		
			<action method="addJs"><script>Anc/Lib/croppic/croppic.min.js</script></action>		
			<action method="addJs"><script>Anc/Lib/Croppic.js</script></action>		
		</reference>
		<reference name="content">
			<block type="core/template" name="product.subview.image" template="anc/image/manipulate_catalog_product_subview.phtml"/>
		</reference>
		<reference name="product.info">
		</reference>		
		<reference name="product.info.options">
			<!-- @anc_image_eingabetyp -->
			<action method="addOptionRenderer">
				<type>ancimage</type>
				<block>anc_image/catalog_product_view_options_type_ancimage</block>
				<template>anc/image/catalog/product/view/options/type/ancimage.phtml</template>
			</action>
			<action method="addOptionRenderer">
				<type>ancaddressimport</type>
				<block>anc_addressimport/catalog_product_view_options_type_ancaddressimport</block>
				<template>anc/addressimport/catalog/product/view/options/type/ancaddressimport.phtml</template>
			</action>			
		</reference>		
	</catalog_product_subview>

	<anc_image_customer_gallerysimple>
		<reference name="head">
			<action method="addJs"><script>Anc/Image/extlib/jquery.prettyPhoto.js</script></action>		
		</reference>
		<reference name="content">
			<block type="anc_image/galleriesmanager" name="anc_image_gallerysimple" template="anc/image/customer_gallerysimple.phtml" />
		</reference>		
	</anc_image_customer_gallerysimple>

	<anc_image_customer_showncimageform>
		<reference name="head">
<!--			<action method="addCss"><stylesheet>css/anc/lib/ancextension_type.css</stylesheet></action>						
			<action method="addJs"><script>Anc/Image/Form.js</script></action>		
			<action method="addCss"><stylesheet>css/anc/image/dropzone.css</stylesheet></action>-->
			<action method="addCss"><stylesheet>css/anc/image/prettyPhoto.css</stylesheet></action>		
			<action method="addJs"><script>Anc/Image/extlib/dropzone.js</script></action>		
			<!--<action method="addJs"><script>Anc/Image/Form.js</script></action>-->		
			
			<action method="addJs"><script>Anc/Image/extlib/jquery.prettyPhoto.js</script></action>		
			<!--notwendig für einzelansicht nicht aber wenn ajaxmaessig geladen wird-->
							<!--<action method="removeItem"><type>js</type><name>jquery/jquery-2.0.2.min.js</name></action>-->
							
							
							
							<!--jquery version problematik @since 20140828-->
									<!--<action method="removeItem"><type>js</type><name>jquery/jqueryui/jquery-ui.min.js</name></action>-->





							<action method="removeItem"><type>js</type><name>Anc/Printconfigproduct/tinymce/js/tinymce/tinymce.min.js</name></action>
			
		</reference>		
		<reference name="content">
			<block type="anc_image/galleriesmanager" name="anc_image_showncimageform" template="anc/image/customer_showncimageform.phtml" />
		</reference>
	</anc_image_customer_showncimageform>
		
	<!-- Kürzel_extensionname_contraller_funcion bzw module_controller_action  
		die controller funktion muss kleingeschrieben sein, nur das A von Action muss groß
		Ansicht wird konfiguriert -->
    <anc_image_customer_galleriesmanager>
		<!-- einbindung von javascript und css -->
			<reference name="head">
				<action method="addCss"><stylesheet>css/anc/image/customer_galleriesmanager.css</stylesheet></action>						
				<action method="addCss"><stylesheet>css/anc/lib/ancextension_type.css</stylesheet></action>						
				<action method="addCss"><stylesheet>css/anc/image/dropzone.css</stylesheet></action>
				<action method="addCss"><stylesheet>css/anc/image/prettyPhoto.css</stylesheet></action>		
				
				<action method="addJs"><script>Anc/Image/extlib/dropzone.js</script></action>		
				<action method="addJs"><script>Anc/Image/Type.js</script></action>		
				<action method="addJs"><script>Anc/Image/extlib/jquery.prettyPhoto.js</script></action>		
				<!--<action method="addJs"><script>Anc/Image/extlib/dropzone.js</script></action>-->		
				<!--<action method="addCss"><stylesheet>css/anc/image/dropzone.css</stylesheet></action>-->

			</reference>
		<!-- einbindung des templates -->
			<reference name="content">
				<!--
					type: module/block klasse
					name: derzeit egal, so lange (wie gerade der fall) nicht zB mit getChildHtml aufgerufen wird 
					template: /var/www/Magento/Magento18/app/design/frontend/base/default/template/anc/image/customer_galleriesmanager.phtml liegen
				-->
				<block type="anc_image/galleriesmanager" name="anc_image_galleriesmanager" template="anc/image/customer_galleriesmanager.phtml" />
			</reference>
			<reference name="right">
				<!--<action method="insert"><name>customer_account_navigation</name></action>-->
				<block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
					<action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
					<action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
					<action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
					<action method="addLink" translate="label" module="sales"><name>orders</name><path>sales/order/history/</path><label>My Orders</label></action>
					<action method="addLink"><name>galleriesmanager</name><path>ancimage/customer/galleriesmanager</path><label>Verwalten Sie Ihre Bilder</label><urlParams /></action>					
				</block>				
				
				<action method="unsetChild"><name>cart_sidebar</name></action>
				<action method="unsetChild"><name>right.reports.product.viewed</name></action>	
				<remove name="right.poll" />		
				<remove name="sale.reorder.sidebar" />		
				<remove name="wishlist_sidebar" />
				<action method="unsetChild"><name>right.reports.product.compared</name></action>					
				<action method="unsetChild"><name>right.permanent.callout</name></action>					
								
			</reference>
    </anc_image_customer_galleriesmanager>	
	
</layout>