TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Problem with template selector (rlmptmplselector)

This is a discussion on [TYPO3] Problem with template selector (rlmptmplselector) within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi list, I'm searching internet and documentations for some time (more than three weeks) and can't find any ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 18.08.2008, 08:21
Luis Flávio Seelig
Gast
 
Beiträge: n/a
Standard [TYPO3] Problem with template selector (rlmptmplselector)

Hi list,

I'm searching internet and documentations for some time (more than three
weeks) and can't find any clue about this issue. I'm working on trial and
error basis now, so I give up. I'm trying to use automaketemplate with
rlmptmplselector. Already read MTB documentation and understand (not fully,
I'm afraid) the theory, my code works, but not properly.
The problem is that the "page" marker and the "envelope" marker (on the HTML
code bellow) vanish when the page render. The page properties shows the
rlmptmplselector combos (main and sub templates) correctly, but is not
working changing the page templates.

Follow a resume (only the interest parts) of the automaketemplate TS, the
rlmptmplselector and the HTML pages. The TS'a are included in the main setup
in this order: automaketemplate, menus, rlmptmplselector, another objects.

automaketemplate TS
---------------------
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/templates/index.html
relPathPrefix = fileadmin/templates

elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY

DIV.id.page = 1
DIV.id.envelope = 1
UL.id.nav = 1
UL.id.footer-nav = 1

DIV.id.leadcontainer = 1
DIV.id.content-topright = 1
DIV.id.leftcol = 1
DIV.id.rightcol = 1
}
}
---------------------

tmp.templatePrincipal = TEMPLATE

tmp.templatePrincipal {
tx_rlmptmplselector.title = Principal

template < plugin.tx_automaketemplate_pi1
template.content.templateType = sub
template.content.file = fileadmin/templates/index.html

workOnSubpart = envelope

# tmp.lead is defined elsewhere and works properly
subparts.leadcontainer < tmp.lead
subparts.leftcol < styles.content.getLeft
subparts.rightcol < styles.content.getRight
subparts.content-topright < styles.content.get
}

tmp.templatePage1 = TEMPLATE

tmp.templatePage1 {

tx_rlmptmplselector.title = Pagina 1

template < plugin.tx_automaketemplate_pi1
template.content.templateType = sub

template.content.file = fileadmin/templates/sub/page1.html

workOnSubpart = envelope

subparts.pagecontent < styles.content.get
}

tmp.templateDefaultPage = TEMPLATE
tmp.templateDefaultPage {
tx_rlmptmplselector.title = Default Page

template < plugin.tx_automaketemplate_pi1
template.content.file = fileadmin/templates/index.html
template.content.templateType = main

workOnSubpart = DOCUMENT_BODY
# tmp.nav is defined elsewhere and works properly
subparts.nav < tmp.nav
}

rlmptmplselector TS
---------------------
plugin.tx_rlmptmplselector_pi1 {

// Define the paths leading to our HTML template files
templatePathMain = fileadmin/templates/
templatePathSub = fileadmin/templates/sub/

// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = index.html
defaultTemplateFileNameSub = generica.html

// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
inheritSubTemplates = 1

templateObjects.sub {
10 < tmp.templatePrincipal
20 < tmp.templatePage1
}
templateObjects.main {
10 < tmp.templateDefaultPage
}

}

tmp.templateGeral = TEMPLATE
tmp.templateGeral {

template < plugin.tx_automaketemplate_pi1
template.content.file =< plugin.tx_rlmptmplselector_pi1
subparts.envelope.templateType = main

workOnSubpart = DOCUMENT_BODY

subparts.nav < tmp.nav
subparts.envelope =< plugin.tx_rlmptmplselector_pi1
subparts.envelope.templateType = sub
}
---------------------

Main setup TS
---------------------
page = PAGE
page.10 = TEMPLATE
page.10 < temp.templateGeral
---------------------

Main page HTML
---------------------
<body id="home">
<div id="page">
<ul id="nav"> ...</ul>
<div id="envelope">
<div id="content-topleft" class="left">
<div id="leadcontainer">
content here...
</div>
</div>
<div id="content-topright" class="right">&nbsp;</div>
<div class="clear">&nbsp;</div>
<hr/>
<div id="content-bottom">
<div id="leftcol">
content here...
</div>
<div id="rightcol">
content here...
</div>
</div>
</div><!-- envelope -->
</div> <!-- page -->
<div id="footer">
content here
</div>
</body>
---------------------

Page 1 HTML
---------------------
<body>
<div id="page" class="clearfloat">
<ul id="nav">navigation...</ul>

<div id="envelope">
<div id="pagecontent">
content here...
</div><!-- pagecontent -->
</div><!-- envelope -->
</div>
</div>
<div id="footer">
content here...
</div>
</body>
---------------------


Thanks for help!

--
Luis Flávio Seelig
lflavios (AT) gmail (DOT) com
----
Linux User #363919
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-german] Template Selector Sören Wachsmuth typo3-german@lists.netfielders.de 5 07.10.2007 11:20
[TYPO3-german] Subtemplates auch OHNE Template Selector? julia Gärtner typo3-german@lists.netfielders.de 2 20.09.2007 20:58
[TYPO3] template and Javascript problem Cray Flatline typo3-english@lists.netfielders.de 5 02.09.2007 09:55
[TYPO3-german] Template Selector: Wie spreche ich dieINHALTSVORLAGEN an? julia Gärtner typo3-german@lists.netfielders.de 2 14.08.2007 11:19
[TYPO3] template selector Bas van der Togt typo3-english@lists.netfielders.de 3 30.01.2007 20:11


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:25 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39