typo3

Fähnchen der Standardsprache in TYPO3 4.5 mit TemplaVoila

Der eine oder andere wundert sich vielleicht, dass nach dem Update auf TYPO3 4.5 und dem Einspielen der neuesten Version von TemplaVoila 1.5.4 trotzdem das Fähnchen der Standard Sprache nicht angezeigt wird oder dass stattdessen nur ein rotes Fragezeichen erscheint.

(continue reading…)


typo3 sendNotifyEmail

1. $this->cObj->sendNotifyEmail($msg, $recipients, $cc, $email_from, $email_fromName=”, $replyTo=”);

2. t3lib_div:

function sendNotifyEmail($msg, $recipients, $cc, $email_from, $email_fromName=”, $replyTo=”)    {
// Sends order emails:
$headers=array();
if ($email_from)    {$headers[]=’From: ‘.$email_fromName.’ <‘.$email_from.’>’;}
if ($replyTo)        {$headers[]=’Reply-To: ‘.$replyTo;}

$recipients=implode(‘,’,t3lib_div::trimExplode(‘,’,$recipients,1));

$emailContent = trim($msg);
if ($emailContent)    {
$parts = explode(LF, $emailContent, 2);        // First line is subject
$subject=trim($parts[0]);
$plain_message=trim($parts[1]);

if ($recipients)    t3lib_div::plainMailEncoded($recipients, $subject, $plain_message, implode(LF,$headers), $encoding=’quoted-printable’,$charset=’iso-8859-1′);
if ($cc)    t3lib_div::plainMailEncoded($cc, $subject, $plain_message, implode(LF,$headers), $encoding=’quoted-printable’,$charset=’iso-8859-1′);
return true;
}
}


Allow embed (Youtube) HTML tags in the RTE

Options:
RTE.default.proc {
allowTagsOutside = img, table, br, span, hr, h1, h2, h3, h4,h5,h6,embed,object,param
# Allow embed (Youtube) HTML tags in the RTE
allowTags := addToList(object,param,embed)
allowTagsOutside := addToList(object,embed)
}
Page:
# Allow embed (Youtube) HTML tags in the RTE
lib.parseFunc_RTE.allowTags := addToList(object,param,embed)


typo3 feuser md5

  1. if (TYPO3_MODE == ‘BE’) {
    $TCA[‘fe_users’][‘columns’][‘password’][‘config’][‘eval’] = ‘md5,nospace,required,password’;
    }
  2. class.t3lib_userauth.php  1189行 $loginData[‘uident’] = md5($loginData[‘uident_text’]);

typo3用户自动登录

Typo3 4,5,6

$loginData = array(
'uname' => $user['username'], //usernmae
'uident' => $user['password'], //password (加密后)
'status' => 'login'
);
$GLOBALS['TSFE']->fe_user->checkPid=0; //do not use a particular pid
$info= $GLOBALS['TSFE']->fe_user->getAuthInfoArray();
$user2=$GLOBALS['TSFE']->fe_user->fetchUserRecord($info['db_user'],$loginData['uname']);
//print_r($user2);
$ok=$GLOBALS['TSFE']->fe_user->compareUident($user2,$loginData);
if($ok) {
//login successfull
$GLOBALS['TSFE']->fe_user->createUserSession($user2);
$GLOBALS["TSFE"]->fe_user->loginSessionStarted = TRUE;
$GLOBALS["TSFE"]->fe_user->user = $GLOBALS["TSFE"]->fe_user->fetchUserSession();
}

Typo3 7

$GLOBALS['TSFE']->fe_user->createUserSession($userinfo);
$GLOBALS['TSFE']->fe_user->setAndSaveSessionData('login', 'success');
1 Comment more...

CSV export length

CSV field’s value will be cut to 100 length. It’s fixed in /typo3/class.db.list.extra.inc, line 732, so you can write a XCLASS to change it. good luck!

1 Comment more...

Record tree for TCA

Extension Key: cps_tcatree required plugin: Developer library ( cps_devlib )

Installation / Quick start

Changes in ext_tables.php

For each table you want to display as a tree you have to define a new key “treeParentField” which defines the field in which the relation is stored. This field can be either a comma separated list of uids or a mm-relation field.
(continue reading…)


Fluid User Manual

This chapter describes all things the users of the templating system needs to know. After you’ve read the introduction, you can dive into the concepts of Fluid which are relevant to you.

The chapter starts with an overview of basic concepts, continues with using layouts, and finishes with how to write your own view helpers. (continue reading…)


FLUIDTEMPLATE Content Object

With TYPO3 v4.5 the TypoScript Content Object FLUIDTEMPLATE is available.
It works similar to the regular TEMPLATE cObject but instead of the marker and subpart based templates it expects a Fluid style templates.

Note: Currently the extensions Fluid and Extbase have to be installed for this Content Object to work. (continue reading…)


Extbase/Fluid features and improvements

With TYPO3 4.5 LTS, a new version of Extbase and Fluid is shipped, which contains several major features like Dependency Injection and Fluid Widgets. This article gives an overview about the improvements in Extbase and Fluid, with links to more detailed information. (continue reading…)

1 Comment more...

Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress