Changeset 27116 in spip-zone


Ignore:
Timestamp:
Mar 6, 2009, 11:21:10 PM (10 years ago)
Author:
booz@…
Message:

liens joomla -> miens spip

Location:
_plugins_/_test_/joomla2spip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/joomla2spip/joomla2spip_fonctions.php

    r27088 r27116  
    1212
    1313//var_dump($texte);
    14 
    1514
    1615foreach(extraire_balises($texte,"strong") as $val){
     
    2928$lename = ($name)? $name : "" ;
    3029$href = extraire_attribut($val,"href");
    31 $href = preg_replace("/index.php?option=com_content&task=view&id=/","spip.php?page",$href);
     30$href = preg_replace("/index\.php\?option=com_content&task=view&id=/","spip.php?page=article&id_article=",$href);
    3231
    3332if($lename){
  • _plugins_/_test_/joomla2spip/notes.txt

    r27115 r27116  
    2626
    2727
     28les liens de jos_content
     29index.php?option=com_content&task=view&id=43&Itemid=81
     30
     31sont transformés dans spip_articles en
     32spip.php?page=article&id_article=43
     33
     34Les id_article doivent êtres forcés pour correspondre à id.
     35
    2836BoOz@rezo.net
    2937
Note: See TracChangeset for help on using the changeset viewer.