Category Archives: TYPO3

TYPO3 6.2 alpha 2 mostra novità interessanti

Install Tool completely refactored
We finally removed t3lib completely
Extbase now has recursive validation
Our Logger is now fully PSR-3 compliant
We merged the separate ts_* extensions into one
You can now drag&drop files into the file list to upload them
There is a new “System” group in the module menu
The BE authentication now uses saltedpassword by default
Many many other usability and code cleanups

Qua http://typo3.org/news/article/typo3-cms-62-lts-alpha2-released/

RealURL replace segments encode and decode

Funzioni di replace nel RealURL, inserire le seguenti righe nel file realurl_userconf.php

// put this two function at the begin of realurl_userconf.php file

function user_encodeSpURL_postProc(&$params, &$ref) {
//   $params['URL'] = str_replace('calendar/location/tx_cal_location/location/', 'calendar/location/', $params['URL']);
//   $params['URL'] = str_replace('calendar/organizer/tx_cal_organizer/organizer/', 'calendar/organizer/', $params['URL']);
//   $params['URL'] = str_replace('calendar/tx_cal_phpicalendar/event/2011/', 'calendar/2011/', $params['URL']);
//   $params['URL'] = str_replace('calendar/tx_cal_phpicalendar/event/2012/', 'calendar/2012/', $params['URL']);
//   $params['URL'] = str_replace('calendar/tx_cal_phpicalendar/event/2013/', 'calendar/2013/', $params['URL']);
  $params['URL'] = str_replace('event/tx_cal_phpicalendar/', 'evento/', $params['URL']);
  $params['URL'] = str_replace('news/news-detail/news/', 'dettaglio-news/', $params['URL']);
}
function user_decodeSpURL_preProc(&$params, &$ref) {
//   $params['URL'] = str_replace('calendar/location/', 'calendar/location/tx_cal_location/location/', $params['URL']);
//   $params['URL'] = str_replace('calendar/organizer/', 'calendar/organizer/tx_cal_organizer/organizer/', $params['URL']);
//   $params['URL'] = str_replace('calendar/2011/', 'calendar/tx_cal_phpicalendar/event/2011/', $params['URL']);
//   $params['URL'] = str_replace('calendar/2012/', 'calendar/tx_cal_phpicalendar/event/2012/', $params['URL']);
//   $params['URL'] = str_replace('calendar/2013/', 'calendar/tx_cal_phpicalendar/event/2013/', $params['URL']);
  $params['URL'] = str_replace('evento/', 'event/tx_cal_phpicalendar/', $params['URL']);
  $params['URL'] = str_replace('dettaglio-news/', 'news/news-detail/news/', $params['URL']);
}


$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
// put this two encode/decode at the begin of realurl conf array
  'encodeSpURL_postProc' => array('user_encodeSpURL_postProc'),
  'decodeSpURL_preProc' => array('user_decodeSpURL_preProc'),
// begin of default realurl conf array
  '_DEFAULT' => 
...

news list tx_news RealURL configuration paginate widget

News list realurl configuration, here the official doc:

http://docs.typo3.org/typo3cms/extensions/news/Main/Administration/Realurl/Index.html

if you want to add paginate realurl configuration see the example in advanced example and add this piece in postVarSets:

'postVarSets' => array(
        '_DEFAULT' => array(
                //put this after controller and dateFilter...
                'pag' => array(
                        array(
                                'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
                                //'noMatch' => 'bypass'
                        )
                )
        ),
),

indexed_search settings via typoscript on TYPO3 6.1

you can set the indexed search in your typoscript setup template:

orignal settings in typo3/sysext/indexed_search/ext_typoscript_setup.txt:

plugin.tx_indexedsearch {
	show {
		rules = 1
		parsetimes = 0
		L2sections = 0
		L1sections = 1
		LxALLtypes = 0
		clearSearchBox = 0
		clearSearchBox.enableSubSearchCheckBox = 0
		forbiddenRecords = 0
		alwaysShowPageLinks = 0
		advancedSearchLink = 1
		resultNumber = 0
		mediaList =
	}
}

my settings in typoscript template (setup):

