source/Application/Component/Locator.php
protected function _setRecommlistLocatorData($oLocatorTarget, $oCurrArticle)
    {
        if (($oRecommList = $oLocatorTarget->getActiveRecommList())) {
            // loading data for article navigation
            $oIdList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
            $oIdList->loadRecommArticleIds($oRecommList->getId(), null);

            //page number
            $iPage = $this->_findActPageNumber($oLocatorTarget->getActPage(), $oIdList, $oCurrArticle);

            $sSearchRecomm = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('searchrecomm', true);

            if ($sSearchRecomm !== null) {
                $sSearchFormRecomm = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('searchrecomm');
                $sSearchLinkRecomm = rawurlencode($sSearchRecomm);
                $sAddSearch = 'searchrecomm=' . $sSearchLinkRecomm;
            }

            // setting product position in list, amount of articles etc
            $oRecommList->iCntOfProd = $oIdList->count();
            $oRecommList->iProductPos = $this->_getProductPos($oCurrArticle, $oIdList, $oLocatorTarget);
            $blSeo = \OxidEsales\Eshop\Core\Registry::getUtils()->seoIsActive();

            if ($blSeo && $iPage) {
                /** @var \OxidEsales\Eshop\Application\Model\SeoEncoderRecomm $oSeoEncoderRecomm */
                $oSeoEncoderRecomm = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderRecomm::class);
                $oRecommList->toListLink = $oSeoEncoderRecomm->getRecommPageUrl($oRecommList, $iPage);
            } else {
                $oRecommList->toListLink = $this->_makeLink($oRecommList->getLink(), $this->_getPageNumber($iPage));
            }
            $oRecommList->toListLink = $this->_makeLink($oRecommList->toListLink, $sAddSearch);

            $sAdd = '';
            if (!$blSeo) {
                $sAdd = 'recommid=' . $oRecommList->getId() . '&amp;listtype=recommlist' . ($sAddSearch ? '&amp;' : '');
            }
            $sAdd .= $sAddSearch;
            $oNextProduct = $this->_oNextProduct;
            $oBackProduct = $this->_oBackProduct;
            $oRecommList->nextProductLink = $oNextProduct ? $this->_makeLink($oNextProduct->getLink(), $sAdd) : null;
            $oRecommList->prevProductLink = $oBackProduct ? $this->_makeLink($oBackProduct->getLink(), $sAdd) : null;

            $oLang = \OxidEsales\Eshop\Core\Registry::getLang();
            $sTitle = $oLang->translateString('RECOMMLIST');
            if ($sSearchRecomm !== null) {
                $sTitle .= " / " . $oLang->translateString('RECOMMLIST_SEARCH') . ' "' . $sSearchFormRecomm . '"';
            }
            $oLocatorTarget->setSearchTitle($sTitle);
            $oLocatorTarget->setActiveCategory($oRecommList);
        }
    }
protected function _setRecommlistLocatorData($oLocatorTarget, $oCurrArticle)
    {
        if (($oRecommList = $oLocatorTarget->getActiveRecommList())) {
            // loading data for article navigation
            $oIdList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
            $oIdList->loadRecommArticleIds($oRecommList->getId(), null);

            //page number
            $iPage = $this->_findActPageNumber($oLocatorTarget->getActPage(), $oIdList, $oCurrArticle);

            $sSearchRecomm = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('searchrecomm', true);

            if ($sSearchRecomm !== null) {
                $sSearchFormRecomm = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('searchrecomm');
                $sSearchLinkRecomm = rawurlencode($sSearchRecomm);
                $sAddSearch = 'searchrecomm=' . $sSearchLinkRecomm;
            }

            // setting product position in list, amount of articles etc
            $oRecommList->iCntOfProd = $oIdList->count();
            $oRecommList->iProductPos = $this->_getProductPos($oCurrArticle, $oIdList, $oLocatorTarget);
            $blSeo = \OxidEsales\Eshop\Core\Registry::getUtils()->seoIsActive();

            if ($blSeo && $iPage) {
                /** @var \OxidEsales\Eshop\Application\Model\SeoEncoderRecomm $oSeoEncoderRecomm */
                $oSeoEncoderRecomm = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderRecomm::class);
                $oRecommList->toListLink = $oSeoEncoderRecomm->getRecommPageUrl($oRecommList, $iPage);
            } else {
                $oRecommList->toListLink = $this->_makeLink($oRecommList->getLink(), $this->_getPageNumber($iPage));
            }
            $oRecommList->toListLink = $this->_makeLink($oRecommList->toListLink, $sAddSearch);

            $sAdd = '';
            if (!$blSeo) {
                $sAdd = 'recommid=' . $oRecommList->getId() . '&amp;listtype=recommlist' . ($sAddSearch ? '&amp;' : '');
            }
            $sAdd .= $sAddSearch;
            $oNextProduct = $this->_oNextProduct;
            $oBackProduct = $this->_oBackProduct;
            $oRecommList->nextProductLink = $oNextProduct ? $this->_makeLink($oNextProduct->getLink(), $sAdd) : null;
            $oRecommList->prevProductLink = $oBackProduct ? $this->_makeLink($oBackProduct->getLink(), $sAdd) : null;

            $oLang = \OxidEsales\Eshop\Core\Registry::getLang();
            $sTitle = $oLang->translateString('RECOMMLIST');
            if ($sSearchRecomm !== null) {
                $sTitle .= " / " . $oLang->translateString('RECOMMLIST_SEARCH') . ' "' . $sSearchFormRecomm . '"';
            }
            $oLocatorTarget->setSearchTitle($sTitle);
            $oLocatorTarget->setActiveCategory($oRecommList);
        }
    }
