Method: Scrivito::Link#display_title

Defined in:
app/cms/scrivito/link.rb

#display_titleObject

Returns the title of this Link if it is set. If not, the display_title of the destination object is returned for internal links, or the url for external links.



139
140
141
142
143
144
# File 'app/cms/scrivito/link.rb', line 139

def display_title
  dt = title
  dt = obj.display_title if dt.blank? && !external?
  dt = url if dt.blank?
  dt
end