Empty placeholders, i.e.: How do I implement a "title" field?

As described here: https://github.com/zammad/zammad/issues/1988

I thought this was a bug, but apparently some way to show empty placeholders is required*. Therefore Zammad replaces empty dields with a dash (-) when they appear in e.g. e-mail signatures.

What I’d like to have is a field for academic degrees, titles etc. For many users this will be empty, so they’ll get their name printed with a preceding dash.

I don’t think it’d be a good idea to put a title into name fields.

Any ideas?

(* Edit: After some thinking I don’t really agree this is the case. An empty field means no output is to be put in place of the placeholder. If you need a dash to find errors in your signatures etc., well - you’re doing it wrong, admin.)

2 Likes

See also: https://github.com/zammad/zammad/issues/261.

I agree that empty fields should allow to show nothing instead of a dash (“-”).

Optional it would be good to make it optional if needed like an if:

if(xxyz == x){ echo “” }else{ echo “-” }

Something like that… just as an idea to fit both situations

1 Like

I also agree with this and the answers. In addition to that, if only empty fields are filling the line, the line should be removed, to remain the formatting.
e.g.:
Signature

#{user.firstname} #{user.lastname}
#{user.note}
#{user.department}

Person 1

Alice Bob
System Engineer
CTO

Person 2

Charles David
CEO

As a workaround for this, you can use the #{user.note} placeholder for both, the note and the department.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.