Custom CSS in print view

More
13 years 2 weeks ago #20127 by ggppdk
Replied by ggppdk on topic Custom CSS in print view
Did you try with SEF and caching off to see if they are related?


-- 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
13 years 2 weeks ago #20128 by igcorreia
Replied by igcorreia on topic Custom CSS in print view
Yes and also cache.

Witch one of 1,2 or 3 example that i presented should work?

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

More
13 years 2 weeks ago #20148 by ggppdk
Replied by ggppdk on topic Custom CSS in print view
Look at your code bellow:
Code:
<!-- BOF LOGO for print --> <?php //only show this part in the print view if ( JRequest::getVar('print') ) { <span>The image should be here!</span> } endif; ?> <!-- EOF LOGO for print -->
Inside php you are putting out HTML.
This wrong.
You have 2 options: (a) close php with ?> or put the html inside an PHP echo command.

ALSO at the top of the page please put:
Code:
error_reporting(E_ALL & ~E_DEPRECATED);
to tracked down error

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
13 years 2 weeks ago #20186 by igcorreia
Replied by igcorreia on topic Custom CSS in print view
I see so I tried this with no success:
Code:
<?php if ( JRequest::getVar('print') ) : ?> <span>...</span> <?php endif; ?>
Code:
<?php if ( JRequest::getVar('print') ) : $myString = "<span>...</span>"; echo $myString; endif; ?>

One with the echos and with with closed "?>"
I tried in the Category.php and the category_item.php with no success :/

If I remove the "if ( JRequest::getVar('print') ) : "
it shows "..." in both views, normal and print, but if I put the validation it does not shows in none of them.

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

More
13 years 2 weeks 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...

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

More
13 years 2 weeks 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.825 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