Solved

Display Typo3 Content Element only on SSL Page

Posted on 2010-08-18
2
626 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2007, certificates 4 48
Old act to CRM 2 99
Joomla 3 insert link 1 19
Sweet32 Vulnerability in Microsoft IIS7.5 6 52
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 …
In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 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

15 Experts available now in Live!

Get 1:1 Help Now