Difference between revisions of "Issues:026"

From its-wiki.no
Jump to: navigation, search
Line 1: Line 1:
 
{{Issue Template
 
{{Issue Template
 
|Headline=Show only content if present #if statement
 
|Headline=Show only content if present #if statement
|Issue Status=New
+
|Issue Status=Accepted
 
|Issue Type=Query
 
|Issue Type=Query
 
|Priority=Normal
 
|Priority=Normal
Line 11: Line 11:
 
|Created By=Josef.Noll
 
|Created By=Josef.Noll
 
|Creation date=2017/09/04
 
|Creation date=2017/09/04
 +
}}
 +
{{Response Template
 +
|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.
 +
|Response Date=2017/09/15
 +
|Response By=Neill
 
}}
 
}}

Revision as of 13:15, 15 September 2017

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