0
Welcome Guest! Login
0 items Join Now

SOLVED Select language show module (grav)

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

    SOLVED Select language show module (grav)

    Posted 1 year 3 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: 78565
    • Thanks: 9745
    • Web Designer/Developer

    Re: SOLVED Select language show module (grav)

    Posted 1 year 3 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 1 year 3 months ago
    • 1. To move to Grav forum
      or
      2. To give me the membership Grav
      ^_^
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 78565
    • Thanks: 9745
    • Web Designer/Developer

    Re: SOLVED Select language show module (grav)

    Posted 1 year 3 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 1 year 3 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: 1 year 3 months ago by Valerii.

Time to create page: 0.166 seconds