Jump to content

Manol

Members
  • Posts

    292
  • Joined

  • Last visited

Everything posted by Manol

  1. I'm using nikola's futura admin template, I love it although it drove me crazy, the save button at the bottom works as expected but the top right one doesn't let me save anything, it just refreshes the page without doing any changes.
  2. I can create new pages but can't publish them or, any ideas?
  3. Hello souls. Probably somebody has tried to install pw in amazon and has got headaches I as do at the moment. I have created a Elastic Beanstalk with its mysql db, uploaded processwire, followed all steps and voila, hervorragend, estupendo my webpage is working, so far so good. Poor me, my happiness gone away my nightmare has started, when I try to make any changes form the backend ( my joomlish background ) it seems ok, but once I press save, refresh the page and changes are taken by the wind, impossible to save to the db. I've read about IAM, security groups, bla bla bla but haven't found any solution. Magically I can upload pictures but unable to make changes to the db. Any help is welcome.
  4. Hello, How can I change that line: RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/templates($|/|/.*\.(php|html?|tpl|inc))$ [OR] to allow access to : myurl.com/site/templates/app
  5. The solution in the last post works on any browser but mobile ones, I've tried on android and iphone and couldn't get json data back from the server, in the end I had to install the web embedded on the same host, the one that proportionates the data and the one that consumes it. http://myurl.com gives de web-page service and I have installed http://myurl.com/site/templates/anotherweb to access data from mobiles browsers, if you don't need to access the page from mobile phones the solution up works on http://anyurl.com
  6. Hello guys, I have http://myurl.com with a pw installation ant it works perfectly. My question is how do I have to set .htaccess to allow http://myurl.com/anotherweb to load another web with some .html and .js without pw interfering on it? Probably an easy question for the ones that know how to set up .htaccess. SOLUTION: I found a way http://myurl.com/site/templates/anotherweb
  7. Maybe already asked, but I get this error using chrome-xampp, do you know how to fix it? I'm new to github and not sure how to get latest version of the template. thanks.
  8. In the end was an angularjs problem, two steps to solve it First: adding that piece of code to my .js angular.module('myApp') .config(function($httpProvider){ $httpProvider.defaults.useXDomain=true; delete $httpProvider.defaults.headers .common['X-Requested-With']; }); Second: adding what interrobang says to .htaccess # ------------------------------------------------------------------------------# | Cross-domain AJAX requests |# ------------------------------------------------------------------------------ # Enable cross-origin AJAX requests.# http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity# http://enable-cors.org/ <IfModule mod_headers.c>Header set Access-Control-Allow-Origin "*"</IfModule> Thanks to everybody.
  9. Thank you. When I make the call within the same host it works, but if I call the service from a different url it fails. Interesting Adrian's solution I'll give it a try and Alessio I don't know either if it's possible to set Access-Control-Allow-Origin: * to the Web Service, anyway is a starting point both ideas.
  10. I run into a problem, when I paste http://benipeixcar.indinet.es/service-pages/?parent=1013 I get json data from pages web service, but when I do it from a page generated with "yo angular" I get the following error, anybody with same or similar problem? OPTIONS http://benipeixcar.indinet.es/service-pages/?parent=1013 Origin http://127.0.0.1:9000 is not allowed by Access-Control-Allow-Origin. angular.js:9499 XMLHttpRequest cannot load http://benipeixcar.indinet.es/service-pages/?parent=1013. Origin http://127.0.0.1:9000 is not allowed by Access-Control-Allow-Origin.
  11. Hello Macrura. Certanly it will help, I'll give it a try tomorrow.
  12. Hello sshaw it does work well but because there are so many comments sometimes it's hard to find the right information, or these is scattered around.
  13. Nice advice to search with google for the general forum, you're not getting money with FB, but whenever you come to Spain for sure as many beers as you can drink.
  14. NOTE: I'm really sorry but sometimes is really hard to find the right information in the forum, I try hard to found it before making people losing time, and is not a complain at all, people here is in generaly very keen on helping others as I do when I have the knowledge. Special thanks to Soma, he really has helped me a lot and still does. Anyway, what I'm trying is to hook a formbuilder form embedded with option C, I would like to copy some files and data from the form to an external database and I need to hook the form after submit to get the results but I'm totally unable to do that, even the above code is not working for me, I thought I had understood how it works and even make a little resume to help others here but no way to do it after hours researching, I know I'm near the solution but no way to get it work. Any help is welcome.
  15. Hello Adrian. You're right I'm using formbuilder and including it with option C, do you know the difference? Thank you
  16. I´m trying the following in my template function hookEmail($event){ $file = $event->return; echo "value: ". $file->value; } $form = $forms->get("reconocimientos"); echo $form->render(); $form->get("reconocimientos")->addHookAfter("processInput", null, 'hookEmail'); but get this error Error: Call to a member function addHookAfter() on a non-object (line ...
  17. Anybody knows how to add a hook directly in the template or a link in this forum with some example? Thank you.
  18. I like admin default colours but totally agree that it has a boxy look when you get lots of inputFields. If the new theme solves that problem it would be a great enhancement.
  19. Is it possible to output my own markup in one single page, without changing the config.php file, in some cases I wish not to output the header, sidebar, etc.
  20. I tried Diodo's approach but in my case it doesn't work. I'm getting the correct data with angularjs $htttp.get, but now I get the right data plus the whole html, because I'm using the new foundation4 profile, which allways outputs header, navbar, rightbar and footer because of the config.php file. How can I get rid off this markup?
  21. How can I access Pages Web Service with jquery. I tried that: $.getJSON('http://someweb.es/service-pages/?title=toby', function(data) { alert(data); }); but becoming: function c©{t(c||{},this)}
  22. Any plans of getting it on the admin area?
  23. In the end I did it that way after reading Soma's post: app.js var app = angular.module('app', []); app.config(['$routeProvider', function($routeProvider) { $routeProvider. when('/clientes', {templateUrl: '/partials/clientes', controller: 'prueba'}). when('/mascotas', {templateUrl: '/partials/mascotas', controller: 'prueba'}); }]); app.controller('prueba', function ($scope) { $scope.model = { cliente: "John "}; }); /partials/ (partials.php) <?php switch ($input->urlSegment1) { case "clientes": include("./partials/clientes.php"); break; case "mascotas": include("./partials/mascotas.php"); break; default: break; } ?> and then a php file for each partial, so you can make use of ajax, and the power of processwire api. clientes.php <div>tu partial template {{model.cliente}}... </div> mascotas.php <?php echo $page->name; ?> <p>mascotas</p>
  24. Thank you so much computer Scholar.
  25. I think Apeisa faced the same problem in the past and when he is got the time he will give us a clue where to go.
×
×
  • Create New...