This patch provides for the following:

  • Allows for use of View level substitutions in the X/Y axis as well as title field placed on the display
  • Substitutions are generated through the use of arguments presented to the view

This also takes into account the X and Y axis labels added in #1784750: Configuration options for views integration

Example usage: Add %1 to a field in order to get the current argument's title, see screenshot for usage

Comments

konforti’s picture

Cool, very nice feature.
When the substitutions are not set (there no contextual-filter set in the view), the '%1' is printing to screen, and it's Ok.
But if the contextual-filter is set but it's empty (no argument supplied), the '%1' should not be printing to screen. its should be substitute it to an empty string or so.

If you can update the description of these fields with the new ability it will be great too.

Thanks.

btopro’s picture

Run the patch included in the OP then run this one. If an argument is included but the substitution isn't set then this will remove them correctly

konforti’s picture

Most of this patch is code from views it self, and from yours.
It's deal better with multi argument settings.
Please test it.

btopro’s picture

Status: Needs review » Reviewed & tested by the community

ignores when they aren't available, renders when they are. Looks ready to go to me

konforti’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.