This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lib.dynamicContent = COA | |
| lib.dynamicContent { | |
| 10 = CONTENT | |
| 10 { | |
| table = pages | |
| select.orderBy = sorting | |
| select.where = doktype != 199 | |
| as = pageId | |
| renderObj = COA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| col, | |
| COUNT(col) | |
| FROM | |
| table_name | |
| GROUP BY col | |
| HAVING COUNT(col) > 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The one pager navigation | |
| // You can choose any field from the page record with "{field:fieldname}" | |
| // But I would recommend the field "alias" since it makes sense the most for navigation | |
| lib.onepageMenu = HMENU | |
| lib.onepageMenu{ | |
| special = directory | |
| special.value = 44 | |
| 1 = TMENU | |
| 1{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var | |
| elements = document.querySelectorAll(".well"), | |
| heights = []; | |
| /* Getting an array with the heights */ | |
| [].forEach.call(elements, function(each) { | |
| heights[heights.length] = getComputedStyle(each, null).getPropertyValue("height"); | |
| }); | |
| /* Sorting the array to get the greatest value first */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| $('a').on('click touchend', function(e) { | |
| var el = $(this); | |
| var link = el.attr('href'); | |
| window.location = link; | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input type="text" placeholder="Text eingeben" id="tceforms-textfield-55373da7c1aa8137713697" class="formField tceforms-textfield hasDefaultValue" name="data[tt_content][170][pi_flexform][data][options][lDEF][field2][vDEF]_hr" value="" style="width: 412px; " maxlength="256" onchange="typo3form.fieldGet('data[tt_content][170][pi_flexform][data][options][lDEF][field2][vDEF]','trim,required','',1,'');TBE_EDITOR.fieldChanged('tt_content','170','pi_flexform','data[tt_content][170][pi_flexform]');"> | |
| <input type="text" placeholder="Text eingeben" id="tceforms-textfield-55373da7c2110609805513" class="formField tceforms-textfield hasDefaultValue" name="data[tt_content][170][pi_flexform][data][options][lDEF][field4][vDEF]_hr" value="" style="width: 412px; " maxlength="256" onchange="typo3form.fieldGet('data[tt_content][170][pi_flexform][data][options][lDEF][field4][vDEF]','trim,required','',1,'');TBE_EDITOR.fieldChanged('tt_content','170','pi_flexform','data[tt_content][170][pi_flexform]');"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Put this in <head> /* | |
| <?php | |
| function is_facebook() { | |
| if(!(stristr($_SERVER["HTTP_USER_AGENT"],'facebook') ===FALSE)) | |
| return true; | |
| } | |
| if(is_facebook()) { | |
| OpenGraph Data | |
| } |