/**
  * Build the route path for the given content record
  *
  * @param sfSympalContent $content 
  * @return string $routePath
  */
 protected function _buildRoutePath(sfSympalContent $content)
 {
     // If content has a custom path then lets use it
     if ($content->hasCustomPath()) {
         $path = $content->custom_path;
         if ($path != '/') {
             $path .= '.:sf_format';
         }
         return $path;
     } else {
         if ($content->get('module', false) || $content->get('action', false)) {
             $values = $this->getCultureRouteValues();
             $values['sf_culture'] = ':sf_culture';
             $values['sf_format'] = ':sf_format';
             return $this->getRouteObject()->generate($values);
         } else {
             if ($path = $content->getType()->getRoutePath()) {
                 return $path;
             } else {
                 if ($content->getSlug()) {
                     return '/content/:slug';
                 }
             }
         }
     }
 }
 /**
  * Build the route path for the given content record
  *
  * @param sfSympalContent $content 
  * @return string $routePath
  */
 protected function _buildRoutePath(sfSympalContent $content)
 {
     // If content has a custom path then lets use it
     if ($content->hasCustomPath()) {
         $path = $content->custom_path;
         if ($path != '/') {
             $path .= '.:sf_format';
         }
         return $path;
     } else {
         if ($content->get('module', false) || $content->get('action', false)) {
             $cloned = $content->copy(false);
             $cloned->module = null;
             $cloned->action = null;
             return $cloned->getContentRouteObject()->getEvaluatedRoutePath();
         } else {
             if ($path = $content->getType()->getRoutePath()) {
                 return $path;
             } else {
                 if ($content->getSlug()) {
                     return '/content/:slug';
                 }
             }
         }
     }
 }