Advertisement
krot

MODX FormItRetriever

Sep 6th, 2017
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. TPL:
  2. [[!FormIt?
  3. &hooks=`email,FormItAutoResponder,redirect`
  4. &emailTpl=`sentEmailTpl`
  5. &emailSubject=`Сообщение от [[+contact_name]]`
  6. &emailTo=`me@myemailaddress.com`
  7. &emailFrom=`[[+contact_email]]`
  8. &emailFromName=`[[+contact_name]]`
  9.  
  10. &fiarTpl=`autoResponseTpl`
  11. &fiarSubject=`Тема для отп отправителю`
  12. &fiarToField=`contact_email`
  13. &fiarFromName=`Learn MODx Website`
  14.  
  15. &validate=`contact_name:required:minLength=^2^:maxLength=^30^,contact_email:required:email,contact_message:required:minLength=^2^:maxLength=^500^`
  16.  
  17. &store=`1`<-    сохранить в кэш для FormItRetriever snippet.
  18. &redirectTo=`17`
  19. ]]
  20.  
  21. RES 17:
  22. [[!FormItRetriever? &redirectToOnNotFound=`1`]]
  23. <p>Thanks [[!+fi.contact_name]] for submitting. An auto-response email will be sent to you at [[!+fi.contact_email]]. Here's a copy of your message:</p>
  24. [[!+fi.contact_message]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement