Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Looking nice Nikola!
  2. Depending on the amount of tags involved, you might want to use a "limit" in your selector. Hey, this is a school project so might as well show them best practise...
  3. Slice is right here: http://processwire.com/api/arrays/ and here http://cheatsheet.processwire.com/
  4. @chrizz - Not sure if I follow but we have pagination here: http://processwire.com/api/modules/markup-pager-nav/ and offset = start (http://processwire.com/api/selectors/#limit)
  5. If I was going for something that would scale nicely, I'd go for the page reference field...Repeaters have their limits
  6. Of course.....that's why it is a soft launch...as Ryan sorts out stuff like writing the change log...that's one massive task!
  7. Probably an xdebug error....? http://processwire.com/talk/topic/339-urgent-matter-fatal-error-maximum-function-nesting-level-of-100-reached/ http://processwire.com/talk/topic/4031-maximum-nesting-level-reached-at-each-edit-in-backend/ Also: Google - Error: Maximum function nesting level of '100' reached site:processwire.com for other similar threads...
  8. Welcome Xpn (cool name, btw!)...since you mentioned the "m" word, this thread might be of interest in case u missed it..
  9. OK, I would recommend that you first learn the basics of PW (http://processwire.com/api/) and some PHP, if you haven't already. Otherwise, it will be difficult for you to follow any threads I point you to, for instance the below. One good way to learn PW is to go through the "Small Project Walkthrough" tutorial in the Wiki, creating a simple site. PW has nothing to do with the size of upload files. That is something you set in your server environment, in your php.ini. Google "php maximum upload size" and have a read. Also, have a look at these discussions (Google upload site:processwire.com) as well as this topic: http://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/
  10. +1 for #2 Edit: Should have been clearer. I like the structure...but yes, I agree with Teppo below, it is a bit pale. Hence, why I preferred the original #2 with the darker sidebar
  11. Nice 3rd post! I prefer the 2nd one. The first one's left sidebar is too wide for my liking...Good job. Looking forward to how your progress these.
  12. Klauss, I believe you meant wetransfer? The bulk file sending service? I agree with Ryan, more info is needed before you can get helpful answers. Just broadly, you are looking to do two things - upload files and notify users. ProcessWire can do both. Google this forum (e.g. "upload" and "email notification") and you'll find multiple hits. Beyond this, we don't know the technical details about your app to give you more specific responses. Secondly, how comfortable are you with PHP and ProcessWire API? These will determine how much effort you will need to achieve what you want.
  13. Thanks Teppo! That was it. I was committing the cardinal sin - echoing $out in the method instead of returning it! (grrr!). It works as intended. That markup is output in the right place. Thanks for answering the other question too! For some reason, I didn't realise I could render an InputfieldWrapper like that. I don't know where I got the the idea that an InputfieldWrapper always goes with a form! , i.e, that I would have to do something like $form->add($wrapper) ; in the end before returning the form. Hence my original question; I didn't need form markup and was wondering how to avoid it. Cheers. Edit: I can't find the "solved/best answer button"...
  14. Hi all, Let's say I want a landing page for a process module. If I wanted a form on the landing page - InputfieldForm comes to mind If I wanted a table - MarkupAdminDataTable However, on that page, I don't want a form nor a table. I just want my plain HTML to be rendered. I have no need for Inputfields on this page. Next, I look at InputfieldWrapper - But the docs say: Not my intended question, but I don't get this bit "but you can set a value...". How? I tried different stuff without success. Final up (to the best of my knowledge) is InputfieldMarkup. This code does work: $test = $this->modules->get('InputfieldMarkup'); $test->value = "<p>My test HTML output</p>"; //return $test->renderValue();//doesn't work. Markup not output return $test->render();//works fine I get my HTML output in the right place in my module landing page in the PW Admin without any extraneous markup. <div id="content" class="content"> <div class="container"> <p>My test HTML output</p> </div> </div> <!--/#content--> But is this the way to go? The name of the class sort of suggests that it should be used with Inputfields. If I try to add my HTML independent of these methods, the markup is not output in the right place in my module landing page in the PW admin, i.e. between the <div class="container"></div>. It will be thrown to the top of the page, somewhere weird like before the <body> tag. So, am I on the right track here or there is a "more appropriate" way? By the way, I tried to use renderValue() but it doesn't output anything? What's the use case for this method? The docs say: I have studied some other modules but have not seen something similar to this sort of landing page. Thanks.
  15. Thanks Ryan! Going straight into a Gist this one, thanks!
  16. Is this thread helpful? http://processwire.com/talk/topic/5417-using-git-with-a-cms-for-version-control-and-deployment-on-multiple-machines/
  17. Logging in with email address has bee asked before (I think more than once?) and was not granted...can't find the topic now but it was mindplay. Ryan suggested to use a module instead. Mindplay ended up creating a module to do this...I'll search and post here if I find the thread..This is about ADMIN LOGIN. If you are talking frontend, please ignore me ;-) http://processwire.com/talk/topic/1838-login-using-e-mail-rather-than-username-and-general-login-issues/ Related: http://processwire.com/talk/topic/4552-user-names/ Edit: added link to thread + related stuff...
  18. This is super cool!
  19. Hi arpeekay, Welcome to ProcessWire and the forums... Yes, you are right. PW uses "," [i.e. a comma] as AND. The pipe symbol | is used just like in normal PHP "OR". http://processwire.com/api/selectors/#or-selectors1 - OR http://processwire.com/api/selectors/#and-selectors - AND But maybe there is a prettier way of writing those long AND conditions? - just wondering....
  20. Glad you sorted it. One thing I love about PHP is that it gives you very useful, meaningful feedback/error messages...unlike Windows which would say something along the lines "Something went wrong...and we've had to shut down the system" - bang BSOD!...I digress; I love my W7....
  21. Like Soma says and I alluded to earlier. Check your /sites/modules folder... if you have a file called MarkupSitemapXML.module inside this file you must also have class MarkupSitemapXML extends..... if you have a file called MyMarkupSitemapXML.module inside this file you must also have class MyMarkupSitemapXML extends.... In other words, the class and module name should match..... Edit: Btw, You would also have to rename related .css and .js files if you want them to be loaded with the module. Edit2: Was a bit misleading; edited for clarity.
  22. A error message about a class being redeclared means that you have, in this case, two modules with the SAME CLASS name running. Renaming the module alone won't do the trick. You need to open the .module file and rename the class there, e..g MyCustomMarkupSitemapXML. A .module file is just a php file.
  23. Soma, will you be updating to 1.10. any time soon? I know it is in beta and may break some things but there are some very nice changes. I also like their new website btw.
  24. kongondo

    1800 Members!

    Yeah, Congrats! Have seen quite a few new members recently. Would love to hear their stories how they found PW Recent contest? Welcome all!
  25. EDIT Again - I just read that tutorial you pointed to and I see if uses: public function __construct() to set the default values. I haven't used that before. I guess I started by copying from other modules and never came across that approach. I guess there are a few different options, but construct does seem cleaner. @Adrian: Yes you are right, it does. Btw, all the modules I pointed to also use the __construct() method. Wanze explains it well above why this is important. Thanks Wanze! Thanks Adrian for the write-up! I have edited my first post with the names of the methods/properties. My links kept being mangled up and anyway, when code is updated, they may move lines ...
×
×
  • Create New...