[MGNLSTK-977] Use HTML5 mark element for highlighting search results Created: 21/Jun/12  Updated: 06/Feb/13  Resolved: 06/Feb/13

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: templates
Affects Version/s: 2.0.3
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Matt Dertinger Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: search_results, stk, stk2, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File SearchResultItem.java.patch     Text File searchResult.ftl.patch    
Issue Links:
relation
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Date of First Response:

 Description   

Hi,

Currently, info.magnolia.module.templatingkit.search.SearchResultItem and searchResults.ftl highlight search terms using <em class="highlight"> and <span class="search-term"> respectively. With HTML5, we can use the mark element instead. See Draw attention with mark for more info.

Thoughts?

If you agree, I've attached a couple simple patches.

Cheers,
Matt



 Comments   
Comment by Karel de Witte [ 06/Feb/13 ]

This can be modified by the customer itself when needed, or could be part of the search dialog box so that teh custom highlight element can be introduced through dialog.

Generated at Mon Feb 12 07:32:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.