Jump to content

Manaus

Members
  • Posts

    209
  • Joined

  • Last visited

Community Answers

  1. Manaus's post in Displaying relevant fragments of text in search results was marked as the answer   
    I think I got it
    http://stackoverflow.com/questions/9373023/how-can-i-get-a-summary-string-around-a-search-query-within-a-longer-string
    Thanks!
  2. Manaus's post in Rendering child templates in parent was marked as the answer   
    Got it, it was echo $page->render()
  3. Manaus's post in Accessing one of the images in image field was marked as the answer   
    Managed to do this
    $pages->get(1)->get("image")->get("name=myotherlogo.png")->url and even
    $pages->get(1)->image->get("name=myotherlogo.png")->url I guess it's the shortest version...
  4. Manaus's post in no ajax response $input was marked as the answer   
    Thanks Jan,
    sort of figured it out: instead of using $http.post('url', data) I used a config object:
    var config = { method: 'POST', url: '/ajaxprocessingpage/', data: $.param({dati: jsobject}), headers: {'Content-type': 'application/x-www-form-urlencoded'} } $http(config) .then()... In this case, It is accessed on the ajaxProcessingPage as an array using $input->post->dati
    So complicated... !
  5. Manaus's post in Get the bunch of pages and children in one move was marked as the answer   
    Ok got it, foreach page { if it has children print children } and so on...
  6. Manaus's post in Selecting pages where assigned user = was marked as the answer   
    That was easier than imagined:
    $progetti = $pages->find("parent=$parent, user=$user->id");
×
×
  • Create New...