[Solved] Print pdf does not work
Posted: Sun Apr 05, 2009 1:49 pm
if I change manually that line $html=$props->mPropertyValues["content_en"]; in createpdf.php it works
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Confirmed and present in next release:JohnnyTheOne wrote: if I change manually that line $html=$props->mPropertyValues["content_en"]; in createpdf.php it works
Thank youÂ//Start MLE
global $mleblock, $mleblockfallback;
$block = (!empty($mleblock)) ? (!empty($mleblockfallback) ? $mleblockfallback : $mleblock) : "_en";
$html=$props->mPropertyValues["content".$block];
//End MLE
Have you substitute the row?JohnnyTheOne wrote: Thanks for the quick response but it does not work
yes, here is what I didalby wrote: Have you substitute the row?
Code: Select all
//Start MLE
global $mleblock, $mleblockfallback;
$block = (!empty($mleblock)) ? (!empty($mleblockfallback) ? $mleblockfallback : $mleblock) : "_en";
$html=$props->mPropertyValues["content".$block];
//End MLE
//$html=$props->mPropertyValues["content_en"];
I re-tried and works for me with content of all languagesJohnnyTheOne wrote:yes, here is what I didalby wrote: Have you substitute the row?
it must not be selectedShow from DEFAULT_LANG if current lang is not ready:
humm, you are right.....JohnnyTheOne wrote:it must not be selectedShow from DEFAULT_LANG if current lang is not ready:
maybe you have a solution for this function is very useful
Alby//Start MLE
global $mleblock, $mleblockfallback;
$block = (!empty($mleblock)) ? $mleblock : (!empty($mleblockfallback) ? $mleblockfallback : "_en");
$html=$props->mPropertyValues["content".$block];
//End MLE
Alby//Start MLE
global $mleblock, $mleblockfallback;
$param1 = !empty($mleblock) ? $mleblock : '_en';
$param2 = !empty($mleblockfallback) ? str_replace($mleblock, $mleblockfallback, $param1) : '_en';
$html=$props->mPropertyValues['content'.$param1];
if( (!empty($mleblockfallback)) && (empty($html)) && ($param1 != $param2) ) $html=$props->mPropertyValues['content'.$param2];
//End MLE