ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using the search parameter in the weblog calendar tag

January 30, 2009 2:32pm

Subscribe [3]
  • #1 / Jan 30, 2009 2:32pm

    matthew235

    12 posts

    I encountered a problem not being able to use the search parameter in the exp:weblog:calendar tag, and discovered that if you add the following line of code to mod.weblog.php at approximately line 2437 the search parameter will work with the exp:weblog:calendar tag.

    $this->fetch_custom_weblog_fields(); #THIS LINE IS SO THAT THE CALENDAR TAG CAN PARSE SEARCH PARAMETERS

    it should be inserted just after the lines

    if (! empty($TMPL->search_fields))
            {

    Hope this helps somebody!!!

  • #2 / Mar 30, 2009 10:37am

    Sacha

    33 posts

    Wow, this actually worked ! Thanks ! I just hope there won’t be any side effects..?

  • #3 / Apr 02, 2009 2:45am

    matthew235

    12 posts

    I’ve used it on several sites and have never experienced any problems related to this hack.

  • #4 / Apr 12, 2009 6:57pm

    PhireGuys

    525 posts

    Awesome!

    I just got stuck with this problem and it was critical since the user wanted some events to be on the calendar but others not to be!

    I really suggest this be added into EE!  So simply but does wonders!

    Thanks matthew235

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases