# HG changeset patch # User Gautier Thibault # Date 1271242748 -7200 # Node ID 6b682e0e01dc8e806e4fe4101a5ca311ea53b675 # Parent a2b6a65ec55350c2d717a8dcfe829472d53d0c72 search and tags modules diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/config/routing.yml --- a/web/thdProject/apps/frontend/config/routing.yml Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/config/routing.yml Wed Apr 14 12:59:08 2010 +0200 @@ -42,7 +42,7 @@ search: url: /recherche/:filter/:page_nb - param: { module: search, action: viewSearchList, filter: all, page_nb: 1 } + param: { module: search, action: index, filter: all, page_nb: 1 } requirements: { page_nb: \d+ } @@ -51,8 +51,9 @@ ######## tagging: - url: /tagging - param: { module: tag, action: viewTag } + url: /tagging/:tag/:page_nb + param: { module: tag, action: index, tag:all, page_nb: 1 } + requirements: { page_nb: \d+ } ######## diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/homepage/templates/_search.php --- a/web/thdProject/apps/frontend/modules/homepage/templates/_search.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/templates/_search.php Wed Apr 14 12:59:08 2010 +0200 @@ -2,7 +2,7 @@

Recherche classique :

-
+
diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php --- a/web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php Wed Apr 14 12:59:08 2010 +0200 @@ -2,31 +2,13 @@

Navigation par tag :

\ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/partials/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/partials/actions/components.class.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/partials/actions/components.class.php Wed Apr 14 12:59:08 2010 +0200 @@ -12,5 +12,8 @@ $this->user = $this->getUser(); if (!$this->user->isAuthenticated()) return sfView::NONE; } + public function executeSearch() { + + } } diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/actions/actions.class.php --- a/web/thdProject/apps/frontend/modules/search/actions/actions.class.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/search/actions/actions.class.php Wed Apr 14 12:59:08 2010 +0200 @@ -2,9 +2,13 @@ class searchActions extends sfActions { - + /** + * Executes index action + * + * @param sfRequest $request A request object + */ public function executeIndex(sfWebRequest $request) { - $this->forward('search', 'viewSearchList'); + $this->forward('search', 'viewSearchList'); } } diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/search/actions/components.class.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/search/actions/components.class.php Wed Apr 14 12:59:08 2010 +0200 @@ -2,19 +2,16 @@ class searchComponents extends sfComponents { - public function executeLeftPanel() { + public function executeSideBar() { + + } + public function executeSearch() { } public function executeSelectedFilm() { - } - public function executeTagNavigator() { - - } - public function executeTagList() { - - } + } } \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/config/view.yml --- a/web/thdProject/apps/frontend/modules/search/config/view.yml Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/search/config/view.yml Wed Apr 14 12:59:08 2010 +0200 @@ -1,5 +1,8 @@ all: - stylesheets: [ /css/flashplayer.css, search.css ] + stylesheets: [ /css/flashplayer.css, /css/search.css ] - javascripts: [ /js/flowplayer/flowplayer-3.1.0.min.js, /js/flowplayer/uc.flowplayer.config.js] \ No newline at end of file + javascripts: [ /js/flowplayer/flowplayer-3.1.0.min.js, /js/flowplayer/uc.flowplayer.config.js] + + components: + sideBar: [ search, sideBar ] \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/_leftPanel.php --- a/web/thdProject/apps/frontend/modules/search/templates/_leftPanel.php Wed Apr 14 12:40:11 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -
-

Navigation par tag :

- Autres tags associés à cet extrait -
- - \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/_search.php --- a/web/thdProject/apps/frontend/modules/search/templates/_search.php Wed Apr 14 12:40:11 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/_searchList.php --- a/web/thdProject/apps/frontend/modules/search/templates/_searchList.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/search/templates/_searchList.php Wed Apr 14 12:59:08 2010 +0200 @@ -13,14 +13,14 @@ // directors list $directors = json_decode($item->getDirectorsArray(), true); ?> -
  • -
    ') no-repeat;" href=""> +
  • +
    - De + De getDirectorsArray(), 'name'); ?>
    - -
    -
    - +
  • - - \ No newline at end of file + + \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/_selectedFilm.php --- a/web/thdProject/apps/frontend/modules/search/templates/_selectedFilm.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/search/templates/_selectedFilm.php Wed Apr 14 12:59:08 2010 +0200 @@ -17,8 +17,7 @@ } }); } - -

    Résultat pour :

    +
    Anna M
    De Michel Spinosa diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/_sideBar.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/thdProject/apps/frontend/modules/search/templates/_sideBar.php Wed Apr 14 12:59:08 2010 +0200 @@ -0,0 +1,1 @@ + \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/_tagList.php --- a/web/thdProject/apps/frontend/modules/search/templates/_tagList.php Wed Apr 14 12:40:11 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -
    -Ajoutez des tags à votre navigation : - -
    \ No newline at end of file diff -r a2b6a65ec553 -r 6b682e0e01dc web/thdProject/apps/frontend/modules/search/templates/viewSearchListSuccess.php --- a/web/thdProject/apps/frontend/modules/search/templates/viewSearchListSuccess.php Wed Apr 14 12:40:11 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/search/templates/viewSearchListSuccess.php Wed Apr 14 12:59:08 2010 +0200 @@ -1,13 +1,7 @@ -
    - -
    - -
    -
    - $text) ) ?> - 'all', 'filmCount' => '10', 'searchFilms' => $searchFilms, 'pageIndex' => $pageIndex, 'pageNbItems' => $pageNbItems)); ?> -
    -
    +

    Résultats pour :

    + + 'all', 'filmCount' => '10', 'searchFilms' => $searchFilms, 'pageIndex' => $pageIndex, 'pageNbItems' => $pageNbItems)); ?> +