protected function _setRecommlistLocatorData ( $ oLocatorTarget , $ oCurrArticle ) { if ( ( $ oRecommList = $ oLocatorTarget -> getActiveRecommList ( ) ) ) { // loading data for article navigation $ oIdList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oIdList -> loadRecommArticleIds ( $ oRecommList -> getId ( ) , null ) ; //page number $ iPage = $ this -> _findActPageNumber ( $ oLocatorTarget -> getActPage ( ) , $ oIdList , $ oCurrArticle ) ; $ sSearchRecomm = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'searchrecomm' , true ) ; if ( $ sSearchRecomm !== null ) { $ sSearchFormRecomm = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'searchrecomm' ) ; $ sSearchLinkRecomm = rawurlencode ( $ sSearchRecomm ) ; $ sAddSearch = 'searchrecomm=' . $ sSearchLinkRecomm ; } // setting product position in list, amount of articles etc $ oRecommList -> iCntOfProd = $ oIdList -> count ( ) ; $ oRecommList -> iProductPos = $ this -> _getProductPos ( $ oCurrArticle , $ oIdList , $ oLocatorTarget ) ; $ blSeo = \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) -> seoIsActive ( ) ; if ( $ blSeo && $ iPage ) { /** @var \OxidEsales\Eshop\Application\Model\SeoEncoderRecomm $oSeoEncoderRecomm */ $ oSeoEncoderRecomm = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Application \ Model \ SeoEncoderRecomm :: class ) ; $ oRecommList -> toListLink = $ oSeoEncoderRecomm -> getRecommPageUrl ( $ oRecommList , $ iPage ) ; } else { $ oRecommList -> toListLink = $ this -> _makeLink ( $ oRecommList -> getLink ( ) , $ this -> _getPageNumber ( $ iPage ) ) ; } $ oRecommList -> toListLink = $ this -> _makeLink ( $ oRecommList -> toListLink , $ sAddSearch ) ; $ sAdd = '' ; if ( ! $ blSeo ) { $ sAdd = 'recommid=' . $ oRecommList -> getId ( ) . '&amp;listtype=recommlist' . ( $ sAddSearch ? '&amp;' : '' ) ; } $ sAdd .= $ sAddSearch ; $ oNextProduct = $ this -> _oNextProduct ; $ oBackProduct = $ this -> _oBackProduct ; $ oRecommList -> nextProductLink = $ oNextProduct ? $ this -> _makeLink ( $ oNextProduct -> getLink ( ) , $ sAdd ) : null ; $ oRecommList -> prevProductLink = $ oBackProduct ? $ this -> _makeLink ( $ oBackProduct -> getLink ( ) , $ sAdd ) : null ; $ oLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; $ sTitle = $ oLang -> translateString ( 'RECOMMLIST' ) ; if ( $ sSearchRecomm !== null ) { $ sTitle .= " / " . $ oLang -> translateString ( 'RECOMMLIST_SEARCH' ) . ' "' . $ sSearchFormRecomm . '"' ; } $ oLocatorTarget -> setSearchTitle ( $ sTitle ) ; $ oLocatorTarget -> setActiveCategory ( $ oRecommList ) ; } }
Sets details locator data for articles that came from recommlist.

Template variables:
<b>sSearchTitle</b>, <b>searchparamforhtml</b>

@param \OxidEsales\Eshop\Application\Controller\FrontendController $oLocatorTarget FrontendController object
@param \OxidEsales\Eshop\Application\Model\Article                 $oCurrArticle   current article

@deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
Sets details locator data for articles that came from recommlist .