From: <xa...@us...> - 2010-11-18 15:43:14
|
Revision: 30771 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=30771&view=rev Author: xavidp Date: 2010-11-18 15:43:08 +0000 (Thu, 18 Nov 2010) Log Message: ----------- [ENH]Add the option to "Pick a file" next to the from field for FileId, in a similar way to what it was added in PluginFiles Modified Paths: -------------- branches/6.x/lib/wiki-plugins/wikiplugin_file.php Modified: branches/6.x/lib/wiki-plugins/wikiplugin_file.php =================================================================== --- branches/6.x/lib/wiki-plugins/wikiplugin_file.php 2010-11-18 15:26:02 UTC (rev 30770) +++ branches/6.x/lib/wiki-plugins/wikiplugin_file.php 2010-11-18 15:43:08 UTC (rev 30771) @@ -24,17 +24,17 @@ 'name' => tra('Description'), 'description' => tra('Wiki attachment:') . ' ' . tra('Comment'), ), - 'page' => array( + 'page' => array( 'required' => false, 'name' => tra('Page'), 'description' => tra('Wiki attachment:') . ' ' . tra("Name of the wiki page the file is attached to. If left empty when the plugin is used on a wiki page, this defaults to that wiki page."), ), - 'showdesc' => array( + 'showdesc' => array( 'required' => false, 'name' => tra('Show description'), 'description' => tra('Wiki attachment:') . ' ' . tra("Shows the description as the link text instead of the file name"), ), - 'image' =>array( + 'image' =>array( 'required' => false, 'name' => tra('Image'), 'description' => tra('Wiki attachment:') . ' ' . tra("Says that this file is an image, and should be displayed inline using the img tag"), @@ -43,6 +43,9 @@ 'required' => false, 'name' => tra('File identifier'), 'description' => tra('File from gallery:') . ' ' . tra('Identifier of a file in the file galleries.') . ' ' . tra('Example value:') . ' 42', + 'type' => 'fileId', + 'area' => 'fgal_picker_id', + 'separator' => ':', 'filter' => 'digits', ), 'date' => array( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |