Changeset 27084 in spip-zone


Ignore:
Timestamp:
Mar 5, 2009, 10:41:16 PM (11 years ago)
Author:
booz@…
Message:

afficher les urls d'origine

Location:
_plugins_/_test_/joomla2spip
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/joomla2spip/inclure/joomla2spip-afficher-article.html

    r27077 r27084  
    1818<style>
    1919.flip{
    20 margin:10px;
     20display:block; 
     21padding:20px;
     22float:left;
    2123}
    2224</style>
     
    3234
    3335<div class="label">
     36Url(s)
     37</div>
     38<div id="urls" class="champ">
     39<B_urls>
     40<ul>
     41<BOUCLE_urls(jos_jv_page_url){url LIKE %(#TITLE|sef_url)%}>
     42[<li>(#URL|joomla2spip_nettoyer_url)</li>]
     43</BOUCLE_urls>
     44</ul>
     45</B_urls></div>
     46
     47<div class="label">
    3448Descriptif
    3549</div>
     
    3852</div>
    3953
     54<div>
     55<a href="#flip_brut" id="flip_traite" class="flip">Texte traité</a>
    4056<a href="#flip_brut" id="flip_brut" class="flip">Texte brut bdd</a>
    41 <a href="#flip_brut" id="flip_traite" class="flip">Texte traité</a>
     57</div>
    4258
    43 <div class="label traite">
     59<div class="label traite" style="clear:both">
    4460Texte traité
    4561</div>
    46 [<div>
     62[<div style="clear:both">
    4763titre original</div>
    4864<div id="titre_original" class="champ">
  • _plugins_/_test_/joomla2spip/inclure/joomla2spip-afficher-liste-articles.html

    r27077 r27084  
     1#CACHE{0}
    12<B_articles>
    23<h2>#GRAND_TOTAL articles</h2>
     
    45<BOUCLE_articles(jos_content){catid ?}{!par publish_up}{pagination 50}>
    56<li><a href="./?page=joomla2spip&id_article=#ID">#TITLE</a></li>
     7<B_urls>
     8<ul>
     9<BOUCLE_urls(jos_jv_page_url){url LIKE %(#TITLE|sef_url)%}>
     10[<li>(#URL|joomla2spip_nettoyer_url)</li>]
     11</BOUCLE_urls>
     12</ul>
     13</B_urls>
    614</BOUCLE_articles>
    715</ul>
  • _plugins_/_test_/joomla2spip/inclure/joomla2spip-entete.html

    r27077 r27084  
    99
    1010<ul>
     11<li style="float:right"><a href="./?page=joomla2spip-conversion">Conversion Joomla -> SPIP</a></li>
    1112<li><a href="./?page=joomla2spip">Contenu Joomla formatés par SPIP</a></li>
    1213<li><a href="./?page=joomla-documents">Documents Joomla</a></li>
    13 <li><a href="./?page=joomla2spip-conversion">Conversion Joomla -> SPIP</a></li>
    1414</ul>
  • _plugins_/_test_/joomla2spip/joomla2spip_fonctions.php

    r26242 r27084  
    200200}
    201201
    202 
     202function sef_url($titre){
     203$pattern = "/[^a-zA-Z1-9,_-]/";
     204$titre = str_replace("&#8217;","'",$titre);
     205$url = preg_replace($pattern,"-",removeaccents(trim($titre))); 
     206$url = strtolower($url);       
     207$url = preg_replace("/-+/","-",$url);   
     208
     209        return $url ;
     210}
     211
     212function joomla2spip_nettoyer_url($url){
     213        if(preg_match('/search|file:\/\/\/|#n[1-9]|anonymouse\.org|webwarper.net/',$url)){
     214        return '' ;
     215        }       
     216        return $url ;
     217}
     218
     219function removeaccents($string){
     220  $string = str_replace(array("é","è","ë","ï","ç","ô","ó"),array("e","e","e","i","c","o","o"),$string);
     221  $string = preg_replace("/\s+/"," ",$string);
     222   return $string;
     223   }
    203224
    204225?>
  • _plugins_/_test_/joomla2spip/notes.txt

    r26242 r27084  
    2727
    2828BoOz@rezo.net
     29
     30
     31TODO
     32Chopper les urls des rubriques, des articles des documents.
     33
     34table :
     35jos_jv_page_url (url propres ?)
     36jos_jv_a_page
     37jos_redirection (anciennes url)
     38
     39Chopper les abonnés
     40
     41table :
     42jos_acajoom_subscribers
Note: See TracChangeset for help on using the changeset viewer.