Issues:026

From its-wiki.no
Revision as of 13:16, 15 September 2017 by Neill (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Go to Issue Log page
Headline Show only content if present #if statement
Status Accepted
Issue ID 026
Issue Type Query
Priority Normal
Description

to not show anything if the user does not have a "home page address" provided, but "Contact info:" is shown regardless.]]

Page Link http://its-wiki.no/wiki/Mette_Johnsrud
Created By Josef.Noll
Date Added 2017/09/04


Response The #if statement will always trigger because you are setting a default for the field of "http://..."

So {{{Web|}}} will always contain at least this value! :)

I'll implement a different way to add on the http:// part to the string in the template. That way, if the user leaves the field blank, the #if will trigger because there will be no value in the field.

Page Link
Responded by Neill
Response Added 2017/09/15