Closed (fixed)
Project:
FileField
Version:
6.x-3.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 May 2010 at 09:37 UTC
Updated:
15 Aug 2010 at 00:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
publicmind commentedHi,
First, no screenshot attached. :(
Second, FBSMP has nothing to do with node type activity publisher templates. What are you trying to do?
Cheers,
Comment #2
liliplanet commentedHi publicmind
Oops, sorry you are right, this is an activity issue ..
On the screenshot see that when you do not add an image to a node the 'token' shows instead of blank ..
I will now move this issue to activity .. my apologies
Comment #3
publicmind commentedThis is most probably a CCK filefield/imagefield issue, which is providing tokens but not the values for some of them. It might be happening because the field doesn't exists on the content type you are creating so Filefield/Imagefield can not provide values for those tokens, but when you are creating the activity publisher template it doesn't know the content type you will be creating so it shows up all the tokens.
I am shifting it to Imagefield, if it does not belong there you will be probably shifted to the right queue then.
Cheers,
Comment #4
liliplanet commentedThank you publicmind!
Actually the image does show fine on the activity ..
the problem is when I have not uploaded an image to the node, then the 'token' shows as text where I think it should then be blank.
Wishing you a fabulous day :)
Comment #5
troyl commentedMake sure you have clicked the option "hide display if blank/empty " in views to correct this issue..
Comment #6
liliplanet commentedThank you troyl!
Activity message in the view is now 'Hide if empty', but still the token shows ..
see screenshot, the first article does not have an image so shows the token, but second article does have an image .. and it's good :)
I've got a feeling this has to do with 'Activity Publisher templates'.
Record an activity message when: node update types Press Release
[realname-link] has updated [field_image-filefield-view] [activity-node-link]Any suggestions most appreciated :)
Comment #7
troyl commentedHave you created a new node. to see if it works, because unfortunately for activity the messages are saved as hardcore, that means, if you change any value they will not be reflected in the previous messages....
I will try to check this and get back to you soon..
Comment #8
liliplanet commentedThank you so much troyl !
I've tried adding a new node (press release) without image, and still the same ..
see screenshot
Beyond appreciation for your kind help :)
Comment #9
troyl commentedI can not say which is causing this issue however, I can say yes this is issue is happening on my end too...
I think it has to do more with how tokens are handled and output, because if you don't have data to process as a token the data is output as plain text.
You can try by adding a default picture to your content type just to reproduce it, and you will see if you don't upload a picture your shall have a default picture in it because the
token value is file tag.
[field_grouplogo-filefield-view] Fully formatted HTML file tagMeanwhile you can trying adding picture through view directly....that way if you don't have a picture atleast the display is hidden and remove this tag.
Comment #10
liliplanet commentedThank you troyl,
Yes I can confirm, if you add a default picture to the content type, it works, but then of course also shows up on all my content teasers (and not pretty).
(unless just maybe I am able to css the default picture as a 1x1px image, is that possible for only one content type perhaps?)
In the meantime will try as you suggest to add a picture through views .. will revert with results.
Thank you so so much troyl :)
Comment #11
Scott Reynolds commentedThe token needs to return an empty string '' when the field isn't present and there isn't a default image. Token will then just replace the [TOKEN-HERE] with nothing.
Should be really simple.
Comment #12
troyl commentedI think there should be a some sort of validation, for [token-here] to validate before being displayed to see if the data or associated field is being populated before being redered, and if it does not have anything associated with it then
It should just return nothing not the default value
something like
Comment #13
liliplanet commentedsorry, wish I could help, this is above my head here .. :)
Comment #14
quicksketchClosing after lack of activity.