Skip to content
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

com_search on back-end: Results links opens in backend window instead of new Tab #12626

Merged
merged 6 commits into from
Nov 5, 2016
Merged

com_search on back-end: Results links opens in backend window instead of new Tab #12626

merged 6 commits into from
Nov 5, 2016

Conversation

brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Oct 29, 2016

Pull Request for Issue #11852 .

Summary of Changes

In the list of search results the link to the search now opens in a new window
An icon is added to visually indicate that it is opening in a new window and a screen reader only text link is also present.

Testing Instructions

Enable search results in the admin search component
Perform a few searches in the front end
Return to the search component in the admin and you will see the log of the searched terms.
The number at the end of the row is the number of times that the term has been searched for.
Click on the link and it will open in a new window/tab

Thomas Hunziker and others added 3 commits October 20, 2016 22:02
@zero-24
Copy link
Contributor

zero-24 commented Oct 29, 2016

Hmm look like you have mixed commits here?

* handeling for mcrypt and openssl

* Language changes suggested bei Brian
 (reverted from commit 08d6728)
@brianteeman
Copy link
Contributor Author

@zero-24 ooops - quick and dirty fix to the PR - should be ok now

@zero-24
Copy link
Contributor

zero-24 commented Oct 29, 2016

Do you want to hard code the english text?

@brianteeman
Copy link
Contributor Author

No - oops

<a class="badge <?php if ($item->returns > 0) echo "badge-success"; ?>" href="<?php echo JUri::root(); ?>index.php?option=com_search&amp;view=search&amp;searchword=<?php echo JFilterOutput::stringURLSafe($item->search_term); ?>">
<?php echo $item->returns; ?></a>
<a class="badge <?php if ($item->returns > 0) echo "badge-success"; ?>" target="_blank" href="<?php echo JUri::root(); ?>index.php?option=com_search&amp;view=search&amp;searchword=<?php echo JFilterOutput::stringURLSafe($item->search_term); ?>">
<?php echo $item->returns; ?><span class="icon-out-2"><span class="element-invisible"><?php echo JText::_('JBROWSERTARGET_NEW'); ?></span></span></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use two spans . i think you could use just

<span class="icon-out-2 element-invisible"><?php echo JText::_('JBROWSERTARGET_NEW'); ?></span>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesnt work

@brianteeman
Copy link
Contributor Author

brianteeman commented Oct 29, 2016 via email

@joomla-cms-bot joomla-cms-bot removed the Language Change This is for Translators label Nov 4, 2016
@Martijn-Boomsma
Copy link

I have tested this item ✅ successfully on 0b78918

1. Enabled search results in the admin search component
2. Performed a few searches in the front end
3. Returned to the search component in the admin and saw the log of the searched terms.
4. Att. The number at the end of the row is NOT the number of times that the term has been searched for (That is HITS) but the number of search result.
5. After applying the test I clicked on the link (Under results) and it indeed opened in a new window/tab on the Frontend (instead of same backend window).


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12626.

@euismod2336
Copy link
Contributor

I have tested this item ✅ successfully on 0b78918

Link does indeed open in a new window, showing the search results.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12626.

@zero-24
Copy link
Contributor

zero-24 commented Nov 4, 2016

@brianteeman can we RTC or do you want to change something here?

@brianteeman
Copy link
Contributor Author

brianteeman commented Nov 4, 2016 via email

@zero-24 zero-24 added this to the Joomla 3.7.0 milestone Nov 4, 2016
@zero-24
Copy link
Contributor

zero-24 commented Nov 4, 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12626.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 4, 2016
@rdeutz rdeutz merged commit e48389a into joomla:staging Nov 5, 2016
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 5, 2016
@brianteeman
Copy link
Contributor Author

Thanks

@brianteeman brianteeman deleted the search_results branch November 5, 2016 10:27
nvyush pushed a commit to nvyush/joomla-cms that referenced this pull request Nov 9, 2016
… of new Tab (joomla#12626)

* Updated installation language files

* 2fa handeling for mcrypt and openssl (joomla#12497)

* handeling for mcrypt and openssl

* Language changes suggested bei Brian

* search results in new window

* 2fa handeling for mcrypt and openssl (joomla#12497)

* handeling for mcrypt and openssl

* Language changes suggested bei Brian
 (reverted from commit 08d6728)

* Updated installation language files (reverted from commit e504f71)

* language string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants