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;








3















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.










share|improve this question
























  • 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

















3















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.










share|improve this question
























  • 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













3












3








3








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















2














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.






share|improve this answer























  • 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


















2














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')%]


enter image description here



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
enter image description here






share|improve this answer

























  • 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













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
);



);













draft saved

draft discarded


















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









2














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.






share|improve this answer























  • 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















2














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.






share|improve this answer























  • 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













2












2








2







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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_date doesn'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












  • Hmm, project_creation_date doesn'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













2














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')%]


enter image description here



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
enter image description here






share|improve this answer

























  • 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















2














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')%]


enter image description here



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
enter image description here






share|improve this answer

























  • 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













2












2








2







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')%]


enter image description here



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
enter image description here






share|improve this answer















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')%]


enter image description here



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
enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림