app/helpers/locomotive/pages_helper.rb
# Give the path to the template of the page for the main locale ONLY IF
# the user does not already edit the page in the main locale.
#
# @param [ Object ] page The page
#
# @return [ String ] The path or nil if the main locale is enabled
#
Give the path to the template of the page for the main locale ONLY IF
the user does not already edit the page in the main locale.
Give the path to the template of the page for the main locale ONLY IF the user does not already edit the page in the main locale .
def page_main_template_path(page)
      if not_the_default_current_locale?
        page_path(page, content_locale: current_site.default_locale, format: :json)
      else
        nil
      end
    end
def page_main_template_path ( page ) if not_the_default_current_locale? page_path ( page , content_locale : current_site . default_locale , format : :json ) else nil end end
Give the path to the template of the page for the main locale ONLY IF
the user does not already edit the page in the main locale.
Give the path to the template of the page for the main locale ONLY IF the user does not already edit the page in the main locale .
The path or nil if the main locale is enabled
The path or nil if the main locale is enabled
 String 
page
<not_specific>
<not_specific>
page The page
page The page