YAML für OXID

Hallo,

nach einiger Zeit haben wir eine erste BETA unseres OXID-Templates auf YAML-Basis fertig gestellt.

http://www.oxid-esales.com/de/exchange/extensions/oxid-template-auf-basis-von-yaml

[QUOTE=BTeßmann;14939]Hallo,

nach einiger Zeit haben wir eine erste BETA unseres OXID-Templates auf YAML-Basis fertig gestellt.

http://www.oxid-esales.com/de/exchange/extensions/oxid-template-auf-basis-von-yaml[/QUOTE]
Interessant, werde ich mir mal zu Gemüte führen…

Es gab mal das Gerücht, dass es auch YAML für Magento geben soll…

Ist da (noch) was dran, oder habt ihr aufgegeben?

Wir haben eine Beta fertig gemacht, aber es kam so gut wie kein Feedback, deshalb haben wir es erstmal nicht weiter verfolgt. http://forum.itratos.de/showthread.php?p=142872#post142872

Hi,

ja ist komisch, aber YAML kennen vielleicht doch viele Shopbetreiber (noch) nicht so. Ich persönlich bin ein echter Fan von diesem Framework. Habt Ihr schon einen Preis wenn das Template dann das Beta-Stadium verläßt?

Gruß
Alex

das bezog sich sicherlich auf das Yaml für Magento … :wink:

Hallo Björn, schön Dich jetzt auch hier zu lesen …

Hi :wink:

Preislich wird es zwischen 50-100 € sein, steht noch nicht ganz fest. Von der Lizenz her wird es wahrscheinlich keine generelle Lizenz mehr geben wie bei xtc, aber eine sehr faire Begrenzung für Entwickler, wahrscheinlich 10 Installationen.
Alles aber ohne Gewähr.

[QUOTE=Hupi;15098]Hi,

ja ist komisch, aber YAML kennen vielleicht doch viele Shopbetreiber (noch) nicht so. Ich persönlich bin ein echter Fan von diesem Framework. Habt Ihr schon einen Preis wenn das Template dann das Beta-Stadium verläßt?

Gruß
Alex[/QUOTE]
Ich denke, das liegt weniger an der mangelnden Bekanntheit von YAML, als an der (zu Recht!) mangelnden Verbreitung von Magento.

An Informationen über YAML kommt man ja in keinem Shop-Forum vorbei…

Und sicher auch an dem indiskutablen (um nicht zu sagen “bescheuerten”) “Template”-Konzept von Magento…

Insbesondere die Layout-Definition des “Templates” verdient das Attribut “[B]völlig praxisfremd[/B]”.

Was bei OXID in den Templates “_header”, “_left”, “_right”, “_footer” (bzw. in meiner Variante nur in “_index”) definiert wird, muss bei Magento in vielen, vielen (händisch zu erstellenden) XML-Dateien definiert/modifiziert werden.

Und die sehen dann so “übersichtlich” aus wie hier:
(Ich frage mich immer noch, was die Magento-Entwickler, die das verbrochen haben, geraucht haben, als ihnen das einfiel…)
Der folgende Text ist stark gekürzt, weil die Foren-Software nur 10.000 Zeichen erlaubt…

Insgesamt sind das 360 Zeilen.

Und das ist nur eine von ca. 40 XML-Dateien zur Layout-Definition des Magento-Irgendwas (Template möchte ich das eigentlich gar nicht mehr nennen. Mit diesem Begriff verbindet man doch eher so komfortable Definitionen wie bei xtCommerce oder OXID).

