Changeset 1648


Ignore:
Timestamp:
Oct 4, 2010, 5:09:55 AM (10 years ago)
Author:
roux
Message:

titre rss comments deputes

Location:
cpc/trunk/project/apps/frontend
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/config/routing.yml

    r1641 r1648  
    249249search_amendements_mots:
    250250  url: /rechercher/amendements/:query
    251   param: {module: solr, action: redirect, object_name: Amendement, action: search}
     251  param: {module: solr, action: redirect, object_name: Amendement}
    252252search_amendements:
    253253  url: /rechercher/amendements/
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1638 r1648  
    8989
    9090    if ($format == 'rss') {
     91      $ob = $request->getParameter('object_name');
     92      $deputenom = $request->getParameter('deputenom');
     93      if (preg_match('/commentaire/i', $ob) && $deputenom)
     94        $this->rsstitle = "Les derniers commentaires sur l'activité parlementaire de ".$deputenom;
    9195      $this->setTemplate('rss');
    9296      $this->feed = new sfRssFeed();
     
    276280      $parlementaire = Doctrine::getTable('Parlementaire')->findOneBySlug($p);
    277281      $request->setParameter('tag', 'parlementaire='.$parlementaire);
     282      $request->setParameter('deputenom', $parlementaire->getNom());
    278283    }
    279284
  • cpc/trunk/project/apps/frontend/modules/solr/templates/rssSuccess.php

    r1485 r1648  
    11<?php
    2 
     2if (isset($rsstitle))
     3  $title = $rsstitle;
    34if ($title)
    45  $feed->setTitle("NosDeputes.fr : $title");
Note: See TracChangeset for help on using the changeset viewer.