;; Ceskyweb CMS 'Aladin' template for templating system ;; by: Michal Caplygin [michal.caplygin@ceskyweb.com] ;; last update: skoro furt, 2007-03-16 10:14:43 ;; indent: one space (! muhehe :] ) ;; ;; pozn: ;; - blokovým příkazům typu "test" se za uzavírací tag ;; přidává comment s attributy, které se testovaly ;; - stejně tak blokové HTML tagy dostanou za uzavírací ;; do komentáře svoje "důležité" attributy (až tu bodou) ;; - názvy příkazů jsou často KRÁCENÉ názvy tagů, nicméně ;; první cca 4 znaky jsou vždy 'originální' ;; - eXt:tagy začínají na "x" ;; [Macro definition] ;; ;; CMSkové attributy a jejich možné hodnoty ; ; source, měly by mít asi to samé %source%=@C source=,source=,,current;"current.content";item;root;index;.content;"$systemDate$"," %repSource%=@C source=,source=,,current.content;item.content;root.content;index.content;"$systemDate$"," %valueSource%=@C valueSource=,valueSource=,,current;item;root;index;"$systemDate$"," %valueASource%=@C valueASource=,valueASource=,,current;item;root;index;"$systemDate$"," %valueBSource%=@C valueBSource=,valueBSource=,,current;item;root;index;"$systemDate$"," ; ; %prop%=@C prop=,,,current;parent;objectName;objectNormalizedName;fileTypeName;content;"content.count";"current.content.count";location;date, %content%=@C content,,,current;item;root;index, %sname%=@C name,,,current;item;root;index, %variable%=@C var=,,,current;root;item, ; ; %dateFormat%=@C format=,format=,,"yyyy-MM-dd'T'HH:mm:ss.SSSZ";"yyyy-MM-dd";"yyyy-M-dd"," %numberFormat%=@C format=,format=,,"#,##0.##;#"," %locale%=@C locale(planovano)=,locale=,,"cs-CZ";"sk-SK";"en-US";"en-GB";"de-DE";"de-AT"," %sortBy%=@C sortBy=,sortBy=,,position;order;menuPosiotion;"-date";date;objectName;typeName;index," ; ; %maxItems%=@C maxItems=,maxItems=,,1;2;3;4;5;6;7;8;9;10;20," %path%=@E path=,path=,,," %name%=@E name=,name=,,," %item%=@E item=,item=,item,," %valueA%=@E valueA=,valueA=,,," %valueB%=@E valueB=,valueB=,,," ; ; bulíny %parseAsReference%=@K parseAsReference="true",parseAsReference="true" %noescape%=@K |noescape,|noescape %noescapeAtr%=@K noescape=,noescape="true" ; ; htmlkový attributy %id%%=@E id=,id=,,header;footer;menu;nav;content;cont," %class%=@E class=,class=,,header;footer;section;nav;container;menu;navig;navigation;aside;copyright;error;example;issue;note;search;warning;dialog," %style%=@E style=,style=,,color:red," ; ; ; ; obecniny ; [. |B properta (bez tečky)] %prop% ; [%-- --% |B comment] <%-- §| --%> ; [%-- --% |B comment bloku] <%-- §| --%> ; [${} |B výpis proměnné]*Shift+Ctrl+X ${%variable%§|%noescape%} ; ; ; ; [alterItTpl |B (sudá itemT.)] ; [itemTpl |B ] ; [commonItTpl |B (po itemT či alterT)] ; [separatorTpl |B (mezi iteracemi)] ; [isNotNullTpl |B (!NULL) ] §| ; [isNullTpl |B (NULL) ] §| ; [notEqualTpl |B (!=) ] §| ; [equalTpl |B (==) ] §| ; [lessTpl |B (<<)] §| ; [gerTpl |B (>>)] §| ; [lessOrEqTpl |B (<=)] §| ; [gOrEqTpl |B (=>)] §| ; ; ; ; [callableTpl |B ] <%-- %name% --%> ; [callTpl |B ] |§ ; [defSource |B ] |§ ; [defContent |B Content] ; §%content%| ; [defAdd |B ${a}b] |${%content%|noescape}§ ; [defY |B a = a ? 'a' ] %content% <%-- valueSource="%content%" --%> ; [defZ |B (a && a!='') b = a ] <%-- valueASource="%content%" ? valueB="" --%> <%-- valueSource="%content%" --%> ; ; [write |B ] |§ ; [iterate |B ] <%-- %repSource% --%> ; [repeater |B ] <%-- %repSource% --%> ; [test1 |B ] §| <%-- %valueSource% --%> ; [test2 |B ] §| <%-- %valueASource% %valueA% ? %valueBSource% %valueB% --%> ; [include |B ] |§ ; [dateForm |B ] |§ ; [numbForm |B ] |§ ; ; ; ; snippety "ze života" ; [test3full |B test1+2 se v‘im v‘udy] <%-- valueASource="%prop%" ? valueB="" --%> <%-- valueSource="%prop%" --%> ; ; [test3 |B test1+2] <%-- valueASource="%prop%" ? valueB="" --%> <%-- valueSource="%prop%" --%> ; ; ; ; ; ( copypaste ), nemusí být atuální! ; [xcallableTpl |B volatelná ‘ablona] <%-- %name% --%> ; [xcallTpl |B volání ‘ablony] |§ ; [xdefS |B definice attributem source] |§ ; [xdefC |B definice obsahem tagu] §%content%| ; [xwrite |B write] |§ ; [xiterate |B iterátor] <%-- %source% --%> ; [xrepeater |B repeater] <%-- %repSource% --%> ; [xtest1 |B test1] §| <%-- %valueSource% --%> ; [xtest2 |B test2] §| <%-- %valueASource% %valueA% ? %valueBSource% %valueB% --%> ; [xinclude |B include] |§ ; [xdateForm |B datumový formát] |§ ; [xnumbForm |B číselný formát] |§ ; ; ;; EOF