New stuff, just copy&paste
Today i present:
Disable Flexform Elements from tt_news:
paste into PageTS:
TCEFORM.tt_news.datetime.disabled = 0 TCEFORM.tt_news.editlock.disabled = 1 TCEFORM.tt_news.image.disabled = 0 TCEFORM.tt_news.imagecaption.disabled = 1 TCEFORM.tt_news.imagealttext.disabled = 1 TCEFORM.tt_news.imagetitletext.disabled = 0 TCEFORM.tt_news.related.disabled = 1 TCEFORM.tt_news.short.disabled = 1 TCEFORM.tt_news.bodytext.disabled = 0 TCEFORM.tt_news.author.disabled = 0 TCEFORM.tt_news.author_email.disabled = 1 TCEFORM.tt_news.news_files.disabled = 1 TCEFORM.tt_news.links.disabled = 0 TCEFORM.tt_news.keywords.disabled = 1 TCEFORM.tt_news.archivedate.disabled = 1 TCEFORM.tt_news.ext_url.disabled = 1 TCEFORM.tt_news.fe_group.disabled = 1 ...
activate new tt_news articles automatically (not hidden):
again, paste into PageTS:
TCAdefaults.tt_news.hidden = 0
insert a Logout-Button on feeditadvanced Layout:
First, add this to your root TS-Setup:
[globalVar = TSFE : beUserLogin > 0] lib.belogout = TEXT lib.belogout.value = <a class="belogout" title="Logout!" href="typo3/logout.php?redirect=../index.php">Logout</a> [global]
now you will need a TS-Object or a PageMARKER inside your FE-Template, like …
lib.belogout
just add some CSS like:
.belogout {
display: inline-block;
padding-top: 4px;
margin: 2px 10px 0 0;
height: 21px;
text-decoration: none;
cursor: pointer;
text-align: center;
color: #c6c6c6;
background: url(../../typo3conf/ext/feeditadvanced/res/icons/menubar/button.png) no-repeat 0 0;
font-size: 12px;
width: 92px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
z-index: 8001;
position: fixed;
right: 100px;
top:1px;
color: #fff;
}
.belogout:hover, .belogout:active, .belogout:visited {color:#fff; text-decoration:none;}
Now your Logout-Button looks like the feeditadvanced Layout und works …
That’s all for today.
TYPO3 – Inspiring people to share – Yeah that’s right!
Related posts:

0 Responses to “mixed TypoScript Snippets Vol. 2”
Leave a Reply