×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Language Filter

Language Filter 6 years 1 month ago #32986

  • George Bouleros
  • George Bouleros's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi,
I noticed that in the modules or in eventlist menu I can choose which Categories I want to display.
My website is multi-language, so I have about 10 categories per language so far.
So If I want to display all english categories I need to go to the "Category" and select them one by one.
Maybe there should be a filter that selects the category language and then the Category filter ?

I also noticed that there is nowhere to select event's language ? Where is that ?

Thank you

Language Filter 6 years 1 month ago #33004

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi George,

sorry for the slow response.

I have a language filter on the todo-list for Matukio 5.3 or 5.4 (In the Joomla menu item, so you are able to just see the correct ones). Language is not saved in the event, but in the events category.

Still thinking on a common better solution for everyone. Some Matukio users use language placeholders for event titles, descriptions etc. instead of multiple events. The good thing on that is that you have only one event for multiple languages..

Currently reworking the documentation on this topic.

Kind regards,
Yves

Language Filter 6 years 3 weeks ago #33070

  • Lena Spiegelberg
  • Lena Spiegelberg's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi there,
is there a description how to use Matukio on a multilanguage site? I work on a website with more than 300 events. And it has to be published in up to three languages. So it would be nice to have an easy workaround.

Thank you and best regards
Sabine

Language Filter 6 years 2 weeks ago #33122

  • Lena Spiegelberg
  • Lena Spiegelberg's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi there,
before I bought your component I asked for the posibility to use it on a multilanguage website with more than 3 languages and more than 300 events a year. I´m now in the process to customize the component and fill it with content. I tried to solve the language problem by myself but didn´t get very far with it. So I opend this ticket three days ago but didn´t get a response yet.

Is there a documentation or a HowTo?

I installed JDiction, a very simple multilanguage component - quite similar to falang. It works for all but event content.

The website offers seminars for migrants (integration and language courses) and it would be very nice, if we could publish it in the nearer future.
Thank you and best regards
Sabine

Language Filter 6 years 2 weeks ago #33129

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Sabine,

please do not open old posts, it's hard to keep track of support requests this way.

It depends on how you want to manage your seminars. This is also a general joomla topic and not only a Matukio one. If you like we can work together on a solution for you.

yvesh.gitbooks.io/matukio-events-for-joo...cumentation/content/

Kind regards,
Yves

P.S. WIr sprechen auch deutsch (Gibt weiter unten auch ein deutschsprachiges Forum)

Language Filter 5 years 11 months ago #33502

  • George Bouleros
  • George Bouleros's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
We implemented a solution that fixes our issue.
We changed the view.html.php file in the itemlist view
At line 35, we added the following:
        $lang = JFactory::getLanguage()->getTag();
And at line 226, the code changes to:
      // Categories
        $categories[] = "";
	$database->setQuery("SELECT id AS value, title AS text FROM #__categories WHERE extension='"
			. $input->get('option') . "' AND access IN (" . $groups . ") AND language IN ('*','".$lang."') AND published = 1 ORDER BY lft");
        $catList = $database->loadObjectList();
        $catIds = array();
        foreach($catList as $catL) { $catIds[] = $catL->value; }
        $categories[] = JHTML::_('select.option', implode(',',$catIds), JTEXT::_('COM_MATUKIO_ALL_CATS'));
       $categs = array_merge($categories, (array) $catList);
	$this->categories = $categs;
The above requires a change to javascript file eventlist.jquery.js , at line 324 , the code changes to:
holder.filter_categories.val(function(i,val) {
  if (val == 0) {
		return catid;
 } else {
               var catArr = catid.split(",");
               var valArr = val.split(",");
               var lookup = {};
                 for(var j = 0; j < valArr.length; j += 1) {
                           lookup[valArr[j]] = valArr[j];
                }
 
                 for(var i = 0; i < catArr.length; i += 1) {
                          if (typeof lookup[catArr[i]] == 'undefined') {
                                      val = val + (val ? ',' : '') + catArr[i];
                           } 
               }                         
		return val;
 }
});
  • Page:
  • 1
Time to create page: 0.137 seconds