3liz / qgis-atlasprint

Export PDF using composer atlas feature, usable in server
13 stars 14 forks source link

Manage additional params in the plugin #39

Closed ThomasG77 closed 4 years ago

ThomasG77 commented 4 years ago

Instead of "losing" the additional parameters, we change code so we can set parameters from the URL in the ATLAS to change the text items content in a composition if the item id match the additional parameter. We may change this behavior also to set custom image URL in another PR instead of only setting text like in this PR.

mdouchin commented 4 years ago

Thanks for this proposal. We also had an idea with @rldhont if we should not also find a way to set QGIS/project/composer variables from request parameters, so that labels with expression could benefit from overriden variables.

We could perhaps have this kind of parameters:

I am not comletely sure we should use any parameters, with no prefix here @rldhont any thoughts ?

rldhont commented 4 years ago

@mdouchin In GetPrint request MYLABLEID is the parameter. There is no label: prefix.

For variables, I prefer a shorter prefix var:

rldhont commented 4 years ago

@ThomasG77 can you take into account the @gustry reuests ? thnaks

ThomasG77 commented 4 years ago

Rebased and previous feedbacks from @Gustry solved (if no misunderstanding) You can maybe look at the README description

ThomasG77 commented 4 years ago

Need another approval or can be merged on your side?

Gustry commented 4 years ago

Thanks for the addition!