Solved

Display Typo3 Content Element only on SSL Page

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

627 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