Feature request #1385

"Field" Support for Print Composer

Added by Andreas Neumann over 15 years ago. Updated over 11 years ago.

Assignee:Marco Hugentobler
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:11445


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:





#1 Updated by Andreas Neumann about 14 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

#2 Updated by Alister Hood almost 13 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)

#3 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#4 Updated by Alister Hood over 12 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.

#5 Updated by Giovanni Manghi about 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#6 Updated by Pirmin Kalberer over 11 years ago

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

#7 Updated by Andreas Neumann over 11 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 PDF