def get_links(self): base = self.get_canonical_path() site_root = self.get_site_root() available_languages = site_root.get_property('website_languages') links = Menu.get_links(self) handler = self.handler get_value = handler.get_record_value for record in handler.get_records_in_order(): for language in available_languages: html_content = get_value(record, 'html_content', language=language) if html_content is None: continue links.update(_get_links(base, html_content)) return links
def _is_allowed_to_access(self, context, uri): # Check if uri == '' to avoid reference with a path = '.' if uri == "": # Allow empty link for the Footer return True return Menu._is_allowed_to_access(self, context, uri)