BODY{font:x-small 'Verdana';margin-right:1.5em} .c{cursor:hand} .b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none} .e{margin-left:1em;text-indent:-1em;margin-right:1em} .k{margin-left:1em;text-indent:-1em;margin-right:1em} .t{color:#990000} .xt{color:#990099} .ns{color:red} .dt{color:green} .m{color:blue} .tx{font-weight:bold} .db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier} .di{font:small Courier} .d{color:blue} .pi{color:blue} .cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888} .ci{font:small Courier;color:#888888} PRE{margin:0px;display:inline}  <?xml  version="1.0" ?> 
 - <!-- /**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

Supported layout update handles (action):
- catalog_product_gallery
- catalog_product_compare_index

Supported layout update handles (special):
- default
- catalog_category_default
- catalog_category_layered
- catalog_product_view

  -->   
  [-](http://www.oxid-esales.com/forum/#) <layout version="[B]0.1.0[/B]">
  - <!-- Default layout, loads most of the pages
  -->   
  [-](http://www.oxid-esales.com/forum/#) <default>
  - <!--  Mage_Catalog   -->   
  [-](http://www.oxid-esales.com/forum/#) <reference name="[B]top.menu[/B]">
     <block type="[B]catalog/navigation[/B]"  name="[B]catalog.topnav[/B]" template="[B]catalog/navigation/top.phtml[/B]" /> 

   </reference>


  [-](http://www.oxid-esales.com/forum/#) <reference name="[B]left[/B]">
   [-](http://www.oxid-esales.com/forum/#) <block type="[B]core/template[/B]"  name="[B]left.permanent.callout[/B]" template="[B]callouts/left_col.phtml[/B]">
   [-](http://www.oxid-esales.com/forum/#) <action method="[B]setImgSrc[/B]">
     <src>images/media/col_left_callout.jpg</src> 

   </action>


  [-](http://www.oxid-esales.com/forum/#) <action method="[B]setImgAlt[/B]"  translate="[B]alt[/B]" module="[B]catalog[/B]">
     <alt>Our customer service is available 24/7. Call us at (800)  DEMO-NUMBER.</alt> 

   </action>


  [-](http://www.oxid-esales.com/forum/#) <action method="[B]setLinkUrl[/B]">
     <url>checkout/cart</url> 

   </action>


   </block>


   </reference>


  [-](http://www.oxid-esales.com/forum/#) <reference name="[B]right[/B]">
     <block type="[B]core/template[/B]"  before="[B]cart_sidebar[/B]" name="[B]catalog.compare.sidebar[/B]" template="[B]catalog/product/compare/sidebar.phtml[/B]" /> 

    <block type="[B]core/template[/B]"  name="[B]right.permanent.callout[/B]" template="[B]callouts/right_col.phtml[/B]" /> 

   </reference>


  [-](http://www.oxid-esales.com/forum/#) <reference name="[B]footer_links[/B]">
   [-](http://www.oxid-esales.com/forum/#) <action method="[B]addLink[/B]"  translate="[B]label title[/B]" module="[B]catalog[/B]"  ifconfig="[B]catalog/seo/site_map[/B]">
     <label>Site Map</label> 

    <url helper="[B]catalog/map/getCategoryUrl[/B]" /> 

    <title>Site Map</title> 

   </action>


   </reference>


   </default>


 - <!-- Category default layout
  -->   
  [-](http://www.oxid-esales.com/forum/#) <catalog_category_default>
   [-](http://www.oxid-esales.com/forum/#) <reference name="[B]left[/B]">
     <block type="[B]catalog/navigation[/B]"  name="[B]catalog.leftnav[/B]" after="[B]currency[/B]"  template="[B]catalog/navigation/left.phtml[/B]" /> 

   </reference>


  [-](http://www.oxid-esales.com/forum/#) <reference name="[B]content[/B]">
   [-](http://www.oxid-esales.com/forum/#) <block type="[B]catalog/category_view[/B]" name="[B]category.products[/B]" template="[B]catalog/category/view.phtml[/B]">
   [-](http://www.oxid-esales.com/forum/#) <block type="[B]catalog/product_list[/B]"  name="[B]product_list[/B]" template="[B]catalog/product/list.phtml[/B]">
   [-](http://www.oxid-esales.com/forum/#) <block type="[B]catalog/product_list_toolbar[/B]" name="[B]product_list_toolbar[/B]" template="[B]catalog/product/list/toolbar.phtml[/B]">
  - <!--  The following code shows how to set your own pager increments   -->   
 - <!--                             <action method="setDefaultListPerPage"><limit>4</limit></action>
                            <action method="setDefaultGridPerPage"><limit>9</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                          -->   
   </block>


  [-](http://www.oxid-esales.com/forum/#) <action method="[B]setToolbarBlockName[/B]">
     <name>product_list_toolbar</name> 

   </action>


   </block>


   </block>


   </reference>


   </catalog_category_default>


 - <!-- Category layered navigation layout
  -->   
  [-](http://www.oxid-esales.com/forum/#) <catalog_category_layered>
   [-](http://www.oxid-esales.com/forum/#) <reference name="[B]left[/B]">
     <block type="[B]catalog/layer_view[/B]"  name="[B]catalog.leftnav[/B]" after="[B]currency[/B]"  template="[B]catalog/layer/view.phtml[/B]" /> 

   </reference>


  [-](http://www.oxid-esales.com/forum/#) <reference name="[B]content[/B]">
   [-](http://www.oxid-esales.com/forum/#) <block type="[B]catalog/category_view[/B]" name="[B]category.products[/B]" template="[B]catalog/category/view.phtml[/B]">
   [-](http://www.oxid-esales.com/forum/#) <block type="[B]catalog/product_list[/B]"  name="[B]product_list[/B]" template="[B]catalog/product/list.phtml[/B]">
  - <!--  <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action>   -->   
  [-](http://www.oxid-esales.com/forum/#) <block type="[B]catalog/product_list_toolbar[/B]" name="[B]product_list_toolbar[/B]" template="[B]catalog/product/list/toolbar.phtml[/B]">
  - <!--  The following code shows how to set your own pager increments   -->   
 - <!--                             <action method="setDefaultListPerPage"><limit>4</limit></action>
                            <action method="setDefaultGridPerPage"><limit>3</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>all</limit><label>All</label></action>
                          -->   
   </block>

   usw. usw. noch viele Zeilen weiter.


Wer also glaubt, dass das OXID-Templating kompliziert und unübersichtlich ist, kennt Magento noch nicht!

Die Magento-Entwickler haben m.E. wirklich den Preis für das unverständlichste Templating-System redlich verdient…

darf man das Template dann praktisch verwenden - ich meine jetzt nicht verkaufen :wink:

greetz