Keyword

Extra Field as Search Query for External Site

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
3 years 2 months 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.

More
3 years 2 months ago #178062 by JoomlaWorks
Replied by JoomlaWorks on topic Extra Field as Search Query for External Site
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
3 years 2 months 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.

More
3 years 2 months ago #178112 by JoomlaWorks
Replied by JoomlaWorks on topic Extra Field as Search Query for External Site
You're welcome.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum