Hi,
I'm using:
Token 7.x.1.5
Imagecache Actions 7.x-1.4
Textimage 7.x-3.0-alpha1
the problem as attachment, I have put in "Current User" token and "Nodes" Token into Textimage setting, but "Nodes" token don't function. Any idea?


| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2099181-7.patch | 2.77 KB | mondrake |
| #6 | 01.jpg | 57.71 KB | igetquestion |
| #6 | 02.jpg | 33.77 KB | igetquestion |
| #1 | watermark.jpg | 452.85 KB | igetquestion |
| #1 | watermark2.jpg | 133.67 KB | igetquestion |
Comments
Comment #1
igetquestion commentedSry, this is the right attachment.


Comment #2
mondrakeHi @igetquestion
this is the first issue for Textimage 3, apart from those I created :)
the 'node' tokens will only work if Textimage has a node context to resolve. This is not the case in the admin UI preview, nor in the image style preview.
Try linking the image style to a content type:
- Access 'Content type' administration features via Administration->
Structure->Content Types
- Select the content type for which you want to manage a Textimage field
(e.g. Article, Basic page, etc.), or alternatively create a new content type
- If you need to create a new field, in the 'Manage Fields' tab, add a new
field of type 'Text'
- In the 'Manage Display' tab, select a 'Textimage' format for the field
created above (or any existing one)
- Click on the gear icon
- Select from the dropdown displayed the image style you want to use
- Create a new node, and in the field that you have associated to Textimage
format enter the following string:
[textimage:default]
this will use the default text in the effect to produce the image with the
node context
I'd love to hear back if this works!
Comment #3
igetquestion commentedhi Mondrake,
thanks for reply, I has tested with ur solution can work well but have to highlight for this two step:
** select a 'Textimage' format only for image field display but not text field display, text field should remain 'plain text' or 'hidden'
** text field can key in and text, no need key in [textimage:default].
this is what i'm tested out, work well but the image field display must select 'Textimage' format, other then this format like: "image", "lightbox2", "colorbox", "slideshow" all not function, will remain the same issue like above attachment.
Thanks anyway, hope release the new ver soon.
Comment #4
igetquestion commented** text field can key in any text, no need key in [textimage:default].
Comment #5
mondrake@igetquestion
thank you for your testing.
In fact Textimage provides field formatters for the following field types only: 'image', 'text', 'text_with_summary', 'text_long', so you are correct that other field types do not have this option.
If you select a Textimage formatter for a 'text' field, Textimage will use the text entered in the field to produce the image with it. In the field text you can enter the tokens directly, or [textimage:default] in which case Textimage will just fetch the default text entered in the image effect. Tokens will be resolved against the 'node' and 'user' token types.
If you select a Textimage formatter for a 'image' field, Textimage will use the text entered in the default text in the image effect to produce the image. In this case, tokens will be resolved against 'node', 'user' and 'file' token types, where the 'file' is the original image uploaded in the content.
I probably have to summarize this in the README.TXT file, your question comes spot on.
As for release, I am planning a beta1 soon. Thank you for your support.
Comment #6
igetquestion commentedHi Mondrake,
Actually I try to achieve the function like the attachment here.

User upload the image, they can put their own text as watermark for the image,
so I must build the image field for upload image and text field as watermark default text,
Textimage module process at the back end.
Yesterday the test all working well, my image field is multiple value like above attachment function,

so I plan use "slideshow" format to display the image, but unfortunately can't select the display format other than "Textimage".
Just a question, will Textimage module achieve above function in future?
Comment #7
mondrakeThis patch addresses #5, added info in README.TXT. With this in, I will go for beta1.
@igetquestion - if i understand well #6, whatever here would require development. The point is that the formatters you highlighted are provided by other modules, that would have to integrate somehow with Textimage if you want to have the watermarking on the fly at the time of 'displaying' the field. Otherwise, you could watermark the image at the time of the upload so that it gets stored with the watermark to start with. Textimage has the API to do the watermarking given a source image file, but all the 'intercepting' of the upload would be another story. Another approach could be the one listed in the project page HOWTO: Mouseover labels with Textimage.. This is for a previous version of Textimage but adapting the code you could get to similar results.
I will leave this issue open if anyone wants to propose a patch.
Comment #9
mondrakeComment #10
mondrake#7: 2099181-7.patch queued for re-testing.
Comment #11
mondrakeComment #12
mondrakePatch in #7 committed 2fcac2c and pushed to 7.x-3.x
Comment #13
mondrakeBack to active for any contribution.
Comment #14
igetquestion commentedSubscribing
Comment #14.0
igetquestion commentedattachment
Comment #15
alex72rm commentedDear all,
Have you got any news about colorbox formatter? For instance [node:title] is correctly solved as directly using TextImage formatter, but is there no solution for Colorbox?
It would very useful to grant extensive usage of tokens across formatters...
Comment #16
mondrake