- Posts: 3
COMMUNITY FORUM
Printing an Item
- John R Orzell
-
Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
It would be helpful if you could provide a link to your site.
Please Log in or Create an account to join the conversation.
- DKcrm
-
- Offline
- New Member
- Posts: 16
I have the same problem on this page: interclub.dk/nyheder/klubben/item/123-krisestemning-i-inter-grund-til-bekymring-bedring-i-vente-eller-bare-prisen-for-cl-succes?
(When print is pressed, it fires up lightbox with clone of initial page)
- But on THIS page the print function works fine.... : interclub.dk/nyheder/kampreferater-og-andet/item/126-mourinho-har-sat-inter-op-til-barcelona
(When print is pressed, a printfriendly version of the article is loaded inside the lightbox)
Yiota Ziaggou said:Check if on the print page you have a different body class than all other pages. If you do, use that body class to control the print page and overwrite the template's css.
It would be helpful if you could provide a link to your site.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- DKcrm
-
- Offline
- New Member
- Posts: 16
How do I switch off the contentpane class when loading one page, when it's not loaded every time?
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- DKcrm
-
- Offline
- New Member
- Posts: 16
I'll give it a try later and get back.. Thank you for now. :o)
Please Log in or Create an account to join the conversation.
- John R Orzell
-
Topic Author
- Offline
- New Member
- Posts: 3
Yiota Ziaggou said:On the loaded page on the lightbox the body has a class contentpane. With this class you can control the whole page and its css. As I noticed, on the page that works fine, the page doesn't load with any of the templates' css, which means that it doesn't inherit any of your templates' css.
Please Log in or Create an account to join the conversation.
- DKcrm
-
- Offline
- New Member
- Posts: 16
In which file do I make the needed change? ks.css, modal.css or the default joomla template css? And what change should I make?
What's makes it more weird (to me at least) is that all k2 articles inherits their properties from the categories in which they're in - but articles within the same category seems to have this error..
Please help.... And again, I'm very sorry, but I'm not TOO experienced in locating these errors and fixing them out of my head.. :o)
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
- Offline
- Premium Member
- Posts: 147
But I have a question connected to this matter for which I can't find any information on this forum:
If I want to change the order of the different parts or for example show the absolute path to the print copy, what PHP file may I edit?
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Edit the k2.css by targeting all information you want to be able to print, like title, text (introtext, fulltext), image, etc. and start by referring to them by body.contentpane .itemTitle, body.contentpane .introText, etc.
All other information you don't want to be at this page, like rating, simply add body.contentpane .itemRatingBlock {display:none;}.
@Mats Arvendal : What do you mean by "change the order of the different parts"?
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
- Offline
- Premium Member
- Posts: 147
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
//Print link
$item->printLink = urldecode(JRoute::_($link.'&tmpl=component&print=1'));
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
- Offline
- Premium Member
- Posts: 147
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
- Offline
- Premium Member
- Posts: 147
1. A print button connected to a script to help people print without going to their browser's print tool
2. A simplfied website logo to identify the document (this may be solved via CSS)
3. An absolute path to the page (regardless of what the visitor has set in hers/his web browser print settings)
4. title
5. creation date
6. intro text
7. full text
In the template/view there's a different order, 5 comes above 4. So creation date and title will have to switch in the print. The actual website is serving both as an ordinary webstie and as an article archive where the output for the paper archive must look a certain way.
I hope you can make sense of this bewilderment.
Rgds
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Now the print page is loaded through the the component.php page inside your template folder. If you want to edit anything for the print page you should edit that.
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
- Offline
- Premium Member
- Posts: 147
Efharisto poli!
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
- Offline
- Premium Member
- Posts: 147
Rgds
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.