Results 1 to 17 of 17

Thread: Event List filtered by Tags

  1. #1
    New user
    Join Date
    04-15-10.
    Location
    New Orleans, LA
    Posts
    18

    Default Event List filtered by Tags

    When creating new events I am able to tag them, but then when I go to create an events list I don't see anyway to filter that list by the tags. I can do this in the news, but the only thing I see in the event list module is a checkbox for ignore tags.

    A little background: I have my main upcoming events list on the events page of my website with the calendar. I would like to have separate event list of some subpages with events just related to that page of the website. I was going to do this with tags instead of creating multiple calendars. Does anyone know if this is possible?

  2. #2
    User
    Join Date
    06-10-09.
    Location
    Loxstedt, Germany
    Posts
    54

    Default Re: Event List filtered by Tags

    Well, either I forgot to do this for the event list or it isn't possible. I'm not quite sure yet.
    I will check if I can add support for a tag filter in event lists too.

    Best,
    Helmut
    Blackmail's such an ugly word. I prefer extortion -- the "x" makes it sound cool.
    -- Bender

  3. #3
    New user
    Join Date
    04-15-10.
    Location
    New Orleans, LA
    Posts
    18

    Default Re: Event List filtered by Tags

    Sounds good, I look forward to your next response. Also great work on the tags extension, it's a valuable addition to my website.

  4. #4
    User
    Join Date
    06-10-09.
    Location
    Loxstedt, Germany
    Posts
    54

    Default Re: Event List filtered by Tags

    Hi Daniel,

    I added a tag filter functionality for event lists. It's in the latest release of tags (1.5.1).
    Best,
    Helmut
    Blackmail's such an ugly word. I prefer extortion -- the "x" makes it sound cool.
    -- Bender

  5. #5
    New user
    Join Date
    04-15-10.
    Location
    New Orleans, LA
    Posts
    18

    Default Re: Event List filtered by Tags

    Awesome, that is exactly what I needed. I can't thank you enough.

  6. #6
    New user
    Join Date
    07-16-10.
    Posts
    7

    Default Re: Event List filtered by Tags

    Hi, event tags I like great extension with thanks. I have just a question I didn't see in BE Tags setting as in News Tags. I don't know if some problem with my installation?

    Anyway in event list I tried to add tags as in newslist. using $this->taglist I can show the list but how I can take the url of the tag ?

    Thank you

  7. #7
    User
    Join Date
    06-10-09.
    Location
    Loxstedt, Germany
    Posts
    54

    Default Re: Event List filtered by Tags

    In events, every event should have a tag field in the backend.
    The tags for news are available in the "News template" which is the template you choose for a single news entry. This could be either news_full, news_latest, news_short or news_simple. You have to create your own news template and then you could use
    Code:
    $this->tags
    for the tags giving your url, etc.
    Best,
    Helmut
    Blackmail's such an ugly word. I prefer extortion -- the "x" makes it sound cool.
    -- Bender

  8. #8
    New user
    Join Date
    07-16-10.
    Posts
    7

    Default Re: Event List filtered by Tags

    I tried with $this->tags because I checked the variables available using in the template

    Code:
    <pre><?php $this->showTemplateVars(); ?></pre>
    but don't show anything.

    this is the part of my template

    Code:
    <div class="news_tags">
    <ul class="tag-chain">
    <?php $counter = 0; foreach ($this->tags as $tag): ?>
    <li class="tag-chain-item<?php if ($counter == 0) echo ' first'; ?><?php if ($counter == count($this->tags)-1) echo ' last'; ?><?php if ($this->showTagClass) echo ' ' . $tag['class']; ?>"><?php echo $tag['url']; ?>
    <?php $counter++; endforeach; ?>[/list]
    </div>
    Than in the backend module event list I didn't find the Tags Settings as present in the newslist module, is correct or maybe I missed something during the installation of the module ?

    Thank your for your reply

  9. #9
    User
    Join Date
    06-10-09.
    Location
    Loxstedt, Germany
    Posts
    54

    Default Re: Event List filtered by Tags

    Hm,

    that's strange. I made a simple test, added some tagged news, made a news tag cloud and a news list to display it. As template I've chosen news_latest. I went to the templates section, created a new template on base of news_latest and modified this template by adding
    Code:
    <pre><?php $this->showTemplateVars(); ?></pre>
    .
    In the result I found the tags for every news entry:


    Code:
    [tags] => Array
            (
                [0] => green
                [1] => jazz
                [2] => live
                [3] => piano
                [4] => saxophone
            )
    Code:
        [taglist] => Array
            (
                [0] => Array
                    (
                        [url] => green
                        [tag] => green
                        [class] => green
                    )
    
                [1] => Array
                    (
                        [url] => jazz
                        [tag] => jazz
                        [class] => jazz
                    )
    
                [2] => Array
                    (
                        [url] => live
                        [tag] => live
                        [class] => live
                    )
    
                [3] => Array
                    (
                        [url] => piano
                        [tag] => piano
                        [class] => piano
                    )
    
                [4] => Array
                    (
                        [url] => saxophone
                        [tag] => saxophone
                        [class] => saxophone
                    )
    
            )
    So it seems to work for me...
    How exactly did you add your newslist with the modified template into the article?
    Best,
    Helmut
    Blackmail's such an ugly word. I prefer extortion -- the "x" makes it sound cool.
    -- Bender

  10. #10
    User
    Join Date
    06-10-09.
    Location
    Loxstedt, Germany
    Posts
    54

    Default Re: Event List filtered by Tags

    And again,

    Than in the backend module event list I didn't find the Tags Settings as present in the newslist module, is correct or maybe I missed something during the installation of the module ?
    there should be settings in the news list module for tags. The settings should be there even if you did not install tags_news. It's usually sufficient to have tags installed. tags_news adds some additional settings for the tag cloud to support related tags for news entries as well.

    There should be also an additional template news_full_tags which already has the integration for tags and should work too.

    Best,

    Helmut
    Blackmail's such an ugly word. I prefer extortion -- the "x" makes it sound cool.
    -- Bender

  11. #11
    New user
    Join Date
    07-16-10.
    Posts
    7

    Default Re: Event List filtered by Tags

    Sorry maybe my post wasn't clear. I was speaking about "Event" so calendar module and not with "News". With news everything work good.

    Thank you.

  12. #12
    New user
    Join Date
    07-16-10.
    Posts
    7

    Default Re: Event List filtered by Tags

    Hi,
    any update or suggestions for fix the problem of tags filter in event list (calendar module) ?

    Thank You.

  13. #13
    New user
    Join Date
    07-28-10.
    Posts
    2

    Default Re: Event List filtered by Tags

    Quote Originally Posted by hschottm
    Well, either I forgot to do this for the event list or it isn't possible. I'm not quite sure yet.
    I will check if I can add support for a tag filter in event lists too.

    Best,
    Helmut
    Sounds good, I look forward to your next response. Also great work on the tags extension, it's a valuable addition to my website.

  14. #14
    New user
    Join Date
    07-16-10.
    Posts
    7

    Default Re: Event List filtered by Tags

    Hello,

    I still have that problem with tags in event_list I post here the result code, seems that with tags event module don't store the tags in the db.

    Code:
    [source] => default
        [jumpTo] => 0
        [articleId] => 0
        [url] => 
        [target] => 
        [cssClass] => 
        [noComments] => 
        [published] => 1
        [start] => 1281283500
        [stop] => 
        [tags] => 
        [calendar] => Eventi e Manifestazioni
        [time] => 16:05
        [date] => 2010-08-08
        [day] => Sunday
        [month] => August
        [parent] => 1
        [link] => dettagli-evento/events/evento-1-di-esempio.html
    Any suggestion ?

    Thank you.

  15. #15
    New user
    Join Date
    05-24-11.
    Location
    Nitra, Slovakia
    Posts
    6

    Default Re: Event List filtered by Tags

    Hi,
    i am having the similar problem with event_list template.
    Tags variable is empty even I have defined the tag in calendar event details page.
    [start] => 1308700800
    [stop] =>
    [dlh_reserved] =>
    [dlh_blocked] =>
    [cep_location] =>
    [cep_participants] =>
    [cep_contact] =>
    [tags] =>
    [calendar] => Skolenia2011
    [time] =>
    [date] => 2011-06-22 - 2011-06-30
    [day] =>

    But what I am curious about if it is possible to use Insert tags in "Tag filter" field in Event List module. E.g. {{catalog::FieldName}}.

  16. #16
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Event List filtered by Tags

    Same for me Helmut. I can see that the News is working with tags, as I've done a few implementations, but now I'm trying the EVENTS tags and it's coming up blank.

    I believe that the addEvent() function must be to blame, because the arrAllEvents converts the Database query into an array of Events (by day), but I can't see any place where you actually add in the ['tags'] variable to the array. Since the tags isn't stored in the 'tags' field, but must be looked up in the tl_tags table using the reference table. I see that you have a function in the CalendarTags.php to insert the tags into the event-feed, but I can't see a similar function to add tags expansion to the events list.

    Please can you let me know, otherwise, I have to switch to using classnames instead, or hack the modules you wrote.

  17. #17
    User
    Join Date
    06-20-09.
    Posts
    63

    Default Re: Event List filtered by Tags

    thyon did you get any answer from the developer on this?
    I'm trying to use this extension for the first time, and on a V3 version, and none of the tags columns seem to be fed for any element (news, event, article, etc.)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •