Feature request #1385

"Field" Support for Print Composer

Added by Andreas Neumann almost 9 years ago. Updated almost 5 years ago.

Status:Closed
Priority:Low
Assignee:Marco Hugentobler
Category:-
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

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

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

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

#3 Updated by Giovanni Manghi almost 6 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

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

#5 Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#6 Updated by Pirmin Kalberer almost 5 years ago

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

#7 Updated by Andreas Neumann almost 5 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