Jump to content

Ivan Gretsky

Members
  • Posts

    1,409
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Ivan Gretsky

  1. I can even fetch the best results for you: me and Google are your friends! https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ https://processwire.com/talk/topic/407-processing-contact-forms/ https://processwire.com/talk/topic/4998-i-need-only-a-contact-form/
  2. I do not know if it is an easter egg or our competitors intrigues, but when i write f-a-s-t a-n-d f-u-r-i-o-u-s without the hythens in personal manager, I get "Drupal and Joomla"))))))) Here too! What should I write to get "ProcessWire"? Maybe "Bigger, Faster, Stronger, Easier"?? Or "Faster and more furious"?.. Didn't work .
  3. Here in Russia the New Year's eve is much greater deal than Christmass. I know it is not the case at least in USA, probably in Europe too, but still want to congratulate all you PW community all around the world! This was my first year with ProcessWire. I want to say that this CMS and the best ever community around it was probably the one most significant thing I discovered for myself this year The recently published roadmap and the enthusiasm of the community members make me sure next year will be even more exciting. Thank you Ryan and PW addicts all around the world. Happy New Year! P.S. We got some really nice almost -20 C New Year weather. Wonder how is it now where you at))
  4. Cool! This has been waited for a long time! My limited anglo-suomi language skills do not allow me to fully recognize the meaning of the brand "Padloper". What does this mean?
  5. С рождеством! Merry Christmass! In Russia we celebrate it only on 7th of january as orthodox church still uses Julian calendar. But it is just a nice way to celebrate twice))
  6. Finally got a chance to use this module. Thank you apeisa! I installed it on current stable (2.5.3) and tested probably every function. I can state it is compatible with PW 2.5. If someone else could confirm that, maybe it can be stated on module page, so people would not be scared off by compatibility problems. @Mike Anthony: Patiently waiting for your new module. I was impressed by your Bolt redirect module satated functionality! When finished, your PW module should get almoast all use cases covered.
  7. I just thought that this ozwim's new module could be of great use here. I swear I saw somewhere it can cope with csv or xml as well as yaml. So it would be quite easy to copypaste formatted csv data in the textfield for the quotes. I have used similar solution on Joomla once. The input could be much more convinient this way. @kathep: I suggest you go the way so thoroughly described by horst as it is much more "mainstream" and usefull for learning to deal with PW in general. If you got a lot of quotes, check out this csv import module.
  8. 1) I think using pages will be the best decision. 2) I would propose to use page field to relate quotes to categories. 3) You can use this to get a random page.
  9. My function is totally useless. This is the decision I was looking for. Have not done my homework. I never found $page->find() - probably confused it with $pages->find() every time visiting the cheatsheet. I think has_parent selector, which I was deliberately looking for so many times with no success, can also do the job. I need stronger glasses.
  10. Yes, I took part in that conversation too. But it seems to me that the way it was supposed to work is to autogenerate name for a page on a pattern at creation time but not from the title. As there is no title on creation yet we could: either generate name from parent fields, dates, custon text + numbers, or apply the pattern on the first save (but not generate the title field by that pattern). If using your solution we have to: either not use title field for output as you probably would not want to use something like "prefix Wednezday...", or save the page to generate name field value and then change the title once again. I could misunderstand you as I did not apply you patch to the core.
  11. Looks great. But It seemed to me that "Name format for children" option should define name of the page, not title. On the screenshot it is title that gets generated.
  12. Joomla just recently changed their release strategy. I never heard we at PW have one )) I think we're mature enough to think about it. It seems a little strange to just freeze a version not providing any bug fixes in stable branch. Of course, it is strange only if you don't know how many people named Ryan from Atlanta are working on it . Anyway, clear release strategy is a must have to grow and to possibly involve more people in the development/bug fixing. Not sure what comes first though: strategy or more people .
  13. I think Manaus is talking about "Name format for children" option under Family tab of the template when only 1 template for children is allowed. Availiable options are described here. But me too would want them to be more rich, maybe something like in this Adrian's module. Edit: Checked it out and did not find a way to combine date and title (with or without custom text in between). If anything but "PHP date format" is in the field we get what Manaus showed in his post: something like 15313431mondayeurope-moscow.
  14. Was about to try XCloner as I know it back from Joomla times and found this vulnerability report, which seems to be not answered in any way by the XCloner team. Searched exploit-db.com for Akeeba and found just one which seems to be not so important one. Actually I would like to use some free script, but that the way it.is. By the way there are no entries about "processwire" there.
  15. Good day! There was much talk about translatng PW recently. So this idea, if realised, probably could serve many... Translation is best done in context. So you can see on what page and doing what the user sees the string to be translated. One way I can think of in-context translation is allowing a translater to translate a string while browsing admin interface. A module I want to request should add markup to all translationable strings which will somehow highlight them when it is turned on. It should also be possible to (right?)click on that string and be linked to language translator page with corresponding file opened. What do you think about it?
  16. Looking really nice. And the "powered by processwire" logo in the footer only makes it better)) Formbuilder forms could benefit from some styling, but they are not so easy to customize.
  17. @Soma: My function returns all pages under a page, not only grandchildren. Is there a way to achieve this by selectors only? @Kay Lohn: You should call the function with both parameters, of course: $children = getAllDescendants($pages->get('/events/'), false)->find("template=photo_page_template, parent=/events/, include=all, is_featured=1, sort=-date, limit=3"); $prependRoot determins whether the root page will be included in the PageArray returned by the function. Should have put a default value for it anyway. My fault.
  18. This code <?php foreach ($pages->find("template=photo_page_template, parent=/events/, include=all, is_featured=1, sort=-date, limit=3") as $child) { ?> will not work - it will only give you the direct children of /events/. The whole topic is about how to get all subchildren and/or only grandchildren, so read above )) If you incorporate my little function, you could do what you intend like this: <?php $listingPages = getAllDescendants($pages->get(/events/))->find("template=photo_page_template, parent=/events/, include=all, is_featured=1, sort=-date, limit=3"); foreach($listingPages as $listingItem) { ... }; ?> This way you only get featured photoes from under just the selected parent. You could just place the function in the template file before the actuall call to it. To have it to my disposal at any template I put it in _functions.php, which could be prepended to every template file by putting this line in the site/config.php file of your installation: $config->prependTemplateFile = './includes/_functions.php'; where "/includes/_functions.php" is the path to the file relative to templates directory.
  19. Could it be something with the system requirements not met? Check 'em out.
  20. The problem seems to be solved. As I did not localize it accurately enough in the first place, I cannot be 100% sure, but it seem to work alright now. Thank you, Adrian. Will report back if something goes wrong.
  21. ...and just to contribute to the original topic. I use this function to get all subpages of a page: function getAllDescendants ($root, $prependRoot) { $descentants = new PageArray(); foreach ($root->children() as $child) { $descentants->add($child); if ($child->numChildren()) { $descentants->add(getAllDescendants($child)); } } if ($prependRoot) $descentants->prepend($root); return $descentants; } I include this function in _functions.php file which prepends every template file and use it like this: <?php $listingPages = getAllDescendants($pages->get('some selector'))->find("some selector"); foreach($listingPages as $listingItem) { ... }; ?>
  22. @Kay Lohn: Your "...limit=3" selector fires several times - as many, as there are children under "Projects". And each time it limits maximum number of featured photoes under that category. So you can output a maximum of (3 x NumberOfProjectsChildrenPages) featured photo pages. As Macrura suggested there are better/simplier ways to do what you intend to, like: <?php foreach ($pages->find("template=photo_page_template, include=hidden, sort=-date, limit=3")) { ?> <a href="<?php echo $child->link_to_page->url; ?>"> <img src="<?php echo $child->my_image->url; ?>" alt="<?php echo $child->image_desc; ?>"/> </a> <?php }; ?> Where photo_page_template is the template of you photo pages.
  23. Good day, Adrian! I believe I found a bug in the module. Once again it is probably encoding related (you're becoming true authority on that, like it or not ). If "Rename on Save" option is checked and you have some images in RTE field, non-latin characters get screwed up on save. Like this: Most likely none-RTE fields and RTE fields without images are not affected.
  24. There is a list of 3rd party modules on Mobile-Detect github repo page. It can be beneficial both for PW in common and the module to include the latter in that list. @justb3a: If you feel like the module is mature enough please consider submitting it there.
  25. Yes, but I do not know how to insert a tab with classified items and a button in the first place )) Could you help on this too?
×
×
  • Create New...