<?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>Tech Trivia &#187; Typo3 Snippets</title>
	<atom:link href="http://www.alethe.com/brad/category/tech-notes/typo3-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alethe.com/brad</link>
	<description>For those who know just enough to be dangerous</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:45:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Reset TYPO3 password</title>
		<link>http://www.alethe.com/brad/2009/04/reset-typo3-password/</link>
		<comments>http://www.alethe.com/brad/2009/04/reset-typo3-password/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 14:06:27 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tech Notes]]></category>
		<category><![CDATA[Typo3 Snippets]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://www.alethe.com/brad/?p=40</guid>
		<description><![CDATA[If you forget your typo3 password, you can reset it using the mysql command line tool as follows: mysql> use typo3; mysql> update be_users set password='bacb98acf97e0b6112b1d1b650b84971' where username = 'admin'; This resets the admin user password to &#8220;joh316&#8243;.]]></description>
			<content:encoded><![CDATA[<p>If you forget your typo3 password, you can reset it using the mysql command line tool as follows:</p>
<p><code><br />
mysql> use typo3;<br />
mysql> update be_users set password='bacb98acf97e0b6112b1d1b650b84971' where username = 'admin';<br />
</code></p>
<p>This resets the admin user password to &#8220;joh316&#8243;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alethe.com/brad/2009/04/reset-typo3-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Override Content</title>
		<link>http://www.alethe.com/brad/2006/04/override-content/</link>
		<comments>http://www.alethe.com/brad/2006/04/override-content/#comments</comments>
		<pubDate>Sun, 23 Apr 2006 23:35:27 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Typo3 Snippets]]></category>

		<guid isPermaLink="false">http://www.alethe.com/brad/?p=18</guid>
		<description><![CDATA[Recently I was working on a portion of a web site that required dynamic menus. However, I needed to override those dynamic menus for certain pages in the web site with custom menus. It is possible to achieve this using typoscript. The typoscript I created works like this: If content exists in the left column [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?t=alethe-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1904811418&#038;fc1=999&#038;IS2=1&#038;lt1=_blank&#038;lc1=d8d7d3&#038;bc1=22201d&#038;bg1=22201d&#038;f=ifr" style="width:120px;height:240px;float:right;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>Recently I was working on a portion of a web site that required dynamic menus.  However, I needed to override those dynamic menus for certain pages in the web site with custom menus.  It is possible to achieve this using typoscript.<br />
<span id="more-18"></span><br />
The typoscript I created works like this:</p>
<ul>
<li>If content exists in the left column (i.e., styles.content.getLeft), display it</li>
<li>If no content exists, display a dynamic menu listing links to all sub-pages of the current page</li>
</ul>
<p>The whole listing of typoscript in the SETUP section of the template is shown below:</p>
<pre><code>
config.xhtml_cleaning = all
config.prefixLocalAnchors = all
config.intTarget = _self
plugin.tx_automaketemplate_pi1 {
  content = FILE
  content.file = fileadmin/template/infosys/template_root.html
  # Define dynamic portions of html template
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
    SPAN.class.depth = 1
    SPAN.class.subtitle = 1
    SPAN.class.rightNav = 1
    DIV.id.quickBlock = 1
    DIV.id.menuBlock = 1
    DIV.id.loginBlock = 1
    DIV.id.mainbar = 1
  }

  # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/infosys/
}

# Create default navigation menu
temp.menu_1 = HMENU
temp.menu_1.special = directory
temp.menu_1.special.data = global:id
temp.menu_1.1 = TMENU
temp.menu_1.1 {
  # Normal state properties
  NO.stdWrap.htmlSpecialChars = 1

  # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
}

temp.overlayContentLeft = COA
temp.overlayContentLeft {
  10 < styles.content.getLeft
  10.stdWrap.ifEmpty.cObject = COA
  10.stdWrap.ifEmpty.cObject {
    10 = TEXT
    10.data = leveltitle:-1
    10.wrap = &lt;h1&gt; | &lt;/h1&gt;
    20 < temp.menu_1
  }
}

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template =< plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_BODY
  subparts {
    # Set subtitle
    subtitle = TEXT
    subtitle.data = leveltitle:1
    # Import main page content
    mainbar < styles.content.get
    # Populate site depth path
    depth = HMENU
    depth.special = rootline
    depth.1 = TMENU
    depth.1.NO.linkWrap = | /  |*||*|  |
    # Populate the IT menu
    menuBlock < temp.overlayContentLeft
    # Populate the Quick Links menu
    quickBlock < styles.content.getRight
  }
}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
  template =< plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.doctype = xhtml_trans
page.10 < temp.mainTemplate
page.headerData.10  < temp.headTemplate
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alethe.com/brad/2006/04/override-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Navigation Menu for Site Depth</title>
		<link>http://www.alethe.com/brad/2006/04/dynamic-site-depth-navigation-menu/</link>
		<comments>http://www.alethe.com/brad/2006/04/dynamic-site-depth-navigation-menu/#comments</comments>
		<pubDate>Sun, 23 Apr 2006 17:56:13 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Typo3 Snippets]]></category>

		<guid isPermaLink="false">http://www.alethe.com/brad/?p=17</guid>
		<description><![CDATA[Include the following typoscript in your root page template to dynamically generate a text based navigation menu that provides the full path of the current page from the root of the site. depth = HMENU depth.special = rootline depth.1 = TMENU depth.1.NO.linkWrap = &#124; / &#124;*&#124;&#124;*&#124; &#124; This will give a root line something like [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?t=alethe-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1904811418&#038;fc1=999&#038;IS2=1&#038;lt1=_blank&#038;lc1=d8d7d3&#038;bc1=22201d&#038;bg1=22201d&#038;f=ifr" style="width:120px;height:240px;float:right;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>Include the following typoscript in your root page template to dynamically generate a text based navigation menu that provides the full path of the current page from the root of the site.</p>
<pre>
depth = HMENU
depth.special = rootline
depth.1 = TMENU
depth.1.NO.linkWrap = | /  |*||*|  |
</pre>
<p>This will give a root line something like this:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Home / Services / </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alethe.com/brad/2006/04/dynamic-site-depth-navigation-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
