I think this module could benefit from such a feature. Currently one has to create a view just to be able to do something like this, when it seems that it's a logical thing to do to a field in any context. Seems like a really good fit. What do others think?

Comments

swentel’s picture

Status: Active » Closed (won't fix)

That's a nice idea, but that's absolutely not in the scope of this module.

hazah’s picture

Really? I won't argue, but that is actually quite surprising to read. May I ask why not?

It seems that the current custom field administration that DS already provides (admin/structure/ds/fields) are already more complex. This one whould have been a simple transform of an existing value (simple is a loose term here).

Anyways, very curious to understand why the scope does not match, if you have time to explain.

Cheers

Kristen Pol’s picture

This would be pretty awesome. Would be curious as to the details as to why it's not a good fit too ;)

arbel’s picture

I totally understand how this wouldn't be in the scope, but it this feature would simply be awesome, Views rewrite results is so powerful and its exactly what's missing from display suite IMHO.

johnhorning’s picture

Status: Closed (won't fix) » Needs review

I love this module, but also agree that a rewrite feature would be nice. If not, can you suggest an alternative?
In my case, I would like to combine 2 fields onto one line.
John

hazah’s picture

Atm, Views or Panels will do the trick. Personally I think it's overkill for some small sites though, hence the original thought.

aspilicious’s picture

Status: Needs review » Closed (won't fix)

As said before not in scope...

johnhorning’s picture

I found a way to combine 2 fields into one. It's explained here:
https://drupal.psu.edu/content/using-display-suite-alter-fields
You'll need to have the Token module enabled for this to work. On the bottom of the Manage Display tab, click on Custom Fields, then select Add a Code Field. In the pop-up, select "Display Suite Code" as the text format, then check the checkbox next to "Token" and select from the token list that appears.

In my case the field code was: print '[node:title] at [node:field-business-name]';

Since you can insert PHP code and HTML, you should be able to accomplish just about anything you need.

hazah’s picture

Status: Closed (won't fix) » Closed (works as designed)

This isn't a request to fix anything. This is a feature request. And the question I have is why is this not in scope? That it isn't, is well understood. The reason, not so much.

hazah’s picture

Issue summary: View changes
Status: Closed (works as designed) » Needs review

I'd like to point out that there seems to be another module coming from drupal.org itself that apparently does this. Can anyone else confirm?

https://drupal.org/project/token_formatters

fishfree’s picture

This will be a very fantastic feature!