?
avatar Septdir
Septdir
26 Apr 2018

Once I was asked to add the button Go to item into one of my components.

The function of the button is simple when you click a new window to open an article page on the site.

This button helps you to save time. Because to look at the article on the site you do not have to first go to the site and then look for the right page. Do not forget to log in if the article has access.

Here is a screenshot of how it might look like
s1

Here is an example of implementation.
https://github.com/JoomlaZen/com_jzpages/blob/master/admin/views/page/view.html.php#L143-L149

If you abandon Route, then the code will be several times shorter. Either the implementation of the button can be quite different. In truth, I did not think how to do it better.

In the parish, I can make a plugin and easily add a button to com_content, but if this function is interesting it can be added to core

avatar Septdir Septdir - open - 26 Apr 2018
avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Apr 2018
avatar Septdir Septdir - change - 26 Apr 2018
The description was changed
avatar Septdir Septdir - edited - 26 Apr 2018
avatar dgrammatiko
dgrammatiko - comment - 26 Apr 2018

@Septdir this is already implemented in J4, you can give it a try

avatar Septdir
Septdir - comment - 26 Apr 2018

@dgrammatiko Thank you. Did not notice if honestly. But still there is a difference.

In the version I proposed. preview opens in a new tab and not in the modal window. In the modal window, it's not very convenient to use the browser Console\Developer Tools

I can rename or create a new issue

avatar dgrammatiko
dgrammatiko - comment - 26 Apr 2018

You can change the behaviour in J4. I don't think that anyone will be against having the preview in a new tab 😉

avatar Septdir
Septdir - comment - 26 Apr 2018

I even know that you can still add.

Maybe add parameter for JToolbarHelper :: Link to open links in a new window

How to be this issue? Close, rename or leave. Maybe later add preview to joomla 3

avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2018
Title
[New feature][com_content] Add `Preview` button to admin tollbar
[New feature][com_content] Add `Preview` button to admin toolbar
avatar joomla-cms-bot joomla-cms-bot - edited - 26 Apr 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Apr 2018
Title
[New feature][com_content] Add `Preview` button to admin tollbar
[New feature][com_content] Add `Preview` button to admin toolbar
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Apr 2018
Category com_content Feature Request
avatar dgrammatiko
dgrammatiko - comment - 26 Apr 2018

Let's patch it first in J4 and then we can back port it in J3...

avatar Septdir
Septdir - comment - 26 Apr 2018

@dgrammatiko Good. Then probably create a new issue.

avatar C-Lodder
C-Lodder - comment - 27 Apr 2018

Code is here for you: #12367

avatar Septdir
Septdir - comment - 27 Apr 2018

@C-Lodder Thank you, one at the moment, I'm thinking of adding a setting to com_content J4 Open preview in new tab
#20241

avatar PhilETaylor
PhilETaylor - comment - 15 May 2018

Please see #20417 and #20418

avatar Septdir
Septdir - comment - 19 May 2018

It would be better to do this in J4 #20241

avatar Septdir Septdir - change - 19 May 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-05-19 19:37:49
Closed_By Septdir
avatar Septdir Septdir - close - 19 May 2018

Add a Comment

Login with GitHub to post a comment