code: def get_page_object_by_name(context, name):
      
      selected_object = None
  
      try:
          for obj_type in context['page']['content']:
              for obj in context['page']['content'][obj_type]:
                  if obj.name == name:
                      selected_object = obj
                      break
          if selected_object is None:
              for obj_type in context['page']['content']:
                  for obj in context['page']['ext_content'][obj_type]:
                      if obj.name == name:
                          selected_object = obj
                          break
      except TypeError:
          pass
      return selected_object
docs: **Arguments**
  
      ``name`
          name for object selection
  
      :return selected object