Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] made RecordPicker use actuall vidi
- Loading branch information
Showing
7 changed files
with
76 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,8 @@ | ||
{namespace ext=Tx_Vidi_ViewHelpers} | ||
|
||
imagine the record picker to be shown here.. \o/ | ||
|
||
|
||
<ul> | ||
<li><a href="#" onclick="callback('sys_file', 2, 'Testfile1'); return false;">Testfile1</a></li> | ||
<li><a href="#" onclick="callback('sys_file', 1, 'Testfile2'); return false;">Testfile2</a></li> | ||
</ul> | ||
|
||
<script type="text/javascript"><![CDATA[ | ||
function callback(table, uid, label) { | ||
]]> | ||
if ('{callbackMethod}' && '{objectId}' && {callbackMethod}) | ||
{callbackMethod}('{objectId}', table, uid, label); | ||
<![CDATA[ | ||
} | ||
]]> | ||
</script> | ||
|
||
<![CDATA[ | ||
<ext:Be.moduleContainer | ||
pageTitle="Sample Module" > | ||
|
||
<ext:includeCssFile name="Vidi.css" /> | ||
<ext:includeCssFile name="FilterBar.css" /> | ||
|
||
</ext:Be.moduleContainer> | ||
]]> | ||
</ext:Be.moduleContainer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Resources/Public/JavaScript/Module/RecordPicker/GridToolBar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
Ext.define('TYPO3.Vidi.Module.RecordPicker.SelectFilesToolbar', { | ||
extend: 'Ext.toolbar.Paging', | ||
alias: 'widget.TYPO3-Vidi-RecordPicker-SelectFilesToolbar', | ||
prependButtons: true, | ||
displayInfo: false, | ||
constructor: function(cfg) { | ||
this.items = [ | ||
"->" | ||
]; | ||
this.callParent([cfg]); | ||
}, | ||
afterRender: function() { | ||
this.callParent(arguments); | ||
}, | ||
|
||
}); | ||
|
||
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/gridToolbar', 'TYPO3-Vidi-RecordPicker-SelectFilesToolbar', 99); |
4 changes: 4 additions & 0 deletions
4
Resources/Public/JavaScript/Module/RecordPicker/ModuleConfiguration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/collectionManagement/enabled', false, 99); | ||
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/filterBar/hidden', true, 99); | ||
TYPO3.TYPO3.Core.Registry.set('vidi/docheader/enabled', false, 99); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters