Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. ajaxCall = PAGE
  2. ajaxCall {
  3. typeNum = 22222
  4. config {
  5. disableAllHeaderCode = 1
  6. xhtml_cleaning = 0
  7. admPanel = 0
  8. additionalHeaders = Content-type: text/plain
  9. no_cache = 1
  10. debug = 0
  11. }
  12. 10 = USER
  13. 10 {
  14. userFunc = TYPO3CMSExtbaseCoreBootstrap->run
  15. extensionName = fefiles
  16. pluginName = Piphoto
  17. vendorName = Istar
  18. controller = Photo
  19. action = ajaxHandler
  20. }
  21. }
  22.  
  23. TYPO3CMSExtbaseUtilityExtensionUtility::registerPlugin(
  24. $_EXTKEY,
  25. 'Piphoto',
  26. 'Upload Photo'
  27. );
  28.  
  29. jQuery(function($) {
  30. $(".send-photo-comment").click(function (e) {
  31. e.preventDefault();
  32. $.ajax({
  33. type: "POST",
  34. url: "?id=0&type=22222",
  35. data: {},
  36. success: function(msg){
  37. console.log(msg);
  38. }
  39. });
  40. })
  41. })
  42.  
  43. TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
  44. 'Istar.' . $_EXTKEY,
  45. 'Piphoto',
  46. [
  47. 'Photo' => 'list, ajaxHandler, show, new, create, edit, update, delete',
  48. ],
  49. // non-cacheable actions
  50. [
  51. 'Photo' => 'list, ajaxHandler, show, new, create, edit, update, delete',
  52. ]
  53. );
  54.  
  55. Help me please)
  56.  
  57. TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
  58. 'Istar.' . $_EXTKEY,
  59. 'Piphoto,
  60. array(
  61. 'Photo' => 'ajaxhandler'
  62. )
  63. );
  64.  
  65. TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
  66. 'YourVendor.' . $_EXTKEY,
  67.  
  68. // Plugin name
  69. 'Pi1',
  70.  
  71. // An array of controller-action combinations. The first one found is the default one.
  72. array(
  73. 'YourController' => 'index,new,create,edit,update'
  74. ),
  75.  
  76. // An array of non-cachable controller-action-combinations (they must already be enabled)
  77. array(
  78. 'YourController' => 'new,create,edit,update'
  79. )
  80. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement