[TYPO3-core] RFC: stdWrap in FRAME's .src

Ingmar Schlecht ingmar at typo3.org
Tue Mar 27 16:20:57 CEST 2007


Hi Ernesto,

I don't quite understand the patch as you mixed code cleanup with a
functional patch.

If I get it correctly and the patch is not doing anything but...

if ($setup['src.']) {
	$src = $GLOBALS['TSFE']->cObj->stdWrap($src, $setup['src.']);
}

...of course you'll get my +1!

cheers
Ingmar

Ernesto Baschny [cron IT] schrieb:
> This is a SVN patch request.
> 
> Branches: Trunk
> 
> Problem:
> 
> If you need to generate a frameset with a dynamic set of FRAME's, you
> can't do it with FRAMESET cObject. The '.src' setting of a FRAME just
> allows you to define a static frame source.
> 
> Solution:
> 
> Pass the .src parameter through stdWrap so that things like that are
> possible:
> 
> frameset = PAGE
> frameset {
>   typeNum = 150
>   frameSet.cols=50%,50%
>   frameSet {
>     1 = FRAME
>     1 {
>       obj = plaincontent
>       params = scrolling="auto" marginwidth="5" marginheight="0"
>       src {
>         typolink.parameter.data = GPvar : leftId
>         typolink.parameter.wrap = |,98
>         typolink.returnLast = url
>       }
>     }
>     2 = FRAME
>     2 {
>       obj = plaincontent
>       params = scrolling="auto" marginwidth="5" marginheight="0"
>       src {
>         typolink.parameter.data = GPvar : rightId
>         typolink.parameter.wrap = |,98
>         typolink.returnLast = url
>       }
>     }
>   }
> }
> 
> As you can see, the src parameter here will use typolink to generate the
> appropriate frame contents based on input _GET parameters. Other uses
> would be to generate the src from userFunc etc.
> 
> If patch is approved, here are my proposed documentation changes (in
> form of a informal "patch"):
> 
> TSref -> "FRAME" -> parameter "src":
> 
> 1) Data type:
> 
> - <frame>-data:src
> + <frame>-data:src
> +  +stdWrap
> 
> 2) Description:
> 
> - Manually set the src of the frame
> - NOTE: Is set automatically and should not be overridden under normal
> conditions!
> + Instead of using the "obj" destination, you can define a specific src
> for your frame with this setting. This overrides the default behaviour
> of using the "obj" parameter!
> 
> 3) Default:
> 
> - could be index.php?$id&$type
> + typolink to id=[currentId]&type=[obj->typeNum]
> 
> Reference:
> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/7/9/
> 
> Attached is a patch. If looks more nasty than it is. I removed some old
> and obsolete comments.
> 
> Cheers,
> Ernesto


More information about the TYPO3-team-core mailing list