Problem with pdf style
Posted: 09 Jan 2015, 15:12
I got a task in my company to solve problem, why pdf menu card is wrong styled.
I found out that methods in phocamenurenderviews.php using getStyle method receive ever parameter ($method) of value 4, even when printing of pdf was called (then this parametr should be 2).
url called by pdf icon is smth like xxx/essen/speisekarte/saisonale-karte.pdf?tmpl=component
I fixed it with code: if (strpos($_SERVER["REQUEST_URI"], ".pdf")) $method = 2;
Then pdf has the right styling.
I would appreciate to hear if you had the same problem, or if I fixed it correct.
Thanks
Moris
I found out that methods in phocamenurenderviews.php using getStyle method receive ever parameter ($method) of value 4, even when printing of pdf was called (then this parametr should be 2).
url called by pdf icon is smth like xxx/essen/speisekarte/saisonale-karte.pdf?tmpl=component
I fixed it with code: if (strpos($_SERVER["REQUEST_URI"], ".pdf")) $method = 2;
Then pdf has the right styling.
I would appreciate to hear if you had the same problem, or if I fixed it correct.
Thanks
Moris