Using print composer name in a labelHow to change a project variable using Python?Which expression are working in the HTML frame in QGIS print composerPopulating label fields in print composerDynamic label generated by python in composer template?Printing map in Print Composer to specified name (not Print Composer 1, 2, etc)?Write maximum value of layers attribute in qgis print composerHow to update map canvas in QGIS 3.4 Print ComposerHow to print automatically Map themes in Label's Map Composer?Adjust label/symbol size in print composer automatically when choosing different scale for atlasShowing some feature in text label in Print Composer from Print Layout itself in QGIS 3.4.5Automatic sheet size in text label in QGIS
Is a normal-sized rug with the Animate Objects spell cast on it able to carry a person and fly?
How do professional electronic musicians/sound engineers combat listening fatigue?
High income, sudden windfall
Why did computer video outputs go from digital to analog, then back to digital?
Big Sample size, Small coefficients, significant results. What should I do?
Why is the return type for ftell not fpos_t?
How do campaign rallies gain candidates votes?
How can I tell if there was a power cut while I was out?
Extrapolation v. Interpolation
Is the 2-Category of groupoids locally presentable?
Does static fire reduce reliability?
Company requiring me to let them review research from before I was hired
The seven story archetypes. Are they truly all of them?
Why are off grid solar setups only 12, 24, 48 VDC?
Moving files accidentally to an not existing directory erases files?
Impact of throwing away fruit waste on a peak > 3200 m above a glacier
What is the meaning of "a thinly disguised price"?
Keeping an "hot eyeball planet" wet
Sitecore Powershell extensions module compatibility with Sitecore 9.2
How important is a good quality camera for good photography?
What is the meaning of "you has the wind of me"?
What should I say when a company asks you why someone (a friend) who was fired left?
What is the purpose of the fuel shutoff valve?
Why are so many countries still in the Commonwealth?
Using print composer name in a label
How to change a project variable using Python?Which expression are working in the HTML frame in QGIS print composerPopulating label fields in print composerDynamic label generated by python in composer template?Printing map in Print Composer to specified name (not Print Composer 1, 2, etc)?Write maximum value of layers attribute in qgis print composerHow to update map canvas in QGIS 3.4 Print ComposerHow to print automatically Map themes in Label's Map Composer?Adjust label/symbol size in print composer automatically when choosing different scale for atlasShowing some feature in text label in Print Composer from Print Layout itself in QGIS 3.4.5Automatic sheet size in text label in QGIS
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want the title (a label) of my map in print composer to automatically contain the name I've given the print composer and also the date that it was created. For example I want it to say 'Really cool map of (print composer name) created on (date the print composer was created).'
I can then use it as a template for lots of other maps which will automatically update with the site name and date created.
I think I need to use the 'Insert an Expression' but I can't figure it out.
qgis labeling print-composer title
add a comment |
I want the title (a label) of my map in print composer to automatically contain the name I've given the print composer and also the date that it was created. For example I want it to say 'Really cool map of (print composer name) created on (date the print composer was created).'
I can then use it as a template for lots of other maps which will automatically update with the site name and date created.
I think I need to use the 'Insert an Expression' but I can't figure it out.
qgis labeling print-composer title
It might be possible to write a Python script that would create and auto-fill a custom variable in the print layout,@layout_creation_date, with the current date at the time of creating a new print layout. I couldn't find any similar examples, so you'd have to figure out a lot of new things. This Q&A might help a little bit: gis.stackexchange.com/questions/189075/…
– csk
Jul 15 at 14:35
add a comment |
I want the title (a label) of my map in print composer to automatically contain the name I've given the print composer and also the date that it was created. For example I want it to say 'Really cool map of (print composer name) created on (date the print composer was created).'
I can then use it as a template for lots of other maps which will automatically update with the site name and date created.
I think I need to use the 'Insert an Expression' but I can't figure it out.
qgis labeling print-composer title
I want the title (a label) of my map in print composer to automatically contain the name I've given the print composer and also the date that it was created. For example I want it to say 'Really cool map of (print composer name) created on (date the print composer was created).'
I can then use it as a template for lots of other maps which will automatically update with the site name and date created.
I think I need to use the 'Insert an Expression' but I can't figure it out.
qgis labeling print-composer title
qgis labeling print-composer title
edited Jul 15 at 13:05
TomazicM
3,0732 gold badges8 silver badges23 bronze badges
3,0732 gold badges8 silver badges23 bronze badges
asked Jul 15 at 12:58
JoseyJoJoseyJo
162 bronze badges
162 bronze badges
It might be possible to write a Python script that would create and auto-fill a custom variable in the print layout,@layout_creation_date, with the current date at the time of creating a new print layout. I couldn't find any similar examples, so you'd have to figure out a lot of new things. This Q&A might help a little bit: gis.stackexchange.com/questions/189075/…
– csk
Jul 15 at 14:35
add a comment |
It might be possible to write a Python script that would create and auto-fill a custom variable in the print layout,@layout_creation_date, with the current date at the time of creating a new print layout. I couldn't find any similar examples, so you'd have to figure out a lot of new things. This Q&A might help a little bit: gis.stackexchange.com/questions/189075/…
– csk
Jul 15 at 14:35
It might be possible to write a Python script that would create and auto-fill a custom variable in the print layout,
@layout_creation_date, with the current date at the time of creating a new print layout. I couldn't find any similar examples, so you'd have to figure out a lot of new things. This Q&A might help a little bit: gis.stackexchange.com/questions/189075/…– csk
Jul 15 at 14:35
It might be possible to write a Python script that would create and auto-fill a custom variable in the print layout,
@layout_creation_date, with the current date at the time of creating a new print layout. I couldn't find any similar examples, so you'd have to figure out a lot of new things. This Q&A might help a little bit: gis.stackexchange.com/questions/189075/…– csk
Jul 15 at 14:35
add a comment |
2 Answers
2
active
oldest
votes
Here you go:
This is a rad map of [% @layout_name %], created on [%format_date(now(),'dd.MM.yyyy')%]
Feel free to browse the field calculator's function-trees, since the help/examples offered are rather easy to understand.
It's not very exact,now()refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.
– J. Monticolo
Jul 15 at 13:35
Hmm,project_creation_datedoesn't print anything in my case. Haven't found any other option.
– Erik
Jul 15 at 13:43
add a comment |
You may use the HTML frame.
Add a frame and add an expression like this
Really cool map of [% @layout_name %] printed on [% format_date(now(),'dd.MM.yyyy')%]

