contao/import — Issue #3227: Insert-tag to check for SSL
Author: importer
Created: 2011-11-29 21:08:07+00:00
State: open
Labels: Accepted, Feature, frontend

It would be nice if Contao provides an insert-tag for checking if the current connection is SSL-encrypted, such as

```
{{ssl}}

You use SSL

{{ssl}}{{nossl}}

You do not use SSL.

{{nossl}}
```

This would be especially important if you load JavaScript extensions from the Google CDN, for example jQuery, and you do not want any warnings about insecure page elements to be displayed.

Currently I use

```
Environment->ssl): ?>

```

to achieve the same effect. However assuming that I didn't miss anything :-) I think an insert-tag-based approach would be much cleaner.

Kind regards,
Christian Spoo

--- _Originally created by vbinsider on July 1st, 2011, at 12:12pm (ID 3227)_