<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog for the Web Programmers &#187; hmenu</title>
	<atom:link href="http://blog.chandanweb.com/tags/hmenu/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chandanweb.com</link>
	<description>A useful blog with code assitance on Typo3, Drupal, PHP, Apache, OpenSSL and PHP Frameworks</description>
	<lastBuildDate>Wed, 25 Jan 2012 08:35:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Conditional menu based on menu page-id</title>
		<link>http://blog.chandanweb.com/typo3/conditional-menu-based-on-menu-page-id</link>
		<comments>http://blog.chandanweb.com/typo3/conditional-menu-based-on-menu-page-id#comments</comments>
		<pubDate>Tue, 27 Dec 2011 12:16:00 +0000</pubDate>
		<dc:creator>spabhat</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[hmenu]]></category>

		<guid isPermaLink="false">http://blog.chandanweb.com/typo3/conditional-menu-based-on-menu-page-id</guid>
		<description><![CDATA[Following code gives a nice way to have a custom content element as sub-menu item for each main menu item lib.customMenu = HMENU lib.customMenu { 1 = TMENU 1 { wrap = &#124; NO.allWrap = &#124; NO.stdWrap.htmlSpecialChars = 1 NO.after.cObject = COA NO.after.cObject { 20 = CASE 20 { key.field = uid default = RECORDS [...]]]></description>
			<content:encoded><![CDATA[<p>Following code gives a nice way to have a custom content element as sub-menu item for each main menu item</p>
<pre>
lib.customMenu = HMENU
lib.customMenu {
 1 = TMENU
 1  {
        wrap = |
</pre>
<pre>
        NO.allWrap = |
        NO.stdWrap.htmlSpecialChars = 1
        NO.after.cObject = COA
        NO.after.cObject {
            20 = CASE
            20 {
               key.field = uid
               default = RECORDS
               default.tables = tt_content
               default.conf.tt_content &lt; tt_content
               default.conf.tt_content.stdWrap.innerWrap &gt;               

               14 &lt; .default
               14.source = {$submenu_element_14}

               15 &lt; .default
               15.source = {$submenu_element_15}

               16 &lt; .default
               16.source = {$submenu_element_16}

               17 &lt; .default
               17.source = {$submenu_element_17}

            }            

        }
        ACT = 1
        ACT.after.cObject &lt; .NO.after.cObject
        ACT.allWrap = |
        ACT.ATagParams = class="act"
        ACT.stdWrap.htmlSpecialChars = 1

        CUR &lt; .ACT
        CUR.ATagParams = class="cur"
    }
}
</pre>
<p>This code cannot be used as it is, you will need to make sure the DHTML/JavaScript code for the sub menu items are configured accordingly.</p>
<p>Further References:</p>
<ol>
<li>[TYPO3-english] conditional menu based on menu page-id <br/><a href="http://lists.typo3.org/pipermail/typo3-english/2009-November/065557.html">http://lists.typo3.org/pipermail/typo3-english/2009-November/065557.html</a></li>
<li>[TYPO3-english] Custom class in tmenu according to uid page <br/><a href="http://lists.typo3.org/pipermail/typo3-english/2010-February/067336.html">http://lists.typo3.org/pipermail/typo3-english/2010-February/067336.html</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.chandanweb.com/typo3/conditional-menu-based-on-menu-page-id/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Menu based on selected Templavoila TemplateObject using TypoScript</title>
		<link>http://blog.chandanweb.com/typo3/changing-menu-based-on-selected-templavoila-templateobject-using-typoscript</link>
		<comments>http://blog.chandanweb.com/typo3/changing-menu-based-on-selected-templavoila-templateobject-using-typoscript#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:58:13 +0000</pubDate>
		<dc:creator>spabhat</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[hmenu]]></category>
		<category><![CDATA[TMENU]]></category>

		<guid isPermaLink="false">http://blog.chandanweb.com/uncategorized/changing-menu-based-on-selected-templavoila-templateobject-using-typoscript</guid>
		<description><![CDATA[TypoScript has so much features that it is indeed impossible to document each and every feature hidden with it. As we start adding extensions the feature list would increase as well. Consider you have selected a specific Templavoila Template and you wish to have a different type of menu based on the selected template. In [...]]]></description>
			<content:encoded><![CDATA[<p>TypoScript has so much features that it is indeed impossible to document each and every feature hidden with it. As we start adding extensions the feature list would increase as well.</p>
<p>Consider you have selected a specific Templavoila Template and you wish to have a different type of menu based on the selected template. <br/>In such case it would be easy to change menu styles if the entire menu is enclosed in a separate CSS class.</p>
<p>I have given an example where I am checking for template IDs 10 , 11. If this template is used for current page I am changing it&#8217;s class.</p>
<blockquote><p>lib.mymenu = HMENU <br/>lib.mymenu { <br/>entryLevel = 1 <br/>stdWrap.ifEmpty.wrap = &amp;nbsp;</p>
<p>1 = TMENU <br/>1 { <br/>wrap = &lt;ul&gt;|&lt;/ul&gt; <br/>NO.wrapItemAndSub = |&lt;/li&gt; <br/>NO.allWrap = &lt;li&gt;| <br/>NO.allWrap { <br/>override = &lt;li class=&#8221;alternate_menu&#8221;&gt;| <br/>override.if.value = 10,11 <br/>override.if.isInList.field = tx_templavoila_to <br/>} <br/># same way we can configure ACT and CUR as well <br/>ACT = 1 <br/>CUR = 1 <br/><br/>} <br/><br/># For second level I would like to change the class of the A Tag <br/>2 &lt; .1 <br/>2.wrap = &lt;ul&gt;|&lt;/ul&gt; <br/>2.CUR.ATagParams = id=&#8221;cur_menu&#8221; <br/>2.ACT.ATagParams.cObject = TEXT <br/>2.ACT.ATagParams.cObject { <br/>override = class=&#8221;cur_menu_a&#8221; <br/>override.if.value = 10,11 <br/>override.if.isInList.field = tx_templavoila_to <br/>} <br/>3 &lt; .2</p>
<p>#let us generate the 3rd level only if the page uses the Template of our choice. <br/>3.if { <br/>value = 10,11 <br/>isInList.field = tx_templavoila_to <br/>}</p>
<p>}</p>
</blockquote>
<p>Not all templates may have a template ID specified, in such case we need to use the sliding feature. <br/>When we use the sliding feature the template id of parent ID is used. <br/>We can do this Like:</p>
<blockquote><p><br/>isInList.data = levelfield:-1, tx_templavoila_to, slide <br/></p>
</blockquote>
<p>Note: <br/>Usually Templates are stored in the Storage Folder, and you can view the Template IDs of Templavoila Template Objects from the list view!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chandanweb.com/typo3/changing-menu-based-on-selected-templavoila-templateobject-using-typoscript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Column Typoscript Graphical Menu</title>
		<link>http://blog.chandanweb.com/typo3/3-column-typoscript-graphical-menu</link>
		<comments>http://blog.chandanweb.com/typo3/3-column-typoscript-graphical-menu#comments</comments>
		<pubDate>Wed, 12 Nov 2008 15:09:37 +0000</pubDate>
		<dc:creator>spabhat</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[3 column menu]]></category>
		<category><![CDATA[gmenu]]></category>
		<category><![CDATA[hmenu]]></category>
		<category><![CDATA[optionsplit]]></category>

		<guid isPermaLink="false">http://blog.spabhat.com/typo3/3-column-typoscript-graphical-menu</guid>
		<description><![CDATA[The illustraion shows how to generate a 3 Graphical Menu using Typoscript. The script is written such that the image will be taken from the media field of page property. If an image is not specified then an image will be generated using it&#8217;s page title / navigation title. spaImageMenu = COA spaImageMenu { &#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>The illustraion shows how to generate a 3 Graphical Menu using Typoscript.   <br />The script is written such that the image will be taken from the media field of page property. If an image is not specified then an image will be generated using it&#8217;s page title / navigation title.</p>
<blockquote><p>spaImageMenu<strong> = </strong>COA</p>
<p>spaImageMenu {     <br />&#160;&#160; 1 &gt;      <br />&#160;&#160; 1 = GMENU      <br />&#160;&#160; 1.NO {      <br />&#160;&#160;&#160;&#160;&#160; altImgResource.import = uploads/pics/      <br />&#160;&#160;&#160;&#160;&#160; altImgResource.import.field = media      <br />&#160;&#160;&#160;&#160;&#160; altImgResource.import.listNum = 0 </p>
<p>&#160;&#160;&#160;&#160;&#160; XY = 110,57     <br />&#160;&#160;&#160;&#160;&#160; backColor = white      <br />&#160;&#160;&#160;&#160;&#160; 10 = TEXT      <br />&#160;&#160;&#160;&#160;&#160; 10.text.field = nav_title // title      <br />&#160;&#160;&#160;&#160;&#160; 10.offset = 20,30      <br />&#160;&#160;&#160;&#160;&#160; allWrap = |*|&lt;tr&gt;&lt;td&gt;|&lt;/td&gt;||&lt;td&gt;|&lt;/td&gt;||&lt;td&gt;|&lt;/td&gt;&lt;/tr&gt;|*|</p>
<p>&#160;&#160;&#160; } </p>
<p>&#160;&#160;&#160; wrap = &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;mymenu_class&quot;&gt;|&lt;/table&gt;     <br />}</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.chandanweb.com/typo3/3-column-typoscript-graphical-menu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

