[TYPO3-core] RFC: #4662 PAGE_TARGET = *compat version

Steffen Kamper steffen at sk-typo3.de
Tue Oct 23 21:26:56 CEST 2007


This is a SVN patch request.

Type: ENHANCEMENT

Bugtracker references:
http://bugs.typo3.org/view.php?id=4662


Branches:
Trunk

in files
typo3/sysext/css_styled_content/static/constants.txt
typo3/sysext/css_styled_content/static/setup.txt
typo3/sysext/css_styled_content/ext_localconf.php

Problem:

default setting for PAGE_TARGET is page. This is an old setting for frames,
nowadays it's obsolete.
Second tt_content.menu uses as target pageFrameObj which is obsolete too.

Solution:
setting in CONSTANTS
[compatVersion = 4.2.0]
PAGE_TARGET =
[end]

setting in tt_content.menu
all targets to {$PAGE_TARGET}

Notes:
like to have defaults to the settings 99% of the users need.
I also included a description displayed by the update wizard.

Steffen


--------------------------------------------------------------------------------

Index: typo3/sysext/css_styled_content/ext_localconf.php
===================================================================
--- typo3/sysext/css_styled_content/ext_localconf.php (revision 2611)
+++ typo3/sysext/css_styled_content/ext_localconf.php (working copy)
@@ -24,6 +24,10 @@
     <li><b>CSS based "image" and "text with image"</b><br />As the 
extension cron_cssstyledimgtext has been merged into the core, rendering of 
the content elements "image" and "text with image" has been changed to be 
CSS instead of table based. Read the <a 
href="http://wiki.typo3.org/index.php/TYPO3_4.0" target="_blank">4.0 release 
notes</a> for further information.</li></ul>',
  'description_acknowledge' => 'You will have to update your stylesheets to 
comply with these changes.'
 );
+$TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_pagetargets'] 
= array(
+    'title' => 'CSS Styled Content: Default targets for non-frame pages',
+    'version' => 4200000,
+    'description' => '<p>The default page target is empty (so no target is 
generated). If you use frames, you have to set it to page in Constants.</p>'
+);

-
 ?>
\ No newline at end of file
Index: typo3/sysext/css_styled_content/static/constants.txt
===================================================================
--- typo3/sysext/css_styled_content/static/constants.txt (revision 2611)
+++ typo3/sysext/css_styled_content/static/constants.txt (working copy)
@@ -97,6 +97,13 @@
   # cat=advanced/links; type=small; label= Target for internal links: 
Should match the name of the content PAGE-object in TypoScript when used 
with frames. Most cases: Set to "page" if you have frames in the template. 
If not, set to "" (empty)
 PAGE_TARGET = page

+[compatVersion = 4.2.0]
+
+  # cat=advanced/links; type=small; label= Target for internal links: 
Should match the name of the content PAGE-object in TypoScript when used 
with frames. Most cases: set to "" (empty). If you have frames in the 
template set to "page"
+PAGE_TARGET =
+
+[end]
+
 [compatVersion = 3.9.0]

 styles.content.imgtext >
@@ -144,4 +151,3 @@
 [END]

 # TYPO3 CVS ID: $Id$
-
Index: typo3/sysext/css_styled_content/static/setup.txt
===================================================================
--- typo3/sysext/css_styled_content/static/setup.txt (revision 2611)
+++ typo3/sysext/css_styled_content/static/setup.txt (working copy)
@@ -904,7 +904,7 @@
    1 = TMENU
    1.NO.allWrap = <p>|</p>
    1.NO.stdWrap.htmlSpecialChars = 1
-   1.target = {$content.pageFrameObj}
+   1.target = {$PAGE_TARGET}
   }

   # "Menu of subpages to these pages"
@@ -919,7 +919,7 @@
    1 = TMENU
    1.NO.allWrap = <p class="csc-sitemap csc-sitemap-level1">|</p>
    1.NO.stdWrap.htmlSpecialChars = 1
-   1.target = {$content.pageFrameObj}
+   1.target = {$PAGE_TARGET}
    1.expAll = 1

    2 < .1
@@ -1499,4 +1499,4 @@
 [END]


-# TYPO3 CVS ID: $Id$
+# TYPO3 CVS ID: $Id$
\ No newline at end of file


