First of all: right board?
There's a new checkbox for (de)activating HTTPS in the options-tab of a page's edit mask. (How) can I access the value in templates? Do I have to use a UDT?

CMS Made Simple 1.7.1 "Escada"
Code: Select all
{your_udt content_obj=$content_obj}
Code: Select all
$secure = $params['content_obj']->Secure();
Code: Select all
function smarty_cms_function_sslbugfix($params){
$page_secure = $params['content_obj']->Secure();
if($page_secure == 0 && isset($_SERVER['HTTPS'])){
$httpurl = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
header("location: $httpurl");
die();
}
}
Code: Select all
{sslbugfix content_obj=$content_obj}
@soundZ You have provided ABSOLUTELY NO INFORMATION, and there have been no bug reports filed (as of this date) regarding SSL functionality in CMSMS. Additionally, the SSL functionality in recent versions of CMSMS is working to my knowledge without complaint, so before you use the word 'bug', in association with CMSMS please provide sufficient information to allow the dev team to reproduce your problem....That's a nice trick and it helped me solving an annoying SSL-bug: When switching back from an HTTPS page to an HTTP page, the HTTPS stays alive...
http://dev.cmsmadesimple.org/projects/cmsmadesimplesoundZ wrote: I haven't checked any bug lists or so(Where would be the right place to do so?)