Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
[RESOLU] Impossible de faire un saut en haut de page
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 2.2.1
#~ Url du site :
#~ Hébergeur / Soft : localhost
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 2.1.6
#~ Installed Modules:
#~ AdminSearch: 1.0.2
#~ CGExtensions: 1.53.17
#~ CGJobMgr: 1.3.4
#~ CGSimpleSmarty: 2.1.6
#~ CMSContentManager: 1.1.4
#~ DesignManager: 1.1.1
#~ FileManager: 1.5.2
#~ Gallery: 2.2
#~ MicroTiny: 2.0.3
#~ ModuleManager: 2.0.5
#~ Navigator: 1.0.3
#~ News: 2.50.6
#~ Search: 1.50.2
#~ Config Information:
#~ php_memory_limit:
#~ max_upload_size: 32000000
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ auto_alias_content: true
#~ locale:
#~ set_names: true
#~ timezone: Europe/Paris
#~ permissive_smarty: false
#~ Php Information:
#~ phpversion: 7.1.0
#~ md5_function: On (Vrai)
#~ json_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_ALL: 32767
#~ E_STRICT: 2048
#~ E_DEPRECATED: 8192
#~ test_file_timedifference: Aucune différence de date du système trouvée
#~ test_db_timedifference: Aucune différence de date du système trouvée
#~ create_dir_and_file: 1
#~ memory_limit: 128M
#~ max_execution_time: 30
#~ register_globals: Off (Faux)
#~ output_buffering: On
#~ disable_functions:
#~ open_basedir:
#~ test_remote_url: Valable
#~ file_uploads: On (Vrai)
#~ post_max_size: 32M
#~ upload_max_filesize: 32M
#~ session_save_path: /Applications/MAMP/tmp/php (0777)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ xmlreader_class: On (Vrai)
#~ check_ini_set: On (Vrai)
#~ curl: On
#~ Performance Information:
#~ allow_browser_cache: Off (Faux)
#~ browser_cache_expiry: 60
#~ php_opcache: Off (Faux)
#~ smarty_cache: Off (Faux)
#~ smarty_compilecheck: Off (Faux)
#~ smarty_cache_udt: Off (Faux)
#~ auto_clear_cache_age: On (Vrai)
#~ Server Information:
#~ Server Software: Apache/2.2.31 (Unix) mod_wsgi/3.5 Python/2.7.12 PHP/7.1.0 mod_ssl/2.2.31 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0
#~ Server Api: apache2handler
#~ Server Os: Darwin 16.6.0 On x86_64
#~ Server Db Type: MySQL (mysqli)
#~ Server Db Version: 5.6.34
#~ Server Db Grants: Trouvé un privilège "GRANT ALL" qui semble être adapté
#~ Permission Information:
#~ tmp: /Applications/MAMP/www/larbreatextes/tmp (0777)
#~ tmp_cache: /Applications/MAMP/www/larbreatextes/tmp/cache (0777)
#~ templates_c: /Applications/MAMP/www/larbreatextes/tmp/templates_c (0777)
#~ modules: /Applications/MAMP/www/larbreatextes/modules (0777)
#~ uploads: /Applications/MAMP/www/larbreatextes/uploads (0777)
#~ Masque de création de fichier (umask) : /Applications/MAMP/www/larbreatextes/tmp/cache (0777)
#~ config_file: 0666
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~



Bonjour,

Je cherche tout simplement à faire un retour haut de page sur une page.

J'utilise donc un un lien du type <a href="#top">Haut de page </a> avec bien sur une ancre avec une id "top" en haut de page.

Le lien ne fonctionne pas et me renvoie à la page d'accueil , ce qui est normal car le lien créé est "localhost/#top" qui n'existe pas.

Je pensais insérer avant #top dans le lien l'adresse url de la page courante pour avoir un lien du type "localhost/mapage.html#top" mais je ne trouve pas de variable smarty ou de tag me fournissant l'url de la page en cours.

Une idée ?

Merci


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)