Closed (won't fix)
Project:
FillPDF
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Nov 2010 at 10:14 UTC
Updated:
29 Dec 2011 at 02:38 UTC
Hi ...
For more User convenience it would be cool, when mapping the tokens for the fields, that we are able to click on a token and it inserts automaticly as text in the textarea above.
Sure no big thing, but would great.
the other thing would be to create kind of search for the tokens, with auto-complete functionallity
Comments
Comment #1
wizonesolutionsGood idea zewa.
lefnire what do you think? I think this functionality would probably be better served by separate modules that provide this functionality. Or maybe there is an API-style module that would let us implement this easily? If not...maybe it's time to make one :)
Comment #2
zewa commentedif there's anybody like me who can't wait here the quick solution for clickable Tokens
1.) create a file called "fillpdf_admin.js" inside the fillpdf folder
2.) open file and enter following text
3.) open file token.pages.inc in token folder
4.) edit inside the function "theme_token_help" the last $output line
5.) Open file "fillpdf.admin.inc", search for function "fillpdf_field_edit" and append in first line following:
6.) Clear Cache and enjoy :)
EDIT:
Anyway this is just a quick hack, and the JS for sure isn't the fastest, but if you guys have customers, who are nervous and can't wait, it will surely do for the moment :)
Comment #3
zewa commentedWell here comes the vital part ... the search box + add button
in fillpdf.module define following inside menu function
than create the new function somewhere in fillpdf.module
now in fillpdf.admin.inc function "fillpdf_field_edit" after $form['pdf_key'] array add this
now you need a js function inside that form like my before post with fillpdf_admin.js, and there add following code
And there you go ...
if someone could make a patch out of this, it would be great because, still I dont get it how to do it, and i've also got a dozen other custom corrections in the module
Comment #4
wizonesolutionsStill undecided as to how best to fit this into the module. It would improve the usability, but is there already a token autocomplete module that could perhaps be leveraged? Need to come back to this.
Comment #5
wizonesolutionsThis is in 7.x already, and I think it's in more recent versions of Token too, so closing.