Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Search reveals html in title

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I suspect this is a Joomla issue, but when testing the "Search" feature, both from the menu and on the search page, if the search item is in the title, the html for "span" is shown. I expected it to be highlighted, not set in a "span". Is this anything I can do something about?

My site is [url=http://http://virtualcountrymall.com/index.php/component/search/?searchword=library&ordering=newest&searchphrase=all&limit=20]City of Lobelville Search[/url].

I've attached a screen shot for convenience.


virtualcountrymall.com2017-07-0512-57-04searchtitle.png



Thanks,
Pat
  • Pat Vanden Bosche's Avatar
  • Pat Vanden Bosche
  • LIfetime Developer - Big Bamboo
  • 81 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Pat,

Do you get the same if using a Joomla default template?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
You do need a search results page by the look of it

If you create a hidden menu link for that it will load there rather than the home page
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Once you have the search results menu link created - then select this link via the search module

Cheers
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I'm expecting it to be a Joomla thing but you could try using shortcode syntax instead maybe add two stars instead of a span class

docs.joomlabamboo.com/zen-grid-framework-4/theme/shortcodes/icons
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I just tested it using Protostar template, and it worked perfectly, no html in the results. I'll try the rest of your suggestions next.

Thanks,
Pat
  • Pat Vanden Bosche's Avatar
  • Pat Vanden Bosche
  • LIfetime Developer - Big Bamboo
  • 81 posts
  • Karma: 0
The administrator has disabled public write access.
Thanks
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I set up a menu item for Search in my hidden menu, then tested it as you suggested by having the module use this link, and I am still getting the "span" html showing. I'm not sure I understand what you mean by shortcode syntax. If you can tell me what to do, I would love to learn.

Thanks,
Pat
  • Pat Vanden Bosche's Avatar
  • Pat Vanden Bosche
  • LIfetime Developer - Big Bamboo
  • 81 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Pat,

You should already have the shortcodes plugin installed and this comes with icons and styling support

docs.joomlabamboo.com/zen-grid-framework-4/theme/shortcodes/icons

so the syntax would be >

{zen-star}{/zen-star}{zen-star}{/zen-star}

Nobody has actually used it like this before as far as I'm aware but this might work

it would add two stars if the syntax isn't stripped

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers