Jump to content

Manol

Members
  • Posts

    292
  • Joined

  • Last visited

Everything posted by Manol

  1. Hello Apeisa. How do you do the routing with angular, for example? angular.module('phonecat', []). config(['$routeProvider', function($routeProvider) { $routeProvider. when('/phones', {templateUrl: 'partials/phone-list.html', controller: PhoneListCtrl}). when('/phones/:phoneId', {templateUrl: 'partials/phone-detail.html', controller: PhoneDetailCtrl}). otherwise({redirectTo: '/phones'}); }]); with ng-view <html lang="en" ng-app="phonecat"> <head> ... <script src="lib/angular/angular.js"></script> <script src="js/app.js"></script> <script src="js/controllers.js"></script> </head> <body> <div ng-view></div> </body> </html>
  2. Can I get children of certain page giving the name of the page in the url somehow?
  3. Thank you hosrt and SiNNut, working with echo html_entity_decode($t, ENT_QUOTES, 'UTF-8');
  4. Text formatters are empty. I filled the textarea with the module import from CSV file. Here is an example of the output: <div><font face=Arial size=2 color=black>Set de <strong>4 disfraces</strong> (talla para 3-7 años) + <strong>CD AUDIO MP3</strong> con la grabación completa (música y voz) de <strong>un cuento en diferentes idiomas</strong> para su representación teatral. El <strong>CD MP3</strong> incluye <strong>libro de diálogos</strong> y <strong>guía pedagógica</strong>.</font></div>
  5. I have got same plain text with html tags in a textarea ( ex: <h1>hi there</h1> ), how can I echo it like hi there, now is echoing just <h1>hi there</h1>, thank you.
  6. Hello Wanze as Horst says, basically it mpdf seems to have the best suppot for html and css.
  7. it is working using ob_end_clean() that erase the output buffer and turn off output buffering ob_end_clean(); $mpdf = new mPDF(); $mpdf->WriteHTML('<p>Your first taste of creating PDF from HTML</p>'); $mpdf->Output(); exit;
  8. Hello. I have tried to use mpdf but I get an error. Here is waht I did: downloaded mpdf from here. uploaded to /templates/includes/MPDF57 given writing permission to /tmp/ and /graph_cache/ imported in the template <?php if(!$config->ajax) include("./includes/MPDF57/mpdf.php"); ?> addes the following very basic code: $mpdf = new mPDF(); $mpdf->WriteHTML('<p>Your first taste of creating PDF from HTML</p>'); $mpdf->Output(); exit; but when I trie to use it I get the message: Failed to load PDF document.
  9. Hello Wanze. mpdf seems to have same great features, could include it in your module?. Regards.
  10. Manol

    Vacation

    Ryan if you would ever come to Spain we got place four you four at home, Valencia.
  11. I'll take your advice and follow your approach Pete , hopefully in a couple days I can tell you my experience with that, thank you Pete and Horst.
  12. This web is for a college, so people are already registered in the intranet, they are allowed to do some tasks there. People that are already members of the college will have access to some parts of the web that regular visitors don't. The college doesn't want to have member information duplicated in the intranet and web at the same time. But maybe is not a bad idea to sync users between pw and the intranet, or even what you point here: - You may create only one real user in PW, e.g. called 'intranet', and if the intranet-script returns valid user, you load/select this dummy-user. The real username you can store in $session.
  13. Vielen Dank for the quick response Horst. The problem is that in that case I can't duplicate users they should exist just in the intranet and act as if they where in pw.
  14. Any idea where to start? A client has a database from a intranet with users and passwords, I have to create a webpage ( of course PW ), I have got a script that checks if the user is valid in the intranet how can I use those results in pw as if they where real users in processwire?
  15. Hello kongondo. I don't like it, I just LOVE it.
  16. Hello guys. Does anybody know if you can import data like this: "<strong>hello</hello>" using Impost Pages Form CSV module to a text area field type?? When I try I get that: Regards.
  17. download ISO image Raspberry pi, for people that doesn't know about this little computer that cost less than 50$ The image comes form a 2GB SD card ProcessWire Admin user: admin pass: process2013 Mysql Database dbName = 'process'; dbUser = 'process'; dbPass = 'processdb'; Raspberry admin and ftp user user: pi pass: raspberry you get processwire files under /home/pi/www
  18. I have done an iso for the raspberry pi with processwire installed with the basic profile, if anybody is interested in a copy just let me know.
  19. Hello. Has anybody used those two modules together?. I wish to import a csv file every lets say 24 hours, I would like to use Lazy Cron to do the task, but how can I tell Lazy Cron: to upload the csv file located in the assets folder to use certain template to indicate the parent page to modify the existing pages Thank you in advance for your help.
  20. Hello Wanze. My idea has already been discussed, but I think many people is still interested in that subject and I would like to take a different approach (I guess). The idea is to show only certain pages to some users in the admin area, because each page is created by a user I thought it could be a good idea (maybe not) to check and show only the pages that have been created by himself, which has permission to edit those pages. I user will see only pages created by himself in the admin area. Regards.
  21. I'll use that: $page->createdUser->name $page->editable()
  22. I was thinking about creating a module to hide pages to users in the admin area with certain role, based on Soma's HiddenAdminPages, how can I get: - an array of all admin pages with a role of for example "manager" that have "page-edit" access? Thank you.
  23. Of course sorry you're right.
  24. Thank you Macrura these are three good ideas. I've seen your form in ohmspeaker, it looks perfect, clean, usable, which aproach did you take?, 1.- custom code. 2.- copy formbuilder generated code. 3.- create own jquery-ui.js... (Note. I'm enjoying fengoffice, thanks for the advice)
  25. I know you have a lot of experience templating, but I use bootstrap templates so I know the pages will render on most browsers and phones without much effort. I got formbuilder but when I want certain output with my own classes names, spans, etc, I get lost, not able to do what I want; is because I think rendering my self will give me more flexibility. As an example the following page renders in mobile phones but I used formbuilder for the contact form and I can't get the results I want, if you see it on a desktop computer is ok but the columns in a mobile are to narrow, I attach a couple images for you to see the results. By the way formbuilder is an incredible useful tool.
×
×
  • Create New...