I’m trying to create a dynamic query, the query logic conditions needed are: AND, and OR.
The main query will include two sub queries.
The ConditionInterface::condition documentation states that:
“If called with 1 parameter, it should be a ConditionInterface that in itself forms a valid where clause. Use e.g. to build clauses with nested AND's and OR's.”
I am trying to exclude fields if they are empty, on the portfolio page I am creating with node--portfolio.tpl.php. I have tried several variations including:
My customer likes the new Webform and is using it to allow anonymous users to send in a photo to a team member in filling out the form. Of course, we're using the default private setting because exposing the app to potential malicious files is not worth the risk.
But customer finds that they need the photo in the email to help diagnose customer complaints. The image is missing but is linked to a private file on the app.