Skip to content

Instantly share code, notes, and snippets.

View PetraMotz's full-sized avatar

Petra PetraMotz

View GitHub Profile
@PetraMotz
PetraMotz / BackgroundImage.html
Last active August 4, 2021 11:12
TYPO3 Bilder #FAL Image #SECTION FAL Image #Picture Tag #Background Image #Lightbox Link #fluid
<div class="spBackgroundImage" style="background: url({f:uri.image(image:field.image.0, treatIdAsReference:1)}) no-repeat center / cover"></div>
</f:if>
@PetraMotz
PetraMotz / MeashureHeight.js
Last active August 4, 2021 11:26
JQuery Scroll #js #scroll
function onScrollActivateSectionAnchor(){
var scrollTop = $(window).scrollTop();
var header= $('#header').offset().top;
var headerHight = $('#header').height();
var headerHalf = (headerHight/2)-70;
$('.scrollAnchor').each(function(){
var distance= $(this).offset().top - scrollTop;
var height= $(this).height();
@PetraMotz
PetraMotz / furi.html
Last active August 4, 2021 11:28
Typo3 Link Fluid #uri #t3
data-url="{f:uri.action(action: 'moreResults', pageUid: 173)} <---------------- link für Ajax route
{f:uri.page(pageUid:item.extLink)} <----bei action wenn auf die id einer internen Seite verlinkt wird
@PetraMotz
PetraMotz / alias.html
Last active August 4, 2021 11:10
Typo3 Foreach #iterator #alias #foreach #chunk #explode #fluid
###################alias#########################
<f:alias map="{firstName: address.firstName, lastName: address.lastName}">
<p>Hello, my name is {firstName} {lastName}</p>
</f:alias>
<f:alias map="{amount: '{addresses->f:count()}'}">
<p>There are {amount} records in database</p>
</f:alias>
@PetraMotz
PetraMotz / inline if.html
Last active August 4, 2021 11:27
Typo3 Fluid If #inline #fluid #t3
{f:if(condition: iterator.isOdd, then: 'newsOdd', else: 'newsEven')}
@PetraMotz
PetraMotz / allgemein.ts
Last active August 4, 2021 11:26
Typo3 Frontend Layout #frontend #layout #t3
Seite bearbeiten, Erscheinungsbild Frontend layout auswählen (wird nach ID im html abgefragt)
Name des Layouts kann in TS Config geändert werden
Beispiel Karwendel News Ext
<f:if condition="{data.layout}!=1">
<div id="news" class="defPageNewsContainer">
<f:render section="news" />
</div>
</f:if>
@PetraMotz
PetraMotz / powermail.ts
Last active August 4, 2021 11:11
TYPO3 Powermail #news #powermail #t3
powermail formular von news detail seite aus
plugin.tx_powermail.settings.setup.misc.addQueryString = 1
@PetraMotz
PetraMotz / cookie.js
Last active August 4, 2021 12:04
JQuery Nützliches #timeout #allgemein #nützlich #js
@PetraMotz
PetraMotz / hover.scss
Last active August 4, 2021 11:11
SCSS Hover Bold Ohne Springen #hover #scss
Hover Bold FIX:
a {
display:inline-block;
text-align:center;
}
a:hover {
font-weight:bold;
}
a::after {
display:block;
@PetraMotz
PetraMotz / direct Link.html
Last active August 4, 2021 11:10
Typo3 Fluid direct Links #mail #phone #direct #fluid