config.tx_extbase {
	persistence {
		classes {
			In2code\Powermail\Domain\Model\User {
				mapping {
					tableName = fe_users
				}
			}
			In2code\Powermail\Domain\Model\UserGroup {
				mapping {
					tableName = fe_groups
				}
			}
		}
	}
}

# ParseFunc Configuration for using FAL links in receiver and sender mail
lib.parseFunc_powermail < lib.parseFunc_RTE
lib.parseFunc_powermail.tags.link.typolink.forceAbsoluteUrl = 1




#################
# Backend Module
#################
module.tx_powermail {
	view {
		templateRootPaths.0 = EXT:powermail/Resources/Private/Templates/
		partialRootPaths.0 = EXT:powermail/Resources/Private/Partials/
		layoutRootPaths.0 = EXT:powermail/Resources/Private/Layouts/
		widget.TYPO3\CMS\Fluid\ViewHelpers\Widget\PaginateViewHelper.templateRootPath = EXT:powermail/Resources/Private/Templates/

		# Preperation for TYPO3 8.x - seems not to work in TYPO3 8.0 - see https://forge.typo3.org/issues/73207 for details
		widget.TYPO3\CMS\Fluid\ViewHelpers\Widget\PaginateViewHelper.templateRootPaths {
			10 = EXT:powermail/Resources/Private/Templates/
		}
	}
	settings {
		# crdate, sender_name, sender_email, subject, receiver_mail, feuser, time
		sortby = crdate
		order = desc
		perPage = 25
		export {
			filenameXls = powermail.xls
			filenameCsv = powermail.csv
		}
		uploadPath = {$plugin.tx_powermail.settings.misc.uploadFolder}

		# Don't touch this (this is just to let the extension know, that there is TypoScript included)
		staticTemplate = 1
	}
}
