Solved

Display Typo3 Content Element only on SSL Page

Posted on 2010-08-18
2
624 Views
Last Modified: 2012-05-10
Hello,

is there a way to only display a Typo3 Content Element if the page is viewed over a SSL encrypted connection?

Kind regards,
Jan
0
Comment
Question by:schlueter
2 Comments
 
LVL 4

Accepted Solution

by:
aoline earned 250 total points
Comment Utility
Hello

You need to use the Typoscript conditions and check for a server variable like this:

[globalString = _SERVER|HTTPS=on]
   # Your TS goes here...
[end]

The TS inside this condition will only action if the condition is true. In this case the HTTPS connection.

The next part of the problem is to render the content element you need. If you have special content only to display in limited circumstance we normally put this content element somewhere other than in line. Using something like this.

  20 = CONTENT
  20 {
    table = tt_content
    select {
      pidInList = 2
      andWhere = colPos = 1
    }
    renderObj < tt_content
  }
 
So these 2 pointers should be enough for you to construct the TS you need to solve your problem.

Enjoy,
Matthew
0
 
LVL 1

Author Closing Comment

by:schlueter
Comment Utility
Thank you, it works fine at my test installation!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

DotNetNuke (DNN) (http://www.dotnetnuke.com) is a leading open source web content management system (CMS) and application development framework for Microsoft .NET. Localization is an essential part of building websites, especially in countries that …
#SSL #TLS #Citrix #HTTPS #PKI #Compliance #Certificate #Encryption #StoreFront #Web Interface #Citrix XenApp
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now