temp.canonical = COA
temp.canonical.10 = TEXT
temp.canonical.10 {
typolink {
parameter.data = TSFE:id
addQueryString = 1
addQueryString {
method = GET
// vermeide doppelte id:
exclude = id
}
returnLast = url
}
wrap =
}
Archive for 八月, 2012
Adding canonical tags
BEUSER清除指定page缓存
You can enable “flash icon” clear cache command for common BEuser, just add this code to user’s and/or user’s group TSconfig
options.clearCache.pages = 1
options.clearCache.all = 1
TSMENU给指定页面加class
NO.ATagParams =
NO.ATagParams.append = TEXT
NO.ATagParams.append.value = class="lightbox"
NO.ATagParams.append.if {
value.field = uid
equals = 77
}
Use strong and em instead of b and i Tags
By default the RTE in TYPO3 creates and tags which have no semantic meaning but just represent a visual style. Therefore these tags are considered deprecated in modern web design, just like the font-tag. People use CSS to decide if something should be bold or italic. Therefore web developers have switched to strong and em tags which do have a semantic meaning.
Put the following in your TS Setup to convert and tags to and (continue reading…)
typo3 gzip
### Begin: Compression via TYPO3 ###
# Compressing resource files will save bandwidth and so improve loading speed especially for users
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
# *) Uncomment the following lines and
# *) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' for the Backend
# *) Set $TYPO3_CONF_VARS['FE']['compressionLevel'] = '9' together with the TypoScript properties
# config.compressJs=1 and config.compressCss=1 in typoscript for GZIP compression of Frontend JS and CSS files.
AddType "text/javascript" .gzip
AddType "text/css" .gzip
AddEncoding gzip .gzip
### End: Compression via TYPO3 ###
XCode调试技巧之EXC_BAD_ACCESS中BUG解决
XCode调试技巧之EXC_BAD_ACCESS中BUG解决是本文要介绍的内容,在iphone开发的时候EXC_BAD_ACCESS这个bug时不容易找到原因的,在网上找到的3个关于这个问题的方法,希望可以帮到你,我自己试了一下第一中方法,效果还不错 (continue reading…)
改变UIImage的大小
lazytable 例子
// Set appIcon and clear temporary data/image
UIImage *image = [[UIImage alloc] initWithData:self.activeDownload];
if (image.size.width != kAppIconHeight && image.size.height != kAppIconHeight)
{
CGSize itemSize = CGSizeMake(kAppIconHeight, kAppIconHeight);
UIGraphicsBeginImageContext(itemSize);
CGRect imageRect = CGRectMake(0.0, 0.0, itemSize.width, itemSize.height);
[image drawInRect:imageRect];
self.appRecord.appIcon = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
else
{
self.appRecord.appIcon = image;
}
self.activeDownload = nil;
[image release];
图片缩放到指定大小尺寸
- (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size{
// 创建一个bitmap的context
// 并把它设置成为当前正在使用的context
UIGraphicsBeginImageContext(size);
// 绘制改变大小的图片
[img drawInRect:CGRectMake(0, 0, size.width, size.height)];
// 从当前context中创建一个改变大小后的图片
UIImage* scaledImage = UIGraphicsGetImageFromCurrentImageContext();
// 使当前的context出堆栈
UIGraphicsEndImageContext();
// 返回新的改变大小后的图片
return scaledImage;
}
iOS高效开发必备的10款Objective-C类库
有很多第三方的iOS开发的Objective-C类库可以用来简化很多不必要的工作.经过作者团队的慎重讨论,他们评选出了10款能够极大提高iOS开发效率的类库,根据原文作者的评价来看,基本上有了这10款工具,做iOS开发就真的跟泡Cocoa一样了。 (continue reading…)