Page 1 of 1

what exactly is haswidgets and widgets in bolt (or twig)??

Posted: Thu Sep 15, 2016 8:05 am
by gautamz07
I was just going through the Default theme of bolt CMS, and i came actoss the following lines of code:

Code: Select all

    {% if haswidgets('aside_top') %}
    
            {{ widgets('aside_top') }}
    
     {% else %} 
I googled `twig haswidgets` and also `twig widgets` , but i could't find anything.

can somebody explain what these two methods are ? and what exactly do they do ?

Thank you.

Re: what exactly is haswidgets and widgets in bolt (or twig)

Posted: Thu Sep 15, 2016 8:27 am
by Celauran

Re: what exactly is haswidgets and widgets in bolt (or twig)

Posted: Thu Sep 15, 2016 8:57 am
by gautamz07
Thanks celauran ! : )