-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Remove article print and email #19393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The option to email a link to a friend and to print an article were outdated when joomla 1.0 was launched - there are far better ways to share content etc. A quick unscientific test of live sites showed none that were using this This pr removes the show print and email icons options and code If I understand everything correctly nothing would need to be done to update upgrading sites databases as the stored param would simply be ignored
|
+1 This would fix #19221 I suppose |
|
email ok, but the print function is not bad |
|
@rdeutz - browsers have their own print functionality. |
|
@C-Lodder I know but it works different |
|
I have tested this item ✅ successfully on 3ff030f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19393. |
|
|
That is something I have to explain to a client, at least I know that one of my clients will miss the button. |
|
@rdeutz But then again, you also have to explain to new clients that Joomla has a print feature and how to access it. |
|
If this was a proposal to add a print button it would be rejected on the basis that its something that the majority of site owners would not want |
|
I can disable the feature for new clients, but anyway do whatever you think is right. I have told my opinion |
|
I have tested this item ✅ successfully on 97c99cb This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19393. |
|
thanks for testing |
| JGLOBAL_OTPMETHOD_NONE="Disable Two Factor Authentication" | ||
| JGLOBAL_PASSWORD="Password" | ||
| JGLOBAL_PASSWORD_RESET_REQUIRED="You are required to reset your password before proceeding." | ||
| JGLOBAL_PRINT="Print" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left this as it may be used elsewhere as I have done with many generic strings in the global language files
| </div> | ||
| <?php endif; ?> | ||
| <?php if ($canEdit) : ?> | ||
| <?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove 'print' => false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops ;)
Also need to check other views. Task for tomorrow
|
There is a big difference between printing via the browser and the Print article feature. I agree with @rdeutz |
|
@infograf768 Currently there is a big difference as there is no print specific CSS in the template. It is quite possible to make both of your examples look the same with the appropriate print specific styling. |
|
@infograf768 That's why we mave |
|
If we want to just print an article or any content within the component area, then the following CSS can be used: |
|
This means that there is no choice on one hand between printing the whole page if the user wants to and a single article if the admin desires (after adding this css). On the other hand, if a blog is displayed and there is no link to the specific article to force it to display alone, the result of such css is to print here 3 pages, 1st one blank, 2nd one with what ever gets into the pdf (it may be one or multiple articles) , 3rd one blank. Here is the result printing as PDF |
|
Personal attacks removed. JM we know quite well that you would prefer nothing changes, especially if Brian is the one who opened the PR. You do not need to use personal attacks and insults every time. Same goes for everyone else who likes to commonly trash other people's work. All that is being done is removing core support for creating these buttons. If you want them, create a layout override that generates a link to the current page with this query string: |
|
Apparently you did not like I can understand that. Sense of humor depends on different cultures. 😸 And it has nothing to do with who created the PR, but to the fact that this functionnality is real useful. |
|
We aren't dropping the functionality in full though, that's the main point my comment was making. All we're removing is support for the JHtml helper that builds a button with the appropriate link (current page URI plus the query string I noted). If we were making it impossible to use the functionality I'd say something different, but really, this is so easily duplicated if you really need it I don't see why it needs to be a big concern. |
Those facts are very subjective. The only objective thing here is that the CMS delivers a page to the browser. The browser is responsible for the printing not the CMS. Please let's not use practices from last century. Also what @mbabker said above |
|
That wasn't the offensive line as you well know - but nice try. Accept the PR and move into the 21st Century or stay in the dark ages. I am losing interest in Joomla very rapidly |
|
The various proposals above (either the one from @C-Lodder or @mbabker )to print a specific article content did not work here except if the article is displayed alone in an otherwise empty page. and then add in the article Which is impossible to do directly when using a WYSIWYG editor without a specific extension to enter js . It's a real pity to be forced to use such "century-old practice" "in the 21st century". One would say it is "normal" for a man using this kind of smartphone... |
|
If adding a |
|
@mbabker |
|
The "print URL" for the 3.8.6 release article is https://www.joomla.org/announcements/release-news/5725-joomla-3-8-6-release.html?tmpl=component Similar to that, you need your link to have that Probably the easiest: $printUrl = clone JUri::current();
$printUrl->setVar('tmpl', 'component');
// When building your link, include 'echo $printUrl' to print the URL |
|
@wilsonge can I have a yes/no/partial on this please and I will redo the pr
|
|
Reminder to @wilsonge |
|
@infograf768 of course number 3 does - thats why it is there |
|
for the test can you make a PR against this Repo https://github.com/joomla/test-integration files are in the 4.0-dev branch /legacy and remove the files from your PR here, thanks |
|
@rdeutz So now we have a chicken and egg scenario A new pr for the tests in the tests repo should only be merged if this PR is accepted |
|
I'm totally happy to remove print - this has been superseded by print stylesheets on pretty much all modern websites (and you'd use that to disable most the module positions in Joomla). I'm unsure as to whether we should remove the email functionality. Probably yes. But not 100% |
|
Can someone make a decision 100% then so I only have to write/update this once please |
Just to add to what @wilsonge wrote above, there is a great css just for that: https://github.com/BafS/Gutenberg |
|
Closed - obviously there is no interest in this |
|
Thanks for reopening this! |
|
I am going to resubmit it as this is over 12 months old and a pain to resolve the conflicts. |
|
See #24025 for up to date PR |



The option to email a link to a friend and to print an article were outdated when joomla 1.0 was launched - there are far better ways to share content etc.
A quick unscientific test of live sites showed none that were using this
This pr removes the show print and email icons options and code
If I understand everything correctly nothing would need to be done to update upgrading sites databases as the stored param would simply be ignored