Beispiel #1
0
 public function getFinalUrlText($pageId)
 {
     $text = "";
     if (NULL != $pageId) {
         $page = $this->find($pageId);
         if (isset($page->seo_url_text) && !empty($page->seo_url_text)) {
             $text .= \UrlExtended::friendly_url($page->seo_url_text);
         } else {
             $text .= \UrlExtended::friendly_url($page->name);
         }
     }
     if (NULL != $page->id_parent) {
         return $this->getFinalUrlText($page->id_parent) . "/" . $text;
     }
     return $text;
 }
 private function getProductNiceURLSegment($product)
 {
     return \UrlExtended::friendly_url($product['id'] . '-' . $product['title']);
 }