Solved

Display Typo3 Content Element only on SSL Page

Posted on 2010-08-18
2
633 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
aoline earned 250 total points
ID: 33492491
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
ID: 33503854
Thank you, it works fine at my test installation!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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