So I did another try and used the footer markup, but I can't use
fromproperty in Scheme code. This is what I tried:
\version "2.20.0"
\header { title = "Title" }
\paper {
oddFooterMarkup = \markup \fill-line {
\null
#(if
(string-null? (markup->string #{
\markup \fromproperty 'header:license #}))
#{ \markup \with-url
#(string-append "http://url/" (markup->string #{
\markup \fromproperty 'header:license #}) "/4.0")
\fromproperty 'header:license #} "")
% the lines above should finally produce this if license is defined:
% \with-url "http://url/cc by-sa/4.0" "cc by-sa"
\null
}
}
\header {
license = "cc by-sa"
}
{ b }
Cheers,
Joram