[TYPO3-Solr] Solr External Content

Richard Schaufler Richard.Schaufler at marit.ag
Wed Sep 28 17:44:20 CEST 2011


Thanks!


-----Ursprüngliche Nachricht-----
Von: typo3-project-solr-bounces at lists.typo3.org [mailto:typo3-project-solr-bounces at lists.typo3.org] Im Auftrag von Olivier Dobberkau
Gesendet: Dienstag, 27. September 2011 20:25
An: typo3-project-solr at lists.typo3.org
Betreff: Re: [TYPO3-Solr] Solr External Content

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


_______________________________________________
TYPO3-project-solr mailing list
TYPO3-project-solr at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr


More information about the TYPO3-project-solr mailing list