Skip to content
Grav 2.0 is officially stable. Read the announcement →

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Trying to build a plugin for database communication through php · 10 years ago

    In my website I need to get data from database for display. Earlier I had an ajax call for that, but now it's giving 403 permission error (due to .htaccess). From a discussion I found that I would nee

  • Forms: Can redirect be dynamic depending on user's selection in form? · 10 years ago

    Hi, I ended so far with an ugly head override and injection of some javascript in the display page to do the redirection. It works but I'm not really proud of this ;-) {% block head %} {{ parent() }}

  • Forms: Can redirect be dynamic depending on user's selection in form? · 10 years ago

    No, Twig is not processed currently in the redirect destination. Maybe the easy way to do this is to add a redirect in the display page with {{ redirect_me() }} but it's only available in the current

  • Forms: Can redirect be dynamic depending on user's selection in form? · 10 years ago

    Hi, Depending on visitor's choice in a select list in a form, I would like to redirect to the page defined in the select list. Can we do it at the process step or should I do it more informdata.html.t

  • Bug of site variable · 10 years ago

    Your data is not structured correctly for that loop. You'd need something like: social: - url: URL1 icon: ICON1 - url: URL2 icon: ICON2

  • Bug of site variable · 10 years ago

    I have a code like this --- html {% for item in site.social %} <li> <a href="{{ item.url }}"><i class="fa fa-{{ item.icon }}"></i> </a> </li> {% endfor %} and in si

  • How to change language slug when changing language? · 10 years ago

    Btw, the langswitcher uses the 'raw route' and not slugs for each language. This is because Grav does not actually know about the other language pages. It only knows about the current language and th

  • How to change language slug when changing language? · 10 years ago

    This looks more a problem in how the LangSwitcher plugin builds the page URLs. It should find the correct slug of every folder level (not just the last one, the actual page, but also the parents). In

  • How to change language slug when changing language? · 10 years ago

    Ok, it seems that slugs are working fine. Problem is only relevant when changing a language while on a single post page. Anyone knows if it's possible to get a ling to specific language's slug url for

  • How to change language slug when changing language? · 10 years ago

    Hey guys, thanks for your answers. I actually had the same approach as @tidivoit posted above. From what I understand, having properly localised URLs would be better for SEO. But for now it seems Grav