Hi,
another day, another question ;D
I included the code for the joomla print preview button in my component detail view.
Code:
$params = & new mosParameters( '' );
$params->def( 'print', true );
$params->def( 'popup', false );
$params->def( 'icons', true );
$url = $mosConfig_live_site . '/index2.php?option=com_bh&Itemid=48&task=011&hId=9';
global $hide_js;
mosHTML::PrintIcon( $row, $params, $hide_js, $url );
The output is as i wish only the content view, without the main homepage menu etc.
But, if i set popup = true, to print the page, the whole page with menu is printed. How can i set the print button to the same output than the preview button?
I found out that the print button is automatically set to index.php instead of index2.php but the url is definitely set to index2.php
But if i first open the preview, in the preview the link of the print button is set to index2.php. Is there no way to print only the component without opening the preview first?