-
Posts
212 -
Joined
-
Last visited
Community Answers
-
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!
-
Manaus's post in Rendering child templates in parent was marked as the answer
Got it, it was echo $page->render()
-
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...
-
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... !
-
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...
-
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");