begin 666 page_target_default_compat.diff
M26YD97 at Z('1Y<&\S+W-Y<V5X="]C<W-?<W1Y;&5D7V-O;G1E;G0O97AT7VQO
M8V%L8V]N9BYP:' -"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T-"BTM+2!T>7!O
M,R]S>7-E>'0O8W-S7W-T>6QE9%]C;VYT96YT+V5X=%]L;V-A;&-O;F8N<&AP
M"2AR979I<VEO;B R-C$Q*0T**RLK('1Y<&\S+W-Y<V5X="]C<W-?<W1Y;&5D
M7V-O;G1E;G0O97AT7VQO8V%L8V]N9BYP:' )*'=O<FMI;F<@8V]P>2D-"D! 
M("TR-"PV("LR-"PQ,"! 0 T*( D)"0D\;&D^/&(^0U-3(&)A<V5D(")I;6%G
M92(@86YD(")T97AT('=I=&@@:6UA9V4B/"]B/CQB<B O/D%S('1H92!E>'1E
M;G-I;VX at 8W)O;E]C<W-S='EL961I;6=T97AT(&AA<R!B965N(&UE<F=E9"!I
M;G1O('1H92!C;W)E+"!R96YD97)I;F<@;V8@=&AE(&-O;G1E;G0 at 96QE;65N
M=',@(FEM86=E(B!A;F0@(G1E>'0@=VET:"!I;6%G92(@:&%S(&)E96X at 8VAA
M;F=E9"!T;R!B92!#4U,@:6YS=&5A9"!O9B!T86)L92!B87-E9"X at 4F5A9"!T
M:&4@/&$@:')E9CTB:'1T<#HO+W=I:VDN='EP;S,N;W)G+VEN9&5X+G!H<"]4
M65!/,U\T+C B('1A<F=E=#TB7V)L86YK(CXT+C @<F5L96%S92!N;W1E<SPO
M83X at 9F]R(&9U<G1H97(@:6YF;W)M871I;VXN/"]L:3X\+W5L/B<L"B ))V1E
M<V-R:7!T:6]N7V%C:VYO=VQE9&=E)R ]/B G66]U('=I;&P@:&%V92!T;R!U
M<&1A=&4@>6]U<B!S='EL97-H965T<R!T;R!C;VUP;'D@=VET:"!T:&5S92!C
M:&%N9V5S+B<*("D["BLD5%E03S-?0T].1E]605)36R=30U]/4%1)3TY3)UU;
M)V5X="]I;G-T86QL)UU;)V-O;7!A=%]V97)S:6]N)UU;)W1X7V-S<W-T>6QE
M9&-O;G1E;G1?<&%G971A<F=E=',G72 ](&%R<F%Y* HK(" @("=T:71L92<@
M/3X@)T-34R!3='EL960 at 0V]N=&5N=#H at 1&5F875L="!T87)G971S(&9O<B!N
M;VXM9G)A;64@<&%G97,G+ HK(" @("=V97)S:6]N)R ]/B T,C P,# P+ HK
M(" @("=D97-C<FEP=&EO;B<@/3X@)SQP/E1H92!D969A=6Q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
M97,@=&\@=&AE<V4@<&%G97,B"D! ("TY,3DL-R K.3$Y+#<@0$ -"B )"0DQ
M(#T at 5$U%3E4*( D)"3$N3D\N86QL5W)A<" ](#QP(&-L87-S/2)C<V,M<VET
M96UA<"!C<V,M<VET96UA<"UL979E;#$B/GP\+W ^"B )"0DQ+DY/+G-T9%=R
M87 N:'1M;%-P96-I86Q#:&%R<R ](#$*+0D)"3$N=&%R9V5T(#T@>R1C;VYT
M96YT+G!A9V5&<F%M94]B:GT**PD)"3$N=&%R9V5T(#T@>R1004=%7U1!4D=%
M5'T*( D)"3$N97AP06QL(#T@,0H@"B )"0DR(#P at +C$*0$ @+3$T.3DL-" K
M,30Y.2PT($! #0H at 6T5.1%T*( H@"BTC(%194$\S($-64R!)1#H@)$ED) HK
M(R!465!/,R!#5E, at 240Z("1)9"0-"EP at 3F\@;F5W;&EN92!A="!E;F0@;V8@
&9FEL90T*
`
end



More information about the TYPO3-team-core mailing list