Joomla! Discussion Forums



It is currently Sun Nov 22, 2009 4:48 am (All times are UTC )

 




Post new topic Reply to topic  [ 1 post ] 
Author Message
Posted: Thu Mar 01, 2007 11:12 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 09, 2007 12:20 pm
Posts: 13
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?


Last edited by below on Thu Mar 01, 2007 11:19 am, edited 1 time in total.

Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group