Hallo,
hier das vorgeschlagene Script:
Code:
Step 5a: Trying to create dynamic menu
The basics of your website should be working now. However the main menu still needs to be configured so that TYPO3 automatically generates a menu reflecting the pages in the page tree. This process involves configuration of the TypoScript object path, "lib.mainMenu". This is a technical job which requires that you know about TypoScript if you want it 100% customized.
To assist you getting started with the main menu this wizard will try to analyse the menu found inside the template file. If the menu was created of a series of repetitive block tags containing A-tags then there is a good chance this will succeed. You can see the result below.
Here is the HTML code from the Template that encapsulated the menu:
<ul> <li><a href="fileadmin/templates/#" class="selected">Seite 1</a></li> <li><a href="fileadmin/templates/#">Seite 2</a></li> <li><a href="fileadmin/templates/#">Seite 3</a></li> <li><a href="fileadmin/templates/#">Seite 4</a></li> <li><a href="fileadmin/templates/#">Seite 5</a></li> </ul>
It seems that the menu consists of menu items encapsulated with "<li> ... </li>". It also seems that the whole menu is wrapped in this tag: " <ul> ... </ul> ".
Based on this analysis, this TypoScript configuration for the menu is suggested:
lib.mainMenu = HMENUlib.mainMenu.entryLevel = 0lib.mainMenu.wrap = <ul>|</ul> lib.mainMenu.1 = TMENUlib.mainMenu.1.NO { allWrap = <li>|</li>}lib.mainMenu.1.ACT = 1lib.mainMenu.1.ACT { allWrap = <li>|</li> ATagParams = class="selected"} Code:
Step 5b: Trying to create dynamic menu
The basics of your website should be working now. However the sub menu still needs to be configured so that TYPO3 automatically generates a menu reflecting the pages in the page tree. This process involves configuration of the TypoScript object path, "lib.subMenu". This is a technical job which requires that you know about TypoScript if you want it 100% customized.
To assist you getting started with the sub menu this wizard will try to analyse the menu found inside the template file. If the menu was created of a series of repetitive block tags containing A-tags then there is a good chance this will succeed. You can see the result below.
Here is the HTML code from the Template that encapsulated the menu:
<ul> <li class="title">Menu</li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> <li><a href="fileadmin/templates/#">Sublink</a></li> <li><a href="fileadmin/templates/#" class="selected">Sublink</a></li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> </ul> <!-- Main title --> <p class="sidebar-maintitle">My templates</p> <!-- Textbox --> <div class="sidebar-txtbox-noshade"> <p><b>MultiFlex-1</b><br />Released: 01.05.2006<br /> <b class="txt-red10">GOOD</b> for operational use.<br /> <a href="http://www.1234.info/webtemplates/">Download latest update</a></p> <p><b>MultiFlex-1.1</b><br />Released: 15.05.2006<br /> <b class="txt-red10">BETTER</b> for operational use.<br /> <a href="http://www.1234.info/webtemplates/">Download latest update</a></p> <p><b>MultiFlex-2</b><br />Released: 15.05.2006<br /> <b class="txt-red10">BEST</b> for operational use.<br /> <a href="http://www.1234.info/webtemplates/">Download latest update</a></p> </div> <!-- Main title --> <p class="sidebar-maintitle">Advertisements</p> <!-- Textbox --> <div class="sidebar-txtbox-noshade"> <p>Put ads here (160px) ...</p> </div>
It seems that the menu consists of menu items encapsulated with "<div class="sidebar-txtbox-noshade"> <p><b>MultiFlex-1</b><br />Released: 01.05.2006<br /> <b class="txt-red10">GOOD</b> for operational use.<br /> ... </p> <p><b>MultiFlex-1.1</b><br />Released: 15.05.2006<br /> <b class="txt-red10">BETTER</b> for operational use.<br /> <a href="http://www.1234.info/webtemplates/">Download latest update</a></p> <p><b>MultiFlex-2</b><br />Released: 15.05.2006<br /> <b class="txt-red10">BEST</b> for operational use.<br /> <a href="http://www.1234.info/webtemplates/">Download latest update</a></p> </div>". Between the menu elements there seems to be a visual division element with this HTML code: "<p class="sidebar-maintitle">Advertisements</p><div class="sidebar-txtbox-noshade"> <p>Put ads here (160px) ...</p> </div>". That will be added between each element as well.
Based on this analysis, this TypoScript configuration for the menu is suggested:
lib.subMenu = HMENUlib.subMenu.entryLevel = 1lib.subMenu.1 = TMENUlib.subMenu.1.NO { allWrap = <div class="sidebar-txtbox-noshade"> <p><b>MultiFlex-1</b><br />Released: 01.05.2006<br /><b class="txt-red10">GOOD</b> for operational use.<br />|</p> <p><b>MultiFlex-1.1</b><br />Released: 15.05.2006<br /><b class="txt-red10">BETTER</b> for operational use.<br /><a href="http://www.1234.info/webtemplates/">Download latest update</a></p> <p><b>MultiFlex-2</b><br />Released: 15.05.2006<br /><b class="txt-red10">BEST</b> for operational use.<br /><a href="http://www.1234.info/webtemplates/">Download latest update</a></p> </div> |*| <p class="sidebar-maintitle">Advertisements</p><div class="sidebar-txtbox-noshade"> <p>Put ads here (160px) ...</p> </div><div class="sidebar-txtbox-noshade"> <p><b>MultiFlex-1</b><br />Released: 01.05.2006<br /><b class="txt-red10">GOOD</b> for operational use.<br />|</p> <p><b>MultiFlex-1.1</b><br />Released: 15.05.2006<br /><b class="txt-red10">BETTER</b> for operational use.<br /><a href="http://www.1234.info/webtemplates/">Download latest update</a></p> <p><b>MultiFlex-2</b><br />Released: 15.05.2006<br /><b class="txt-red10">BEST</b> for operational use.<br /><a href="http://www.1234.info/webtemplates/">Download latest update</a></p> </div>}lib.subMenu.1.ACT = 1lib.subMenu.1.ACT { allWrap = <ul> <li class="title">Menu</li> <li class="group">|</li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> <li><a href="fileadmin/templates/#">Sublink</a></li> <li><a href="fileadmin/templates/#" class="selected">Sublink</a></li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> </ul> |*| <p class="sidebar-maintitle">My templates</p><ul> <li class="title">Menu</li> <li class="group">|</li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> <li><a href="fileadmin/templates/#">Sublink</a></li> <li><a href="fileadmin/templates/#" class="selected">Sublink</a></li> <li class="group"><a href="fileadmin/templates/#">Group Link</a></li> </ul>} Gibt es eigentlich eine Möglichkeit mit/über TemplateVoila ein entsprechendes Template auch zu editieren? Wenn ich auf TV gehe erstellt der immer ein neues Template.
Und gibt es eine Möglichkeit eine komplette Seite samt Unterseiten zu löschen? Ist ziemlich nervig wenn man Seite für Seite von Hand löschen muss.