Skip to content

Instantly share code, notes, and snippets.

@cedricziel
Created February 25, 2012 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cedricziel/1908678 to your computer and use it in GitHub Desktop.
Save cedricziel/1908678 to your computer and use it in GitHub Desktop.
Page Template Problem
{namespace fed=Tx_Fed_ViewHelpers}
<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
xmlns:fed="http://fedext.net/ns/fed/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:layout name="Default"/>
<f:section name="Configuration">
<flux:flexform id="DemoPage" >
<flux:flexform.group name="help" label="Help">
<flux:flexform.field.checkbox name="hideHelp"
label="Hide help messages in the frontend"/>
</flux:flexform.group>
<flux:flexform.group name="jQuery" label="jQuery">
<flux:flexform.field.checkbox name="includeJQuery" label="Use jQuery"/>
<flux:flexform.field.input name="themeUrl" label="JQueryUI Theme url"
default="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/black-tie/jquery-ui.css"/>
</flux:flexform.group>
<flux:flexform.group name="content" label="Shared content">
<flux:flexform.field.group internalType="db" allowed="pages" maxItems="1"
name="footerContentPageUid"
label="Page containing content elements for footer" />
</flux:flexform.group>
</flux:flexform>
</f:section>
<f:section name="Resources">
<fed:comment>
This section contains necessary resources - styles, scripts etc.
</fed:comment>
<f:if condition="{includeJQuery}">
<fed:jQuery.cdn jQueryVersion="1" jQueryUIVersion="1"
jQueryUITheme="{themeUrl}"/>
</f:if>
<fed:style
href="{f:uri.resource(path: 'Stylesheet/screen/flexible-columns.css', extensionName: 'cziel_fcsl_template')}"/>
<fed:page.head.title>
FED: {page.title}
</fed:page.head.title>
</f:section>
<f:section name="Header">
<a href="/"> <img src="typo3/gfx/typo3logo_mini.png" alt="Logo"/>
</a>
</f:section>
<f:section name="Menu">
<f:if condition="{hideHelp} == 0">
<div class="right">
Documentation: <a href="http://fedext.net">http://fedext.net</a>
</div>
</f:if>
<fed:page.menu entryLevel="0"/>
</f:section>
<f:section name="Subtitle">
<f:if condition="{page.subtitle}">
<f:then>
{page.subtitle}
</f:then>
<f:else>
If the page record had a subtitle it would be displayed here
</f:else>
</f:if>
</f:section>
<f:section name="Submenu">
<h3>Submenu</h3>
<flux:flexform.menu entryLevel="1"/>
<h4>Left content area</h4>
<p>Uses content sliding to fetch content up along the rootline</p>
<flux:flexform.renderContent column="1" slide="-1"/>
</f:section>
<f:section name="Body">
<div class="breadcrumb">
<flux:flexform.breadCrumb entryLevel="1">
<f:for each="{rootLine}" as="row" iteration="iteration">
<f:if condition="{iteration.isLast} == 0">
<f:then>
<f:link.page pageUid="{row.uid}">
{row.title}
</f:link.page>
</f:then>
<f:else>
{row.title}
</f:else>
</f:if>
</f:for>
</flux:flexform.breadCrumb>
</div>
<flux:flexform.renderContent column="0"/>
<f:if condition="{hideHelp} == 0">
<div id="help">
<h3>Help</h3>
<p>This is the default page template. It is being used because no
other extensions have provided page template files which you could
select and no TypoScript which points to a page template file
location exists.</p>
<p>The file being rendered is located at
EXT:fed/Resources/Private/Templates/Page/Render.html, the template
contains a special page configuration section which provides the
settings you see when editing a page in the backend. The page
template file uses the Fluid layout
EXT:fed/Resources/Private/Templates/Layouts/Page.html</p>
<p>You can take a look at that page template file as a reference
for creating your own page templates. Extended information about
creating and configuring page templates can be found at the FED
documentation web site</p>
<h3>Tips</h3>
<ol>
<li>To get started quickly you can copy the default page
template and its layout, placing them in a new extension or in
fileadmin. Then have a look at the documentation web site for the
necessary TypoScript to have TYPO3 recognize the page templates.
</li>
<li>To remove this help text change the settings in the top
page level. You will find the switch when editing a page's
properties, under the tab "Page Template"
</li>
<li>If you are seeing double page content output, remove all
TypoScript PAGE definitions.
</li>
<li>The content of the footer is placed on a page outside the
rootline. This page is then referenced through page template
settings - all content elements on that page are then rendered in
the footer element
</li>
<li>If your menus look incorrect you may need to adjust the
"entryLevel" attributes in the template file
</li>
<li>FED is capable of rendering pages and content with an
extremely limited set of TypoScript and supporting extensions. To
increase performance, remove any PAGE and MENU TypoScript
definitions and use the fed:page.menu and fed:page.breadCrumb
ViewHelpers to render menus and root line.
</li>
</ol>
<p>
<a href="http://fedext.net">http://fedext.net</a>
</p>
</div>
</f:if>
</f:section>
<f:section name="Footer">
<div class="content-elements">
<flux:flexform.renderContent column="0" pageUid="{footerContentPageUid}"/>
</div>
</f:section>
</html>
Uncaught TYPO3 Exception
#1243325768: No value found for key "Tx_Flux_ViewHelpers_FlexformViewHelper->storage" (More information)
Tx_Fluid_Core_ViewHelper_Exception_InvalidVariableException thrown in file
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3/sysext/fluid/Classes/Core/ViewHelper/ViewHelperVariableContainer.php in line 90.
12 Tx_Fluid_Core_ViewHelper_ViewHelperVariableContainer::get("Tx_Flux_ViewHelpers_FlexformViewHelper", "storage")
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3conf/ext/flux/Classes/MVC/View/ExposedStandaloneView.php:
00047: $this->renderSection($sectionName, $this->baseRenderingContext->getTemplateVariableContainer()->getAll());
00048: $this->stopRendering();
00049: return $this->baseRenderingContext->getViewHelperVariableContainer()->get($viewHelperClassname, $name);
00050: }
00051:
11 Tx_Flux_MVC_View_ExposedStandaloneView::getStoredVariable("Tx_Flux_ViewHelpers_FlexformViewHelper", "storage", "Configuration")
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3conf/ext/fed/Classes/Configuration/ConfigurationManager.php:
00093: $exposedView->setLayoutRootPath($config['layoutRootPath']);
00094: $exposedView->setPartialRootPath($config['partialRootPath']);
00095: $page = $exposedView->getStoredVariable('Tx_Flux_ViewHelpers_FlexformViewHelper', 'storage', 'Configuration');
00096: return $page['label'] ? $page['label'] : $templateFile . '.html';
00097: }
10 Tx_Fed_Configuration_ConfigurationManager::getPageTemplateLabel("cziel_fcsl_template", "Default")
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3conf/ext/fed/Classes/Backend/PageLayoutSelector.php:
00076: foreach ($group as $template) {
00077: $optionValue = $extension . '->' . $template;
00078: $label = $this->configurationManager->getPageTemplateLabel($extension, $template);
00079: $selected = ($optionValue == $value ? ' selected="formField selected"' : '');
00080: $option = '';
9 Tx_Fed_Backend_PageLayoutSelector::renderField(array, t3lib_TCEforms)
8 call_user_func_array(array, array)
/media/STORAGE II/Dropbox/src/fcsl-redesign/t3lib/class.t3lib_div.php:
04744: array(&$classObj, $parts[1]),
04745: array(&$params, &$ref)
04746: );
04747: } else {
04748: $errorMsg = "No method name '" . $parts[1] . "' in class " . $parts[0];
7 t3lib_div::callUserFunction("Tx_Fed_Backend_PageLayoutSelector->renderField", array, t3lib_TCEforms)
/media/STORAGE II/Dropbox/src/fcsl-redesign/t3lib/class.t3lib_tceforms.php:
02920: $PA['pObj'] =& $this;
02921:
02922: return t3lib_div::callUserFunction($PA['fieldConf']['config']['userFunc'], $PA, $this);
02923: }
02924:
6 t3lib_TCEforms::getSingleField_typeUser("pages", "tx_fed_page_controller_action", array, array)
/media/STORAGE II/Dropbox/src/fcsl-redesign/t3lib/class.t3lib_tceforms.php:
00885: break;
00886: case 'user':
00887: $item = $this->getSingleField_typeUser($table, $field, $row, $PA);
00888: break;
00889: case 'flex':
5 t3lib_TCEforms::getSingleField_SW("pages", "tx_fed_page_controller_action", array, array)
/media/STORAGE II/Dropbox/src/fcsl-redesign/t3lib/class.t3lib_tceforms.php:
00772:
00773: // Based on the type of the item, call a render function:
00774: $item = $this->getSingleField_SW($table, $field, $row, $PA);
00775:
00776: // Add language + diff
4 t3lib_TCEforms::getSingleField("pages", "tx_fed_page_controller_action", array, NULL, 0, NULL, NULL)
/media/STORAGE II/Dropbox/src/fcsl-redesign/t3lib/class.t3lib_tceforms.php:
00413: $this->palettesRendered[$this->renderDepth][$table][$parts[2]] = 1;
00414: }
00415: $sField = $this->getSingleField($table, $theField, $row, $parts[1], 0, $parts[3], $parts[2]);
00416: if ($sField) {
00417: $sField .= $sFieldPal;
3 t3lib_TCEforms::getMainFields("pages", array)
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3/alt_doc.php:
00726: }
00727: } else {
00728: $panel.= $this->tceforms->getMainFields($table,$rec);
00729: }
00730: $panel = $this->tceforms->wrapTotal($panel,$rec,$table);
2 SC_alt_doc::makeEditForm()
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3/alt_doc.php:
00490:
00491: // Creating the editing form, wrap it with buttons, document selector etc.
00492: $editForm = $this->makeEditForm();
00493:
00494: if ($editForm) {
1 SC_alt_doc::main()
/media/STORAGE II/Dropbox/src/fcsl-redesign/typo3/alt_doc.php:
01448: // Main:
01449: $SOBE->init();
01450: $SOBE->main();
01451: $SOBE->printContent();
01452:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment