Module: Scrivito::Associations

Included in:
BasicObj
Defined in:
app/cms/scrivito/associations.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

Searches for CMS objects containing one or more attributes linking to this CMS object.

So the search returns the CMS objects in which at least one html, link, linklist, reference or referencelist attribute links to this CMS object.

Attributes inside Widgets are considered, too.


14
15
16
# File 'app/cms/scrivito/associations.rb', line 14

def backlinks
  Obj.where(:*, :links_to, self)
end