[TYPO3-Solr] Solr External Content

Olivier Dobberkau olivier.dobberkau at dkd.de
Tue Sep 27 20:25:16 CEST 2011


Am 27.09.11 17:24, schrieb Richard Schaufler:

> How should I handle the external data correctly? Do I need do generate a
> hash somehow?

you will need to create the sitehash. this is how we create it in die
extension.



	/**
	 * Generates the site's unique Site Hash.
	 *
	 * The Site Hash is build from the site's main domain, the system
encryption
	 * key, and the extension "tx_solr". These components are concatenated and
	 * md5-hashed.
	 *
	 * @return	string	Site Hash.
	 */
	public function getSiteHash() {
		$siteHash = md5(
			$this->getDomain() .
			$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] .
			'tx_solr'
		);

		return $siteHash;
	}


best regards,

Olivier




More information about the TYPO3-project-solr mailing list