-
AuthorPosts
-
Scott Lavelle Friend
Scott Lavelle
- Join date:
- November 2010
- Posts:
- 266
- Downloads:
- 16
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 64 times in 27 posts
October 11, 2013 at 12:58 pm #191308Hello all,
I would like to add the site logo and some other things to the print popup window, but I can’t figure out how to do it. Everything on the internet that I’ve found suggests modifying the component.php file. I can do this and it works for the print popup, but whatever I put in there also shows up at the top of every page of the site as well.
I would be ok with just putting in some php/html code directly into whatever file needed it, but I’d prefer to be able to just include a module position in the normal <jdoc:include manner.
Is there some IF statement that I need to put in the component.php file that will make it only insert what I’m wanting in the print popup window and not the regular site pages?
Any help you could provide here would be appreciated.
Scott Lavelle - Technical Resource Solutions, LLC
Certified Joomla AdministratorScott Lavelle FriendScott Lavelle
- Join date:
- November 2010
- Posts:
- 266
- Downloads:
- 16
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 64 times in 27 posts
October 12, 2013 at 1:58 pm #508814Anyone have any ideas on this?
Scott Lavelle - Technical Resource Solutions, LLC
Certified Joomla AdministratorScott Lavelle FriendScott Lavelle
- Join date:
- November 2010
- Posts:
- 266
- Downloads:
- 16
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 64 times in 27 posts
October 14, 2013 at 4:02 pm #508946I have resolved this. I’m not sure why it wasn’t working for me before, but for those who want to control the look of the print version popup window, here’s what I did.
Go to the component.php for the template you are using. In my case, this is /public_html/templates/t3_blank/component.php.
Above the line that says
include (dirname(__FILE__).'/index.php');
Add your code. In my case, I added this:
<div class="span12 print-header">
<jdoc:include type="modules" name="print-header" style="raw" />
<?php $today = mktime(0,0,0,date("m"),date("d"),date("Y")); echo "<p>Today is ".date("l d M, Y", $today);?>
</p>
<p>Check <a href="http://www.dyplast.com">the Dyplast website </a>for the latest information.</p>
<jdoc:include type="modules" name="print-page-qr" style="raw" />
</div>
This puts the company logo, the date it was printed, a link back to the main site, and a QR code (added as a module) to go back to the page this came from – all on the print friendly popup.I hope this is helpful to someone! 🙂
Scott Lavelle - Technical Resource Solutions, LLC
Certified Joomla Administrator -
AuthorPosts
This topic contains 3 replies, has 1 voice, and was last updated by Scott Lavelle 11 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum