[Solved] Print pdf does not work
-
- Forum Members
- Posts: 17
- Joined: Fri Feb 08, 2008 6:03 pm
[Solved] Print pdf does not work
if I change manually that line $html=$props->mPropertyValues["content_en"]; in createpdf.php it works
Last edited by JohnnyTheOne on Wed Apr 15, 2009 4:41 pm, edited 1 time in total.
Re: Print pdf does not work
Confirmed and present in next release:JohnnyTheOne wrote: if I change manually that line $html=$props->mPropertyValues["content_en"]; in createpdf.php it works
substitute (around #100) with:
Thank you//Start MLE
global $mleblock, $mleblockfallback;
$block = (!empty($mleblock)) ? (!empty($mleblockfallback) ? $mleblockfallback : $mleblock) : "_en";
$html=$props->mPropertyValues["content".$block];
//End MLE

Alby
-
- Forum Members
- Posts: 17
- Joined: Fri Feb 08, 2008 6:03 pm
Re: Print pdf does not work
Thanks for the quick response but it does not work
Re: Print pdf does not work
Have you substitute the row?JohnnyTheOne wrote: Thanks for the quick response but it does not work
Tried and work for me
Alby
-
- Forum Members
- Posts: 17
- Joined: Fri Feb 08, 2008 6:03 pm
Re: Print pdf 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"];
Re: Print pdf does not work
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?
Alby
-
- Forum Members
- Posts: 17
- Joined: Fri Feb 08, 2008 6:03 pm
Re: Print pdf does not work
the problem is with me I will continue looking thanks
-
- Forum Members
- Posts: 17
- Joined: Fri Feb 08, 2008 6:03 pm
Re: [Solved] Print pdf does not work
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
Re: [Solved] Print pdf does not work
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
Try with:
Alby//Start MLE
global $mleblock, $mleblockfallback;
$block = (!empty($mleblock)) ? $mleblock : (!empty($mleblockfallback) ? $mleblockfallback : "_en");
$html=$props->mPropertyValues["content".$block];
//End MLE
-
- Forum Members
- Posts: 17
- Joined: Fri Feb 08, 2008 6:03 pm
Re: [Solved] Print pdf does not work
work now thanks
Re: [Solved] Print pdf does not work
Sorry for wrong code,
this is the working code that I add in next release:
this is the working code that I add in next release:
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