Postări

Se afișează postări din 2011
Typo3 - allow editor users to clear cache options.clearCache.all = 1 options.clearCache.pages = 1 Typo3 -Allow more images to Resources - on a page File /typo3conf/extTables.php $TCA['pages']['columns']['media']['config']['maxitems']=20; $TCA['pages']['columns']['media']['config']['max_size']=20*1024;

Repair memory stick

Repair memory stick even with format problem DISKPART LIST DISK SELECT DISK # (USB Stick) CLEAN ALL CREATE PARTITION PRIMARY SELECT PARTITION 1 ACTIVE FORMAT FS=FAT32 ASSIGN EXIT EXIT

Typoscript

http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.3.0/view/toc/0/

The Lost 1984 Video: young Steve Jobs introduces the Macintosh

Imagine

extract src from img tag - html

<?php $html = '<img src="http://domain/imagine.jpg" id="randomid" />'; if (preg_match('/<img.+?src(?: )*=(?: )*[\'"](.*?)[\'"]/si', $html, $arrRes)) {     echo $arrRes[1];  } ?>

.htaccess

Redirect a specific domain (if there is more) to a specific lang segment RewriteCond %{HTTP_HOST} domain.com RewriteCond %{REQUEST_URI} ^/$ RewriteRule .* /lang/ [L,R=301] Redirect all non-www to www.domain.cm RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

RTE in extension

Display html tags for rte in your own extension $this->pi_RTEcssText($bodyText);

Control start-up Services on ubuntu

$ sudo apt-get update $ sudo apt-get install sysv-rc-conf   $ sudo sysv-rc-conf install  sysv-rc-conf run  sysv-rc-conf deselect services (in CentOS the command is: #  sysv-rc-conf )

Typo3 Crop images (square) 40px x 40px

$gbobj=t3lib_div::makeInstance('tslib_gifBuilder'); $img=$gbobj->imageMagickConvert($file, 'gif', 40, 40,NULL,NULL, $conf); $newfile = $img[3]; the function /** * Make a thumb file with specified w/h - without constrains like proportions w/h * * */ public function makeSquareImage($file,$extension,$wh){ $gbobj=t3lib_div::makeInstance('tslib_gifBuilder'); $img=$gbobj->imageMagickConvert($file, $extension, $wh, $wh); $newfile = $img[3]; return $newfile; }

Typo3 template example using subparts

<div id="page">     <div id=head>         <div id="logo">               <!-- ###LOGO### -->               <img />               <!-- ###LOGO### -->         </div>         <div id="login">               <!-- ###LOGIN### -->               <form></form>               <!-- ###LOGIN### -->         </div>         <div id="langs">               <!-- ###LANG_MENU### -->               <ul><li></li></ul>               <!-- ###LANG_MENU### --> ...

Typo3 include js and css

page = PAGE page{ typeNum = 0   bodyTag = <body> meta{     DESCRIPTION=Site description     KEYWORDS=key1, key2, keywords     author = author name     robots = noodp     revisit-after = 3 days     language = en, english     distribution = global     google-site-verification = 4324restfgsdgdg#googlecode } headerData {     5 = TEXT     5.field = abstract     5.ifEmpty.field=title     5.wrap = <title>  |  - domain.com</title> }   includeJS{       jquery = fileadmin/js/jquery-1.5.1.min.js     jquery.compress=1     jqueryui = fileadmin/js/jquery-ui-1.8.14.custom.min.js     jqueryui.compress=1     }   includeCSS{ stylemin = fileadmin/css/all.min.css           style = fileadmin/css/style.css     style.c...

Codeigniter

Display Current Url $query = $_SERVER['QUERY_STRING'] ? '?'.$_SERVER['QUERY_STRING']:''; echo $this->config->site_url().$this->uri->uri_string(). $query;

typoscript translate

temp.wheater=HTML temp.weather.value=some value temp.weather.value.lang.en=some value2 temp.weather.value.lang.fr=some value3