Jump to content

How to create a link based on a Search keyword

Recommended Posts

We're continuing to implement our Dance events calendar. The objective is to continue to have worldwide Dance-related Workshops, Competitions and Events from our Members. We started to create a number of regional calendars, however, what we would like to do is to use the SEARCH function to generate links.

For example, when we put in events from Massachusetts, there are some events in Boston, while others in Cambridge, etc. What code/URL would we use in the SEARCH feature to  be able to have a link to the keyword with the relevant cities?

Also, the Search lets us find those events that may be in dance categories ... like Ballroom Dancing, Tango, Hip Hop, Salsa, etc. Similarly, could you provide us with the link we would need to use so that we can link to specific keywords ... like "Salsa, Boston" ... and then we would have a link to this from the SEARCH tool?

Thanks for any tips!

Link to comment
Share on other sites

What you can do is use either a URL-encoded query string for a Search query or use a URL argument in the Main calendar spud.

Here is an example using a URL-encoded query string to search for Boston:


Here is another example using a URL aguement in the Main calendar spud:

<script type="text/javascript" src="//www.trumba.com/scripts/spuds.js"></script>
<script type="text/javascript">
{ webName: "calendarname",
spudType: "main",
url: {search:"Boston"}});

Better yet, I would recommend setting up Filter Views. By creating filter views, you can set up filter views easily in Trumba to filter events by your cities, types of events, etc. 

MORE INFORMATION ON FILTER VIEWS: https://www.trumba.com/help/filter/pub_filterviews.aspx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...