0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

SOLVED Select language show module (grav)

    • Valerii's Avatar
    • Valerii
    • Newbie
    • Posts: 3
    • Thanks: 0

    SOLVED Select language show module (grav)

    Posted 7 years 10 months ago
    • ==== twig ====
      
      {% extends '@nucleus/partials/particle.html.twig' %}
      
      {% block particle %} {#
      
      	{% set exit = false %}
      	{% set languages = particle.language|split(',') %}
      
      	{% for language in languages if not exit %}
      		{% if grav.language.getActive == language or language == 'all' %} {% set exit = true %}
      			{# content #}
      			<h2>Language: {{ grav.language.getActive }}</h2>
      		{% endif %}
      	{% endfor %}
      
      {% endblock %}
      


      === yaml ===
      
      language:
        #type: select.select # =grav=
        type: input.multicheckbox # =gantry5=
        label: Language Open
        size: medium
        classes: fancy
        #multiple: true # =grav 1.1=
        help: Language
        data-options@: 'Grav\Plugin\Admin\Admin::siteLanguages'
        default: all
        options:
      	all: All
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Select language show module (grav)

    Posted 7 years 10 months ago
    • I am not sure why you posted this in "member showcase" (which is for showing sites built with RT products). or what it is. But I also note that you have no "GRAV" subscription membership here on RT either (which is why you can't see the GRAV forums). So it may be better if you posted this on the GRAV site in the forum there.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Valerii's Avatar
    • Valerii
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: SOLVED Select language show module (grav)

    Posted 7 years 10 months ago
    • 1. To move to Grav forum
      or
      2. To give me the membership Grav
      ^_^
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Select language show module (grav)

    Posted 7 years 10 months ago
    • If I move to GRAV forum you will no longer be able to see it or modify it with your current subscription. If you want a GRAV subscription then you have to purchase a subscription (whichever one you want).

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Valerii's Avatar
    • Valerii
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: SOLVED Select language show module (grav)

    Posted 7 years 10 months ago
    • MrT wrote:
      If I move to GRAV forum you will no longer be able to see it or modify it with your current subscription.

      Regards, Mark.
      Ok no problem.
    • Last Edit: 7 years 10 months ago by Valerii.

Time to create page: 0.068 seconds