This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $profile = $modx->getObject('modUserProfile', $id); | |
| $fullname = $profile->get('fullname'); | |
| return $fullname; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pour forcer version php 5 | |
| SetEnv PHP_VER 5 | |
| #http://www.manuelphp.com/php/security.globals.php, pour ovh | |
| SetEnv REGISTER_GLOBALS 0 | |
| #supprimer les variable de session pour les moteurs de recherche | |
| SetEnv SESSION_USE_TRANS_SID 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| créer une FC modifier l'onglet | |
| avant => modx-panel-resource-tv | |
| après => modx-resource-settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| créer le context avec | |
| http://www.class-zec.com/en/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html | |
| site_url = {base_url}fr/ | |
| cultureKey = fr | |
| site_start = 20 // rajouter quand babel sera installé | |
| rajouter le nouveau context pour les utilisateurs anonyme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) télécharger la dernière version de modx manuellement, la placer à la racine du site. | |
| 2) se connecter au serveur par le terminal avec | |
| ssh [email protected] | |
| 3) dézipper le zip | |
| unzip modx-2.0.7-pl.zip | |
| 4) vider cache du site déjà en place |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bold,italic,underline,strikethrough,sub,sup,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops | |
| undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,modxlink,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| onclick="window.open(''); return false;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $path=$modx->getOption('base_path').'assets/templates/fichiers_agdl/artistes'; | |
| $Discopraphie=array(); | |
| $NomArtistePourPagetitle=array(); | |
| $idpagecreate=array(); | |
| $Photo=array(); | |
| $dir=array(); | |
| $filesTT = scandir($path); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $path=$modx->getOption('base_path').'assets/templates/nomDossier'; | |
| $NomArtistePourPagetitle=array(); | |
| $dir=array(); | |
| $filesTT = scandir($path); | |
| foreach($filesTT as $fileee) { | |
| global $NomArtistePourPagetitle; | |
| if(is_dir("$path/$fileee") && $fileee !="." && $fileee !=".." ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $criteria = $modx->newQuery('modResource'); | |
| $criteria->leftJoin('modUser','PublishedBy'); | |
| $criteria->where(array( | |
| 'modResource.published' => 1, | |
| 'modResource.searchable' => 1, | |
| 'pagetitle:LIKE' => $value.'%' | |
| )); | |
| $criteria->orCondition(array( | |
| 'PublishedBy.username' => 'george123', |