A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

You get the menu id for the currect request. The Ajax uses another request than your normal page load. That is why Joomla is using some default or cached value to determine active menu. You should add the current ItemId as parameter to the ajax request itself instead if it is important for your modules function.


1

This is handled by System - SEF plugin. It will not work with page content added using JavaScript. You'll have to handle this in your code.


1

Administrator side's ContentModelArticles does not support filtering by ID. ContentModelArticle does support it. The state property name is article.id: $model->setState('article.id', $articleId); If this is a frontend module you might want to use the frontend articles model: // Register frontend model classes. JModelLegacy::addIncludePath(JPATH_SITE ....


Top 50 recent answers are included