1

i use a Solution for my Custom Bootstrap Template.

Here is my idea: If a certain component open in the frontend, they add the word "-fluid" to my containter css class.

but i don't know how i can check if the certain component open in the frontend.

Any Idea?

Regards,

1
  • In the frontend vs the backend?
    – Javatasse
    Jul 30, 2018 at 0:39

1 Answer 1

2
$component = JFactory::getApplication()->input->get('option');

if ($component === 'com_example')
{
    // do something
}
1
  • wow, wow ,wow! Great Thank you! That's it!
    – Danny
    Jul 30, 2018 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.