Customizing the Print Template

More
12 years 9 months ago #22304 by horsey
Hello,
I want to modify the print template.
Where is it happening?

I changed /templates/$template/component.php
or /templates/system/component.php
has no effect.

Its J! 1.5 with a Gantry/RT Template
FC 1.5.6 preRC3 (r1110)

Thanks again

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22306 by ggppdk
This is not a FLEXIcontent template,
this is the Joomla template.

Inside the joomla template FLEXIcontent component is loaded using one of the FLEXIcontent templates.

Please read documentation about Joomla templates

PS: Will be away from forum till Thursday

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22333 by horsey
But where is the current print style applied then, e.g. all the backgrounds are removed?

I want to create a custom print template with a custom logo.
Without the menubar and other modules.

Or can I use some other template for printing at all?

This thread here covers it and is marked solved, although I can't see the final solution there

www.flexicontent.org/forum/index ... =viewtopic

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22335 by ggppdk
It did not work because he had a joomla template override, so the code providen in that FORUM THREAD is valid.

Inside your item.php of YOUR FLEXIcontent template
you can use:
Code:
if ( JRequest::getVar('print') ) { echo "I am in print mode"; }

So with above "if" statement you can make customizations.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22351 by horsey
Thanks again, I figured it out now.
It was confusing for a moment, but I got the context now.

I do it mostly in the override though, very convenient with Gantry.

BTW
Code:
$document->addStyleSheet('item_print.css');
fails, needs
Code:
$document =& JFactory::getDocument(); $document->addStyleSheet('item_print.css');

Cheers

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.412 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline