1. Hello Guest!

    Thank you for visiting the ClubRunner Community website, you can login using your ClubRunner account information by clicking the login link on the top of every page.
    Dismiss Notice

Searching for Stories Using Tags

Discussion in 'Feedback & Suggestions' started by Richard Blakeman on Sep 21, 2020.

  1. Richard Blakeman

    By:Richard BlakemanSep 21, 2020
    Community Member

    Joined:
    Apr 24, 2020
    Messages:
    41
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    Rotarian
    Location:
    Financial Commercial
    All of our stories are allocated a Tag so that they can be found easily. However I have noticed that the only place a search by Tag seems to be available is when we list a story for display on the 'Story Page', and we don't always want to list a story there. It would be great if we could shortlist stories using the Tag in the Story Library. Would that be possible?
     
  2. Ian Ballantine

    By:Ian BallantineSep 25, 2020
    Community Member

    Joined:
    Sep 18, 2020
    Messages:
    19
    Likes Received:
    3
    Gender:
    Male
    Location:
    Internet Srvce
    I am currently just setting up our site and have addressed this issue. I am including on pages, usually site pages, but could be anywhere you can edit the HTML source, a link that will pull up stories matching a tag.
    (I haven't bothered trying to work out if I can do search on multiple tags in one link yet - see below)
    However, you can have as many links as you like on the one page.

    So, for example if you've set up tags for "Rotary Youth Exchange" and tags for each school you're partnering with, for each RYE story you would use the tags: "Rotary Youth Exchange" and a tag for a particular school.
    Let's say you have a page that describes your Club's involvement in RYE. At the bottom of that page I'd add a "search by Tag" link for Rotary Youth Exchange and one for each school. Each link would pull up all the stories that match the link. So you would get all stories about Rotary Youth Exchange, or all stories about a particular school.
    Because CR does not support categories as well as tags you can't narrow your search.(Maybe there is a way of doing this using tags - find stories where two or more tags have to be on the one story for it to be listed - something to work on)

    So, on any page where you can access the Source, copy the following:

    <div>See all stories for <a class="tag" data-val="Tag Name" href="Stories#Tag Name" target="_self">Tag Name or expanded description</a></div>
    Note, substitute _blank for _self for result to open in a new tab or window.

    For my example above the link to get stories on RYE would be:
    <div>See all stories for <a class="tag" data-val="Rotary Youth Exchange" href="Stories#Rotary Youth Exchange" target="_self">Rotary Youth Exchange</a></div>
    To get stories on a particular school would be:
    <div>See all stories for <a class="tag" data-val="My High School" href="Stories#My High School" target="_self">My High School</a></div>

    The resultant stories will still open in the Story List page but at least you've been able to show your search where ever you like.

    Another application of this, following my example above, would be where you have pages set up for partner organisations, like schools. So you dedicate a page to the school and include a link in the page to pull up all stories tagged with that school. Great way to show all the relationships you have with that organisation.
     
  3. Mickey

    By:MickeySep 30, 2020
    Moderator
    ClubRunner Team

    Joined:
    Jun 10, 2017
    Messages:
    219
    Likes Received:
    43
    Hello Richard and Ian,

    Ian that's a wonderful use of code - however I'd like to post a simplified option for all our users who are not familiar with using HTML code. There is another way to 'limit' what stories show up on the "Stories List page" using story tags.

    Here is a ClubRunner test club (fake info) and its stories list page:
    https://portal.clubrunner.ca/9723/stories

    As you can see all the stories are listed together. Now running down the right side in the "Tags" section, click on any tag and the URL changes. For example I'd like to show only stories with the tag "Foundation" so if I click that "Foundation" Tag on the stories page, the resulting URL becomes:
    https://portal.clubrunner.ca/9723/stories#Foundation

    You can link tohttps://portal.clubrunner.ca/9723/stories#Foundationanywhere in ClubRunner (or even email anyone this link). Only the stories with the "Foundation" tag are shown, but more advanced users can still click "All" under "Tags" to show all the other stories if they wish.

    Another advantage to using this method is that you can keep adding new stories with the tag "Foundation" and the above URL will automatically update to show those new tagged stories as well.

    For those users who aren't familiar with all the features a story has, such as Tags, please review our detailed article:
    https://www.clubrunnersupport.com/article/1304-how-to-create-and-edit-a-story

    Section 10 of this article goes over the "Blog" features of stories (e.g., Tags and Comments). If you have more questions please post again.
     
  4. Ian Ballantine

    By:Ian BallantineSep 30, 2020
    Community Member

    Joined:
    Sep 18, 2020
    Messages:
    19
    Likes Received:
    3
    Gender:
    Male
    Location:
    Internet Srvce
    Yes Mickey, of course that's a lot more simple. Perfect.
    By the way, is there any syntax for calling up stories that match more than one tag? I just tested https://portal.clubrunner.ca/9723/stories#award,#rotary and ,of course it didn't work. Note that I am trying to display only stories that have both tags, not all stories that have either or both.
    And the tags appear to be listed by date created order, with "All" at the top. Perhaps they could be displayed in alphabetic order or highest number to lowest?
    Zac posted here https://www.clubrunnercommunity.com...mn-on-the-stories-archive-page.314/#post-1182 that some work was being considered re the layout of the tags. Perhaps the order is being considered also. Even if we could manually re-order them on the Tags Management page would be perfectly fine.
    Thanks
     
  5. Ian Ballantine

    By:Ian BallantineSep 30, 2020
    Community Member

    Joined:
    Sep 18, 2020
    Messages:
    19
    Likes Received:
    3
    Gender:
    Male
    Location:
    Internet Srvce
    Sorry I am incorrect re the order of the tags. They are ordered by highest number to lowest.
     
  6. Richard Blakeman

    By:Richard BlakemanOct 1, 2020
    Community Member

    Joined:
    Apr 24, 2020
    Messages:
    41
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    Rotarian
    Location:
    Financial Commercial
    Hi Mickey,
    Thank you for replying to my query. The solution you have suggested works fine for stories listed on the Story List page, but we don't list all stories on the Stories List page - there are a number of relatively inconsequential stories that are meant for the Bulletin and then gone.
    However my query is whether we could have this search by tag function in the Story Library. That would be very helpful.
     
  7. Mickey

    By:MickeyOct 8, 2020
    Moderator
    ClubRunner Team

    Joined:
    Jun 10, 2017
    Messages:
    219
    Likes Received:
    43
    Hi Richard,

    Sorry for the delayed response. After some testing you're right - when using the Story Library (inside the member area) there is no way to search for Story tags. Story tags are currently only visible on a website's public "/stories" page.

    I've forwarded your suggestion to our team. I can't guarantee any results, but can let you know that they are evaluating. Thank you for this valuable feedback!
     
    Richard Blakeman likes this.
  8. Mickey

    By:MickeyOct 8, 2020
    Moderator
    ClubRunner Team

    Joined:
    Jun 10, 2017
    Messages:
    219
    Likes Received:
    43
    Richard Blakeman likes this.
  9. Ian Ballantine

    By:Ian BallantineOct 8, 2020
    Community Member

    Joined:
    Sep 18, 2020
    Messages:
    19
    Likes Received:
    3
    Gender:
    Male
    Location:
    Internet Srvce
    Would love to see it Mickey. Even if, initially, it was in a specific call to a plugin via parameters we could build into the HTML, or just a link as you've described.
    Because of all the possible combinations of tags, a pull down list allowing multiple selections of tags on the Story List page would be perfect.
    I know there are probably users who don't even use tags or even stories, for that matter. But speaking on behalf of those that do, it would be fantastic. Apart from anything else, it overcomes somewhat the lack of Categories in CR. ie by having tags for categories. As I also tag my stories with a year (both calendar and Rotary), I could refine my call by tag(s) to a year as well.
    Thanks
     
    Richard Blakeman likes this.
Top