Halllöchen miteinander,
ich bin neu hier und komme aus der typo3 und (if_)yaml ecke. Ich bin gerade dabei die super Schnittstelle zu testen, stecke aber bei der xml ausgabe im oxid fest.
Folgendes habe ich bewerkstelligt:
Lokales winxp system mit xampp
typo3 mit beispiel pages (t3-introduction package) und xml ausgabe konfiguriert
– dazu habe ich in realUrl folgendes hinzugefügt:
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => '.xml',
'acceptHTMLsuffix' => 1,
'index' => array (
'.xml' => array(
'keyValues' => array(
'type' => 123,
),
),
),
),
Das xml wird mir artig wie folgt ausgegeben:
<toxid>
−<content uid="135">
<header>TYPO3 - The Enterprise CMS</header>
−<bodytext>
TYPO3 is a free, open source content management framework designed to simplify the creation of feature-rich websites that can be updated by nontechnical editors. It is written in PHP and is compatible with a number of popular databases, including MySQL.
<h2>Feature-rich and Extensible Core</h2>
TYPO3 stands out among other content management systems because of the impressive array of functionality that is incorporated into its core. This extensive core functionality allows users to quickly develop sophisticated sites with out-of-the-box TYPO3 installations. Moreover, TYPO3's well-documented extension-based architecture makes it possible for the system to grow to meet the unique needs of each individual or organization. During the course of the last ten years, tens of thousands of TYPO3 service providers and enthusiasts have created over 500,000 sites, including
<ul><li>global, multi-language enterprise solutions</li><li>corporate web portals</li><li>community and government web portals </li><li>enterprise web applications</li><li>full-featured eCommerce sites</li><li>online brochure and catalog sites</li><li>small business sites</li><li>nonprofit web sites</li><li>personal and corporate weblogs</li></ul>
<h2>Dedicated to Open Source</h2>
TYPO3 is maintained by a nonprofit core development team and an active worldwide community of users. TYPO3 operates under the <link http://www.gnu.org/licenses/gpl.html - external-link-new-window>GPL license</link>.
</bodytext>
<header_link></header_link>
</content>
</toxid>
Das war ja noch der einfache teil.
Jetzt zu Oxid.
Hier habe ich bis jetzt folgedens umgesetzt:
- Oxid installiert / konfiguriert
- Toxid kopiert / konfiguriert
- config.inc.php angepasst
/**
* Following configuration implements additional content delivering by the TYPO3 CMS
*/
// your URL-Snippet to dectect TOXID-Pages
$this->aToxidCurlSeoSnippets = array(
'0' => 'Ueber-uns',
'1' => 'Ueber-uns-en',
);
// URL to your CMS
$this->aToxidCurlSource = array(
'0' => 'http://localhost/my-cms/about-typo3.xml',
'1' => 'http://localhost/my-cms/en/about-typo3.xml',
);
// Additional Params for URL
$this->sToxidCurlUrlParam = '';
- topcategories.tpl + lang datei angepasst um der “Startseite” untermenüpunkte (testpages) hinzuzufügen
[{oxstyle include="css/superfish.css"}]
<ul id="navigation" class="sf-menu">
<li [{if $oView->getClassName()=='start'}]class="current"[{/if}]>
<a href="[{$oViewConf->getHomeLink()}]">[{oxmultilang ident="TOP_CATEGORIES_HOME"}]</a>
<ul>
<li><a href="[{$oViewConf->getHomeLink()}]Ueber-uns">[{oxmultilang ident="TOP_CATEGORIES_ABOUT_US"}]</a></li>
<li><a href="[{$oViewConf->getHomeLink()}]imprint/">[{oxmultilang ident="TOP_CATEGORIES_IMPRINT"}]</a></li>
<li><a id="test_RightSideNewsLetterHeader" rel="nofollow" href="[{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=Startseite" }]">TEST 3</a></li>
</ul>
</li>
[{assign var="iAllCatCount" value=$oxcmp_categories|count }]
- CMS seite “Über uns” / Seo: “Ueber-uns/” angelegt mit einfacher Ausgabe
hier toxid content
- toxid_curl.tpl angelegt, ist diese nicht vorhanden, werde ich immer redirected. A propos, muss in der toxid_curl.php eigentlich nicht mehrere toxid_*.tpl anlegen können? Irgendwie verwurstel ich hier glaube ich noch CMS seiten mit templates und oder auch Kategorien…
[{capture append="oxidBlock_content"}]
<h1 class="pageHead">[{ oxmultilang ident="TOP_CATEGORIES_ABOUT_US"}]</h1>
[{oxcontent ident="oxaboutus"}]
[{ $toxid_curl_cmp->getCmsSnippet(bodytext) }]
[{/capture}]
[{include file="layout/page.tpl" sidebar="Right"}]
Es wird mir der content aus der CMS Seite angezeigt, darunter aber keinerlei toxid/t3 content bzw. errors ausgegeben, die konfig für die ausgabe [{ $toxid_curl_cmp->getCmsSnippet(bodytext) }] parsed mir leider nichts!?
Wie könnte ich den Code denn am besten debuggen?
Gruß
guido