Last active
October 7, 2015 20:27
-
-
Save witrin/3220616 to your computer and use it in GitHub Desktop.
TypoGento - Common Settings
This file contains 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
/** | |
* Setup Magento page header, the TypoGento form rewriter and TypoScript runtime registers | |
*/ | |
config.tx_typogento { | |
# Integrates the Magento page header | |
header { | |
# Enables the integration | |
enable = 1 | |
# Resource handling | |
resources { | |
# Magento CSS resources | |
css { | |
# Enables resource compression (see http://wiki.typo3.org/TSref/CONFIG) | |
compress = {$plugin.tx_typogento.header.resources.compression} | |
# Imports resources into TYPO3 cache directory (typo3temp) | |
import = {$plugin.tx_typogento.header.resources.import} | |
} | |
# Magento JS resources | |
js { | |
# Enables resource compression (see http://wiki.typo3.org/TSref/CONFIG) | |
compress = {$plugin.tx_typogento.header.resources.compression} | |
# Imports resources into TYPO3 cache directory (typo3temp) | |
import = {$plugin.tx_typogento.header.resources.import} | |
} | |
} | |
# TypoScript registers (e.g. register:tx_typogento.header.title) | |
register { | |
# Enables the registers | |
enable = 1 | |
# Fields to provide | |
fields = {$plugin.tx_typogento.header.fields} | |
} | |
} | |
# Rewrites HTML forms and Ajax requests on client side | |
rewriter { | |
# Enables the rewriter | |
enable = 1 | |
# Bootstrap code | |
bootstrap ( | |
document.observe('dom:loaded', function() { | |
// rewrite ajax requests | |
Rewriter.inject(); | |
// rewrite html forms | |
$$('.magento form').each(function(element) { | |
new Rewriter(element); | |
}); | |
}); | |
) | |
} | |
# Configures the TypoGento content plugin | |
content { | |
# Uses page column 'normal' for content plugins | |
column = {$plugin.tx_typogento.content.column} | |
# Uses first content plugin in column 'normal' | |
position = {$plugin.tx_typogento.content.position} | |
# TypoScript registers (e.g. register:tx_typogento.content.route) | |
register { | |
# Enables the registers | |
enable = {$plugin.tx_typogento.content.register.enable} | |
# Fields to provide | |
fields = {$plugin.tx_typogento.content.register.fields} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment