Jump to content

Search the Community

Showing results for tags 'angular'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. Hello everybody, I consider myself less than a newbie, I have entered in processwire world after a recommendation and instantly I liked it very much specially the way to to add information to the web and get easily pages from a dataset. Before, I had to add every page, every link manually. I do not know almost anything of programming, I took an existing webpage, from an informatics course, and I am adapting it to my interests (you can visit it at http://www.bpod.cat). I know that it has something wrong because it is not as fast as I like but this is not the main problem now. The problem is that I would like to filter the files by date. Every day has a new file and may sometimes we add files previous to the present day. I would like that the system could filter files by date and showed, automatically, only files from present day to the past. The script I use is: <script> app.controller('FotosCtrl',function($scope,$http,pw){ $scope.busca = function(){ pw.busca('template=foto, title|comentari~='+$scope.termino).then(function(data){ console.log("ENCONTRADOS",data); $scope.encontrados=data; $scope.termino=''; }); } $scope.buscaFotos= function(fotos){ pw.busca(fotos).then(function(data){ $scope.encontrados=data; console.log("todos",data) }); } $scope.buscaFotos('template=foto,sort=-any, sort=-mes, limit=1, sort=-ordre, '); $scope.page=<?php echo $page->toJSON() ?>; console.log("PAGINA", $scope.page); }); </script> And then, for instance, to select some files I use this sentence: <a href ng-click="buscaFotos('template=foto,any=2017,mes=01,sort=ordre')">Gener</a> But, I can't filter the files automatically by date (to show only present day and before). I have searched in this forum some questions about date filtering and I do not know how to introduce the changes or have use it wrongly. Addtionally, I have introduced some date fields, one without data (date) (to be always present day) and other with the proper day (datefixa) but I also do not know how to comparare each other to get a valid result. I hope this question it is not out of range and someone could help me. Have a nice day. Xavier
  2. Hi Folks, I am currently building an angular app for creating and displaying polls/surveys: http://embed.plnkr.co/seQfprxQRvjg84bvi2Dy/ The data that needs to be stored in PW comes from JSON and looks like { "title": "My Survey", "questions": [ { "id": 1, "title": "First Question", "answers": [ { "id": 1, "title": "Answer 1" }, { "id": 2, "title": "Answer 2" } ] } ], "file": { "$ngfName": "long-beach-koh-payam.jpg", "$ngfOrigSize": 351901, "$ngfBlobUrl": "blob:http://localhost:8000/8b87de97-549a-4900-8579-71a0d87a9258" } } Now I need to decide how to best store that data with PW. I am also using Angular to build the forms where users can submit the poll from the JSON that is produced by the survey builder. So I would like to create 1 page per poll. The template holds title field, an image file field and one field that stores the data as JSON string. To me this seems an easier approach than having child pages for each question in the poll and again child pages for each answer to a question. Do you see any disadvantages that this approach might bring? And which field type should I use to store the JSON string, textarea?
  3. Hi, So I'm just getting started with using Processwire(PW) and I really like it so far. I've also recently started using AngularJS and loving it. Now i'm trying to setup angular routing to work with PW but not having much luck. I've google around etc and tried following the following post https://processwire.com/talk/topic/6281-angularjs-routing-with-processwire/?hl=%2Bangular+%2Brouting but still can't get it to work. I have a simple site setup for a portfolio, Home/About/Work/Contact I would love to have angular route all the other pages into the homepage. At the moment it just goes to the no-found url. If anyone could give me some tips that would be awesome.
  4. Hello, I'm trying to submit a form through AngularJs $http object, but I can't get any response. My post values are a json object: {"user":"johndoe", "email":"jd@..."} But in the receiving page, I'm using this code [at no avail]: var_dump($input->post) // WireInputData (size=0) echo $_SERVER['HTTP_X_REQUESTED_WITH'] // returns void echo 'hi' // works var_dump(json_decode($input->post, true)); // returns null echo $config->ajax; // no response Thanks for any help
×
×
  • Create New...