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
[Résolu] retour sur dicussion udt get_content_prop
#8
Re,

Bon je viens de m'apercevoir que le fichier d'aide du module cgsimplesSmarty
est différent en français de celui en anglais

Citation :# get_page_content($alias[,$block][,$assign])

Returns the text of a specific content block of another page.

Arguments:

* $alias - The page alias to extract content from.
* [$block] - (optional) The name of the content block in the specified page. if this variable is not specified, 'content_en' is assumed.
* [$assign] - (optional) The name of a variable to assign the results to.

<-[ins]de--ici[/ins]-------------------------------------------------------------------------------------------------->
Example:

The 'second' block of the 'about' page is {$cgsimple->get_page_content('about','second','foo')}{eval var=$foo}


# get_sibling($direction[,$assign][,$alias])

Returns the alias of the next or previous sibling to the specified page. or false.

Arguments:

* $direction - the direction to look in. possible values are prev,previous,-1,next,1
* [$assign] - (optional) The name of the variable to assign the results to.
* [$alias] - (optional) The page alias to find the sibling for. If this is not specified, the current page is used.

Example:

Link to previous sibling: {$cgsimple->get_sibling("prev","prev_sibling")}{if !empty($prev_sibling)}{cms_selflink page="$prev_sibling" text="Previous"}{/if}

<-----------[ins]jusqu'ici[/ins]-------------------n'est pas dans le fichier français--------------->

j'ai donc utilisé ceci:--------------->The 'second' block of the 'about' page is (second)
Code :
{$cgsimple->get_page_content('about','second','foo')}{eval var=$foo}

et çà marche nickel
-.


Messages dans ce sujet

Atteindre :


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