Показать сообщение отдельно
Старый 24.09.2006, 14:28   #2
ahold
Новенький
 
Регистрация: 23.09.2006
Сообщений: 2
По умолчанию

Код:
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page


page.CSS_inlineStyle (
	#menu {width: 200px;font: normal normal normal 11px/13px Arial, Helvetica, sans-serif;}
	#menu ul {list-style: none;margin: 0px;padding: 0px;}
	#menu ul ul {display:none;}
	#menu ul li {list-style: none;margin: 0px;padding: 0px;}
	#menu A.no, #menu A.act {color: #000000;text-decoration: none;}
	#menu A.no:hover, #menu A.act:hover { text-decoration : underline;}
	#menu A.act, #menu A.act:hover { font-weight : bold;}
	#menu UL, #menu LI {margin: 0px;padding: 0px;list-style: none;}
)
и в xml DS:
Код:
<T3DataStructure>
    <ROOT type="array">
        <tx_templavoila type="array">
            <title>ROOT</title>
            <description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
            <tags>body</tags>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <field_content type="array">
                <tx_templavoila type="array">
                    <title>Main Content Area</title>
                    <description>Pick the HTML element in the template where you want to place the main content of the site.</description>
                    <sample_data type="array">
                        <numIndex index="0">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque porta erat vitae nisl. In hac habitasse platea dictumst. Aliquam ac urna. Morbi magna mauris, semper ut, varius in, convallis vitae, nulla. Proin massa lorem, mollis eget, rutrum vitae, commodo id, risus. Curabitur scelerisque risus eget odio. Proin laoreet blandit elit. Aenean varius, sapien laoreet dapibus volutpat, risus lorem ornare wisi, lobortis venenatis nisl augue sed purus. Nam suscipit viverra justo. Suspendisse tincidunt. Nullam vel quam.</numIndex>
                    </sample_data>
                    <eType>ce</eType>
                    <tags>table:outer,td:inner,div:inner,p,h1,h2,h3,h4,h5</tags>
                    <TypoScript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
							</TypoScript>
                </tx_templavoila>
                <TCEforms type="array">
                    <config type="array">
                        <type>group</type>
                        <internal_type>db</internal_type>
                        <allowed>tt_content</allowed>
                        <size>5</size>
                        <maxitems>200</maxitems>
                        <minitems>0</minitems>
                        <multiple>1</multiple>
                        <show_thumbs>1</show_thumbs>
                    </config>
                    <label>Main Content Area</label>
                </TCEforms>
            </field_content>
            <field_menu type="array">
                <tx_templavoila type="array">
                    <title>Main menu</title>
                    <description>Pick the HTML container element where you want the automatically made menu items to be placed.</description>
                    <sample_data type="array">
                        <numIndex index="0">[Menu goes here]</numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <tags>table:inner,div,tr,td</tags>
                    <eType_EXTRA type="array">
                        <objPath>lib.treemenu</objPath>
                    </eType_EXTRA>
                    <TypoScriptObjPath>lib.treemenu</TypoScriptObjPath>
                </tx_templavoila>
            </field_menu>
        </el>
    </ROOT>
</T3DataStructure>
Работать не хочет пока сам разобратся немогу почему, хотя другой пример из (foldoutmenu) работает:
Код:
lib.simplemenu = COA
lib.simplemenu {
  10 = HMENU
  10.wrap = <ul>|</ul>
  10.1 = TMENU
  10.1 {
    expAll = 1
    itemArrayProcFunc = user_foldoutMenu->getIfSubUidList
    NO {
      allWrap = <li>|</li>
    }
    IFSUB < .NO
    IFSUB = 1
    IFSUB {
      subst_elementUid = 1
      doNotLinkIt = 1
      linkWrap = <A onmousedown="amenu.foldMenu('amenu-{elementUid}');return false;" style="cursor: pointer;">|</A>
      allWrap = <li>|<ul id="amenu-{elementUid}">
      wrapItemAndSub = |</ul></li>
    }
  }
  10.2 < .10.1
  10.3 < .10.1
  10.4 < .10.1

  20 = TEXT
  20.data = register:ifSubUidList
  20.postUserFunc = user_foldoutMenu->JSWrapper
  20.postUserFunc.prefix = amenu
  20.required = 1
}

page.10 < lib.simplemenu
Если у кого есть возможность подскажите новичку в чем я не прав

Последний раз редактировалось ahold; 24.09.2006 в 14:30
ahold вне форума   Ответить с цитированием