Main menu

Forum


The developer takes a few days off for Summer vacation...
...and will be back with charged battery!

From 1st August to 10th August, 2026 included
During this period,
assistance from developer will not be provided.

NEWS: iCagenda 4.1.0-alpha1 will be available for testing for users with a PRO subscription
by the end of August!

× Forum d'aide en Français

Transmission de variable _GET

  • Tef
  • Topic Author
  • New Member
  • New Member
More
11 years 1 week ago #10680 by Tef
Transmission de variable _GET was created by Tef
Bonjour,

Merci pour ce module extrêmement utile.

Voici mon "problème".

Je crée un événement et dans sa description j'ajoute le code suivant.
<a href="index.php?option=com_chronoforms5&amp;chronoform=reservation&amp;date=*****">Réservez vos repas </a>
Que puis-je mettre à la place des ***** pour que la date de l'événement soit transmise à mon formulaire de réservation chronoforms5 ?

Merci pour votre aide.

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 week ago #10686 by Lyr!C
Replied by Lyr!C on topic Transmission de variable _GET
Bonjour,

Pour commencer, il faut que vous puissiez entrer du php dans votre éditeur.
Celui-ci le permet-il ?

Cordialement,
Cyril

Latest version : iCagenda 4.0.11
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Please Log in or Create an account to join the conversation.

  • Tef
  • Topic Author
  • New Member
  • New Member
More
11 years 1 week ago #10689 by Tef
Replied by Tef on topic Transmission de variable _GET
Actuellement je met le code cité ci-dessus dans le champ WYSIWYG prévu à cet effet dans la description de l'événement. Donc pas possible de mettre du php.

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 3 days ago #10707 by Lyr!C
Replied by Lyr!C on topic Transmission de variable _GET
Bonjour,

Dans ce cas il faudrait éditer ou créer un thème pack personnel, et inclure directement l'url dans le code, du type :
<?php 
$date = JFactory::getApplication()->input-get('date', $item->next);
?>
<a href="index.php?option=com_chronoforms5&amp;chronoform=reservation&amp;date=<?php echo $date; ?>">Réservez vos repas </a>

Ensuite, tout dépend du format de date dont vous avez besoin pour le formulaire chronoform.
Car si variable date dans url, ce sera du type YYYY-MM-DD-HH-MM
Si non définie, ce sera YYYY-MM-DD HH-MM-SS

En fonction du format voulu, il faudra reformater l'une ou l'autre des valeurs possibles pour la variable $date.

Cordialement,
Cyril

Latest version : iCagenda 4.0.11
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Please Log in or Create an account to join the conversation.

Moderators: Lyr!C
Time to create page: 0.080 seconds

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new