Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom HTML particle doesn't render #3166

Closed
sju10544 opened this issue Jul 18, 2023 · 1 comment
Closed

Custom HTML particle doesn't render #3166

sju10544 opened this issue Jul 18, 2023 · 1 comment

Comments

@sju10544
Copy link

I'm trying to add this code:

$option = JFactory::getApplication()->input->getCmd('option'); $view = JFactory::getApplication()->input->getCmd('view'); if ($option == 'com\_content' && $view == 'category') { \<jdoc:include type="modules" name="showcase" /> }

translated in twig language:

{% set option = gantry.request.get('option') %}
{% set view = gantry.request.get('view') %}
{% if option == 'com_content' and view == 'category' %}
    {{ gantry.platform.displayModule('showcase') }}
{% endif %}

into a custom HTML particle in my layout template.

Unfortunately this statement is not working. It seems, that the system doesn't render this command. Any ideas why?

@sju10544
Copy link
Author

Unfortunately nos response so I closed this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant