sitepress-server/rails/app/helpers/application_helper.rb
# Links to a Sitepress::Resource. If the link does not have a block, the `title`
# attribute from Resource#data is used to create the text link.
Links to a Sitepress::Resource. If the link does not have a block, the `title`
attribute from Resource#data is used to create the text link.
Links to a Sitepress :: Resource . If the link does not have a block the ` title ` attribute from Resource#data is used to create the text link .
def link_to_page(page, *args, title_key: DEFAULT_TITLE_KEY, **kwargs, &block)
    if block_given?
      link_to page.request_path, *args, **kwargs, &block
    else
      link_to page.data[DEFAULT_TITLE_KEY], page.request_path, *args, **kwargs
    end
  end
def link_to_page ( page , * args , title_key : DEFAULT_TITLE_KEY , ** kwargs , & block ) if block_given? link_to page . request_path , * args , ** kwargs , & block else link_to page . data [ DEFAULT_TITLE_KEY ] , page . request_path , * args , ** kwargs end end
Links to a Sitepress::Resource.
Links to a Sitepress :: Resource .
page
<not_specific>
args
<not_specific>
title_key
<not_specific>
kwargs
<not_specific>
block
<not_specific>