Custom CSS in print view

More
14 years 3 months ago #20189 by ggppdk
Replied by ggppdk on topic Custom CSS in print view
This is strange the if should evaluate to true !
Some code is reseting this variable?

If you try this:
Code:
<?php if ( JRequest::getVar('tmpl') == 'component' ) : $myString = "<span>...</span>"; echo $myString; endif; ?>

Does it work?


-- 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 review. Thanks!

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

More
14 years 2 months ago #20194 by igcorreia
Replied by igcorreia on topic Custom CSS in print view
I will make a video to show, maybe I am doing something wrong. But also this does not work.

I have disable SRF and it also does not work. baaaa :cry:

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

More
14 years 2 months ago #20195 by igcorreia
Replied by igcorreia on topic Custom CSS in print view
I have an idea, because I am using a template maybe it has an overwrite?

Let see. Hope it is this.

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

More
14 years 2 months ago #20196 by igcorreia
Replied by igcorreia on topic Custom CSS in print view
This is the overwrite:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" > <head> <?php $gantry->displayHead(); $gantry->addStyles(array('template.css','joomla.css','style.css','typography.css')); ?> </head> <body> <div id="rt-main-surround"> <div class="rt-container"> <div class="rt-block"> <div id="rt-mainbody"> <jdoc:include type="component" /> </div> </div> </div> </div> </body> </html>

Is I add a "TEST" text to after:
Code:
<jdoc:include type="component" />
It works :D will keep trying.
So probably your first example should work :D

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

Moderators: vistamediajoomlacornerggppdk
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
Save