Keyword

Extra Field as Search Query for External Site

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
2 weeks 5 days ago #178042 by George Nasis
Extra Field as Search Query for External Site was created by George Nasis
Hallo there,

is there any way to make an extra field work as a seach query for an external site?

One thing I can think is to create a "link" extra field and add the "example.gr/search/?query="

So there I need the actual phrase to be inserted.

Specifically I want the title of the k2 item to be added there.

So finally the extra field to work as "metabook.gr/search/?query=titleofk2item"

Thank you!

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #178062 by Fotis
I believe it's simpler to do that as a template override, since the pattern is always the same (the title of the item appended to the metabook.gr search URL).

See the guide on templating K2 here getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates and create your own item.php override to add this custom link.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
2 weeks 1 day ago #178090 by George Nasis
Replied by George Nasis on topic Extra Field as Search Query for External Site
You are right Fotis!

It is the most appropriate way!

Thank you!

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #178112 by Fotis
You're welcome.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum