Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
Views Data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2011 at 00:05 UTC
Updated:
18 Aug 2017 at 10:07 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerCan you show your replacement code you used there?
Comment #2
esmerel commentedComment #3
Yuri commentedI also experience this behavior of the Global text text field as a limitation.
It actually strips the whole lot of settings of the views fields when using the replacement patterns.
For example:
I have a page with teasers, made out of a view with fields: each having an image, title and body field.
For the title and body I have set different values in Rewrite: "Trim this field to a maximum length".
Now for the layout i want to combine them in a Global text text field (while disabling the fields) but i lose the possibility to use these settings.
Adding classes in the Global field would require knowledge of html and css, but for the trimming, php is needed. This is not really the Drupal way i guess..
I think that making the Global field more flexible, would also make it a lot easier for people that don't like views templates.
Comment #4
merlinofchaos commentedSorry. You'll
1) have to use the templates
2) create an unsafe field handler that will let you put in whatever you want.
This won't be changing in Views.
Comment #5
tim.plunkettI clarified with merlinofchaos that this is truly won't fix.
The tokens represent just the field data, and it's easier to add new wrappers while rewriting than to remove them. Also, due to the order of execution of the handlers and rendering, it's not even feasible.
Comment #6
kiwibytes commentedI am facing the same problem. I really wanted to have CSS code in global text within view because if I put it in theme files, this setting will be lost if I change/update theme.
I found a workaround for this: Instead of using Global Text Field, use an unrestricted text field in view header or footer. That allows you to put HTML, CSS or even PHP in that field.