Feature request #1385

"Field" Support for Print Composer

Added by Andreas Neumann over 8 years ago. Updated over 4 years ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:Marco Hugentobler % Done:

0%

Category:-
Target version:Future Release - Nice to have
Platform:Debian Resolution:
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:

Description

It would be useful to have "field" support in the print composer. Fields are variables and would be part of text labels in the print composer. The field value/content would be replaced when printing/previewing the map layout. Fields are common in text-processing.

Potential candidates for fields are:

  • current date, proposed fieldname: currentDate
  • current username (on an operating system level), proposed fieldname: currentUser
  • current project title, proposed fieldname: currentProjectTitle
  • current projection, proposed fieldname: currentProjection
  • current map units, proposed fieldname: currentMapUnits

Are there more useful field names in this context?

There would have to be delimiters who separate fieldnames from regular text, potential formats:

<fieldName>

$fieldName$

Ā§fieldNameĀ§

History

Updated by Andreas Neumann almost 7 years ago

parts of it (currenDate) is already implemented in print composer. This was also the most urgent one of the proposed fields.

I still think that other fields should be added later on, but it is ok to move this to 1.6

Updated by Alister Hood almost 6 years ago

Are there more useful field names in this context?

- File name (and path)
- Composer layout name
- Scale (when there is more than one map in a layout there would need to be a way to tell it which map to get the information from)

Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Alister Hood about 5 years ago

  • Pull Request or Patch supplied set to No

Are there more useful field names in this context?

I think these would be useful:
- saveDate - the date the project was last saved
- layerSaveDate - the date a particular layer was last saved.

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Andreas Neumann over 4 years ago

  • Status changed from Open to Closed

This is implemented as part of the Atlas plugin. It allows to use the expression builder for any label element in print composer. People may want additional expressions, but they should go into the expression builder.

Also available in: Atom