plugin.tx_indexedsearch {
	show {
		rules = 0
		parsetimes = 1
		clearSearchBox = 1		
		alwaysShowPageLinks = 1
		advancedSearchLink = 0
		resultNumber = 1
	}
}

TYPO3 CMS 6.2 LTS inizia lo sviluppo della nuova versione TYPO3 long time support

Dopo la fortunata 4.5 LTS inizia lo sviluppo della nuova LTS di TYPO3 la versione 6.2
Naturalmente la prima delle parole chiavi è rivolta alla “migrazione”, infatti il bacino di installazioni della 4.5 è notevole, infatti il supporto LTS è stato di gran stimolo per progetti professionali mantenuti con sicurezza e professionalità per oltre 3 anni con il supporto ufficiale per bug e security fixes.

Ecco le parole chiave della versione TYPO3 CMS 6.2 LTS:

  • Smooth Migration
  • User Happiness
  • Robust, Stable and Secure Foundation
  • Modern Technologies / Interoperability
Gli altri 3 punti sono già visibili nella 6.1, e nel gran lavoro di pulizia che si sta facendo sulle estensioni vecchie. La svolta dalle versioni 4.x alla nuova 6.x ha infatti portato molte estensioni a non funzionare. Questo è stato di sprone agli sviluppatori più attivi per aggiornare le loro estensioni e plugin.

L’articolo originale qui in inglese: http://typo3.org/news/article/typo3-cms-62-lts-kick-off/

TYPO3 news extension “news” by Georg Ringer how to show preview images in list mode

The new News extension by Georg Ringer by default doesn’t show images in list mode.
Here how to show images in list mode by default:

  1. copy templates from typo3conf/ext/news/Resources/Private/Partials/    into fileadmin/template/ext/news/Partials/
  2. edit your TS to set the new path
  3. edit your fileadmin/template/ext/news/Partials/List/Item.html to insert nonMediaPreviews elements

1) here the folders:

2) edit typoscript to set the new paths:

plugin.tx_news.view.layoutRootPath = fileadmin/template/ext/news/Layouts/
plugin.tx_news.view.partialRootPath = fileadmin/template/ext/news/Partials/
plugin.tx_news.view.templateRootPath = fileadmin/template/ext/news/Templates/

3) insert nonMediaPreviews elements in your new template fileadmin/template/ext/news/Partials/List/Item.html

edit the <f:else> in line 47 to generate the nonMediaPreviews elements in the same way of the mediaPreviews elements

from

<f:else>
	<f:if condition="{settings.displayDummyIfNoMedia}">
	<span class="no-media-element">
			<f:image
				src="typo3conf/ext/news/Resources/Public/Images/dummy-preview-image.png"
				title=""
				alt=""
				maxWidth="{settings.list.media.image.maxWidth}"
				maxHeight="{settings.list.media.image.maxHeight}"
				/>
	</span>
	</f:if>
</f:else>

to

<f:else>
	<f:alias map="{mediaElement: newsItem.nonMediaPreviews.0}">
		<f:if condition="{mediaElement.type} == 0">
			<f:image
				src="uploads/tx_news/{mediaElement.image}"
				title="{mediaElement.title}"
				alt="{mediaElement.alt}"
				maxWidth="{settings.list.media.image.maxWidth}"
				maxHeight="{settings.list.media.image.maxHeight}"
				/>
		</f:if>
		<f:if condition="{mediaElement.type} == 1">
			<f:render partial="Detail/MediaVideo" arguments="{mediaElement: mediaElement}" />
		</f:if>
		<f:if condition="{mediaElement.type} == 2">
			<f:render partial="Detail/MediaHtml" arguments="{mediaElement: mediaElement}" />
		</f:if>
		<f:if condition="{mediaElement.type} == 3">
			<n:format.dam as="dam" uid="{mediaElement.uid}">
				<f:image src="{dam.file_path}{dam.file_name}" title="{dam.title}" alt="{dam.alt_text}" maxWidth="{settings.detail.media.image.maxWidth}" />
			</n:format.dam>
		</f:if>
	</f:alias>
</f:else>