[TYPO3-core] fe_adminLib.inc formURL as typoLink

Bernhard Kraft kraftb at kraftb.at
Thu Jul 7 20:55:53 CEST 2005


Hallo friends,



This is a CVS patch request.

Type: New feature

Description:
The action parameter form URL is actually hardcoded as index.php in
media/scripts/fe_adminLib.inc. This patch makes it a typoLink and introduces
a new TS array "formurl." which contains the parameters for the typoLink.
Downwards compatibility is kept.

Branches: HEAD / TYPO3_3-8

Bugtracker reference: http://bugs.typo3.org/view.php?id=200

Files:
06_fe_adminLib_FORMURLtypoLink.patch: Main patch
06_TSref_mods.txt: TSref modifications


greets,
Bernhard
--
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
-------------- next part --------------
--- typo3_src-3.8.0/tslib/media/scripts/fe_adminLib.inc	2005-05-23 02:41:23.000000000 +0200
+++ typo3_src-3.8.0rc1/tslib/media/scripts/fe_adminLib.inc	2005-07-07 20:26:24.153911576 +0200
@@ -195,7 +195,7 @@
 			// get table
 		$this->theTable = $this->conf['table'];
 
-		$this->nc = $this->conf['no_cache'] ? '&no_cache=1' : $this->nc;
+		$linkConf = $this->conf['formurl']?$this->conf['formurl.']:array();
 			// pid
 		$this->thePid = intval($this->conf['pid']) ? intval($this->conf['pid']) : $GLOBALS['TSFE']->id;
 			//
@@ -212,8 +212,14 @@
 		$this->markerArray['###GC2###'] = $this->cObj->stdWrap($this->conf['color2'],$this->conf['color2.']);
 		$this->markerArray['###GC3###'] = $this->cObj->stdWrap($this->conf['color3'],$this->conf['color3.']);
 
+		if (t3lib_div::testInt($this->conf['no_cache'])&&intval($this->conf['no_cache']))	{
+			$linkConf['no_cache'] = 1;
+		}
+		$linkConf['parameter'] = $linkConf['parameter']?$linkConf['parameter']:$GLOBALS['TSFE']->id;
+		$linkConf['additionalParams'] .= $this->conf['addParams'];
+			
 			// Initialize markerArray, setting FORM_URL and HIDDENFIELDS
-		$this->markerArray['###FORM_URL###'] = 'index.php?id='.$GLOBALS['TSFE']->id.'&type='.$GLOBALS['TSFE']->type.$this->nc.$this->conf['addParams'];
+		$this->markerArray['###FORM_URL###'] = $this->cObj->typoLink_URL($linkConf);
 		$this->markerArray['###FORM_URL_ENC###'] = rawurlencode($this->markerArray['###FORM_URL###']);
 		$this->markerArray['###FORM_URL_HSC###'] = htmlspecialchars($this->markerArray['###FORM_URL###']);
 
-------------- next part --------------
TSref
11.0.3 fe_adminLib.inc
URL: http://typo3.org/documentation/document-library/doc_core_tsref/fe_adminLib_inc/

Table: fe_adminLib.inc properties
Subsection: Others
PDF-Page: 124-125

Property: formurl
Data type: ->typolink
Description: Contains typolink properties for the URL (action tag) of the form.
Default:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20050707/0d1bf0b0/attachment.pgp 


More information about the TYPO3-team-core mailing list