UPDATE (after Erik's comment):
Really cool map of [% @layout_name %] printed on [% format_date(@project_creation_date,'dd.MM.yyyy')%]
Gives in my case
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f328796%2fusing-print-composer-name-in-a-label%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here you go:
This is a rad map of [% @layout_name %], created on [%format_date(now(),'dd.MM.yyyy')%]
Feel free to browse the field calculator's function-trees, since the help/examples offered are rather easy to understand.
It's not very exact,now()refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.
– J. Monticolo
Jul 15 at 13:35
Hmm,project_creation_datedoesn't print anything in my case. Haven't found any other option.
– Erik
Jul 15 at 13:43
add a comment |
Here you go:
This is a rad map of [% @layout_name %], created on [%format_date(now(),'dd.MM.yyyy')%]
Feel free to browse the field calculator's function-trees, since the help/examples offered are rather easy to understand.
It's not very exact,now()refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.
– J. Monticolo
Jul 15 at 13:35
Hmm,project_creation_datedoesn't print anything in my case. Haven't found any other option.
– Erik
Jul 15 at 13:43
add a comment |
Here you go:
This is a rad map of [% @layout_name %], created on [%format_date(now(),'dd.MM.yyyy')%]
Feel free to browse the field calculator's function-trees, since the help/examples offered are rather easy to understand.
Here you go:
This is a rad map of [% @layout_name %], created on [%format_date(now(),'dd.MM.yyyy')%]
Feel free to browse the field calculator's function-trees, since the help/examples offered are rather easy to understand.
answered Jul 15 at 13:32
ErikErik
4,1936 silver badges22 bronze badges
4,1936 silver badges22 bronze badges
It's not very exact,now()refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.
– J. Monticolo
Jul 15 at 13:35
Hmm,project_creation_datedoesn't print anything in my case. Haven't found any other option.
– Erik
Jul 15 at 13:43
add a comment |
It's not very exact,now()refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.
– J. Monticolo
Jul 15 at 13:35
Hmm,project_creation_datedoesn't print anything in my case. Haven't found any other option.
– Erik
Jul 15 at 13:43
It's not very exact,
now() refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.– J. Monticolo
Jul 15 at 13:35
It's not very exact,
now() refers to the date when the layout is printed and not when the print composer was created. I don't found a such variable, only the project creation date ... Also, your answer is good but near.– J. Monticolo
Jul 15 at 13:35
Hmm,
project_creation_date doesn't print anything in my case. Haven't found any other option.– Erik
Jul 15 at 13:43
Hmm,
project_creation_date doesn't print anything in my case. Haven't found any other option.– Erik
Jul 15 at 13:43
add a comment |
You may use the HTML frame.
Add a frame and add an expression like this
Really cool map of [% @layout_name %] printed on [% format_date(now(),'dd.MM.yyyy')%]

UPDATE (after Erik's comment):
Really cool map of [% @layout_name %] printed on [% format_date(@project_creation_date,'dd.MM.yyyy')%]
Gives in my case
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
add a comment |
You may use the HTML frame.
Add a frame and add an expression like this
Really cool map of [% @layout_name %] printed on [% format_date(now(),'dd.MM.yyyy')%]

UPDATE (after Erik's comment):
Really cool map of [% @layout_name %] printed on [% format_date(@project_creation_date,'dd.MM.yyyy')%]
Gives in my case
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
add a comment |
You may use the HTML frame.
Add a frame and add an expression like this
Really cool map of [% @layout_name %] printed on [% format_date(now(),'dd.MM.yyyy')%]

UPDATE (after Erik's comment):
Really cool map of [% @layout_name %] printed on [% format_date(@project_creation_date,'dd.MM.yyyy')%]
Gives in my case
You may use the HTML frame.
Add a frame and add an expression like this
Really cool map of [% @layout_name %] printed on [% format_date(now(),'dd.MM.yyyy')%]

UPDATE (after Erik's comment):
Really cool map of [% @layout_name %] printed on [% format_date(@project_creation_date,'dd.MM.yyyy')%]
Gives in my case
edited Jul 15 at 13:50
answered Jul 15 at 13:36
9ls19ls1
3371 silver badge11 bronze badges
3371 silver badge11 bronze badges
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
add a comment |
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
same comment as @Erik 's answer.
– J. Monticolo
Jul 15 at 13:37
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
I agree. Perhaps in this case, one should hard code the actual date of creating the map. (I can't see QGIS offering a 'created_date'-option.)
– 9ls1
Jul 15 at 13:40
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f328796%2fusing-print-composer-name-in-a-label%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It might be possible to write a Python script that would create and auto-fill a custom variable in the print layout,
@layout_creation_date, with the current date at the time of creating a new print layout. I couldn't find any similar examples, so you'd have to figure out a lot of new things. This Q&A might help a little bit: gis.stackexchange.com/questions/189075/…– csk
Jul 15 at 14:35