Print funktion...
Posted: Sat 27. Dec 2003, 21:42
I just found out that when pressing the "print" link or image on the content pages it only opens the same page with different css.
how can i make the new page that it opens also print automaticly, or at least ask if it should print it?
the file content.func.inc.php contains this string:
i realise that this string is the one the [print] tags are replaced with, however i don't know any code that is added to the <a href=""> tags, so the only other method of doing this is to do something with the css, but again here i don't know any code that does that, so if anyone here can help me, please do so.
how can i make the new page that it opens also print automaticly, or at least ask if it should print it?
the file content.func.inc.php contains this string:
Code: Select all
// print layout button replacement
if( ! ( strpos($content["all"],'[PRINT]')===false ) ) {
$content["all"] = str_replace('[PRINT]', '<a href="index.php?id='.$aktion[0].','.$aktion[1].',1,'.$aktion[3].','.$aktion[4].','.$aktion[5].'" target="_blank">', $content["all"]);
$content["all"] = str_replace('[/PRINT]', '</a>', $content["all"]);
}