mr-fan

Members
  • Content count

    766
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by mr-fan

  1. you can simple use things like $posts = $pages->find("template=blog-entry, categorySelect=$category, limit=10"); or your example with count() to be more efficient on big datasets... http://cheatsheet.processwire.com/selectors/built-in-page-selector-properties/limit-n/
  2. Like title says i've some domains with umlauts öäüß and i'd like to redirect them to the non umlaut version example: http://my-domän.de to http://my-domaein.de i've somethings like this in my htacess: ##redirect umlautdomain (not my domain) RewriteCond %{HTTP_HOST} ^xn--mhldorf-nsb.d$ [NC] RewriteRule ^(.*)$ http://muehldorf.de//$1 [R=301,L] in my config.php i only have muehldorf.de in my hosts list... is there something that i've misunderstood? so far it doesn't work....but may the htaccess rules take some time to exicute...i tried since about an hour some different rules. regards mr-fan
  3. Just working on some smaller projects and take the step into the actual master/dev version and all the new methods and api chunks that are coming with the 3.x series... since i'm not always build websites i'm not always go with the brand new things and put them in my workflow....there is a 24 per day timelimit i think...;) BUT actual i dive deep in markup regions....and holy shit this feature ROCKS! It should put in place better than in some blogposts: http://processwire.com/blog/posts/processwire-3.0.49-introduces-a-new-template-file-strategy/ http://processwire.com/blog/posts/processwire-3.0.62-and-more-on-markup-regions/ or can some admins make a headline in the official docs and link to the blogentries?? This feature is to important to get missed for beginners and other users of PW! I'm just kick my whole workflow and change it for the markup regions....i'm feeling like xmas in summer Thank you @ryan Best regards and happy "new" year....
  4. Thank you for this great module and for fixing so fast...often when it come to the javascript debuging i'm a little lost...;) best regards mr-fan
  5. just tested with 3.0.65 and it seems that the pagelink field is not working? Best regards mr-fan
  6. Ok great that it works for you....a more complex solution with a hook on saveReady if SEO fields are empty put some own magic in there....if tey not empty do nothing... functions that i use: the hook itself works in admin.php under site/templates/: As always it is not the best PHP code since im no professional....but it works for me....if i somedays get some time i could add something like that with optionfields to the module itself. Best regards mr-fan
  7. Just fast from mobile.... You have to use a hook on pagesave and check the SEO fields there....I ve some functions for creating keywords and description from some given fields... May tomorow I can post an example...
  8. No PW plugin there...but some frontendstuff that could may be usefull: http://www.ajax-zoom.com/index.php?cid=examples&lang=en https://codecanyon.net/item/expo360-360-product-viewer/2531771?s_rank=7 I doubt that there we be an opensource solution for such a complex ajax thingi that is mostly used in $hops there will be money to pay... Best regards mr-fan
  9. A addtitonal approach would be js....in combination with AdminCustomFiles module. https://modules.processwire.com/modules/admin-custom-files/ i use this to change the href of the view button where i've events that their single template creates an .ics file output and the editor only should visit/see the overviewpage....here is my example. like in the module described a file called ProcessPageEdit.js under /templates/AdminCustomFiles/ folder: //used in a PW 2.7.x installation! //change the /events/ links in backend page edit for preview the events page not the .ics file! $(document).ready(function() { $("a#_ProcessPageEditView[href*=events]").addClass('found').attr("href", "/events/"); }); but the hook methode direct via PHP is the better way on more complex url creating....just mentioned my workaround
  10. No problem - like almost all things in processwire this could be set totaly free to your needs!
  11. Take a look: best regards mr-fan
  12. if you dive deepinto URL segments you will feel some "ProcessWires", too It's just to build the urls/structur that you need independently from your content storage in page tree...this is very scalable since you can optimize your pagetree (for editors, contenttype, datastructure) and the frontend presentation seperately.
  13. Well it is more a example of finding the right model to store things....if you would have 30 departments you would possible choose methode 2 or 3 for storing this kind of things...but the first model describes the most simpel way to store 1:1 connections - one member : one department.... Another thing that is here important this models are all show the usage of the pagetree in ProcessWire so a editor with a "small" company with "normal" amounth of departments could easy and fast manage his content....and we could fast get the data on frontend. On the Template side of life there you could read again on this from kongondo: These are just the basic examples for beginners - if you manage complex data and complex editing you could or better will use of ListerPro or even a own admin dashboard, hinding content from the pagetree that confuse the editors and make other strange but always possible things for managing complex content and at the same time give your users a good ui for editing this content. regards mr-fan
  14. Many new things are hidden in blogposts...like $urls for example is not in the API Reference....or just i did not find it. no problem for me since i like finding treasures and loot on the way - but just wanna mention it. Is there a chance to get involved or people could help extracting important bits from blogposts to the docs?
  15. https://processwire.com/docs/tutorials/but-what-if-i-dont-know-how-to-code/part-1-pages-templates-fields-files/page2 you could use a template without a file...just as kind of datacontainer....and collect/view/edit this data in a other template/file like /doodle1/ shows all data from its childpages/entries... templates without files are not visible in the frontend, but you could use the API to get them where you wanna show them...;)
  16. like @LostKobrakai wrote are url segments for the whole store your weapon of choice... if you could live with http://www.example.com/store/username/ and then /username/chart/....and so on you could all serve it from the /store/ template as routing to the needed data and users...
  17. Url can stay clean... ---doodles -----doodle1 (visible template that collects the entries for the doodle/poll ->url) --------entry1 (hidden page or no template - just a datacontainer with all fields you need) --------entry2 .... no changes everyone can reach a doddle via one link your-site.com/doddles/doddle1/ where you can show the existing entries and put a form for new ones... regards mr-fan
  18. ...a "members" module is a bunch of possible features that someone could imagine or thinking that this features are part of such a typ of module... so costs are really wide rage for the punchline "members module"... Pay a module is everytime needed when someone really could save time of development. I think if you've a basic feature list - there would be a price that someone is willing to pay and save time! I would for shure - for now using frontenduser module and some own scripts but i would prefer shared and supported module to own construstions on securtiy parts of a project... Edit: (or you talking only about the message system...? Such a system is only a own dashboard page with some scripting and two templates for the data under a hidden admin page...for this special case i think the more experienced devs are building their own system very fast) regards mr-fan
  19. For the data of a chart you could use repeaters....or pages (repeaters use pages in the background) - this could be interesting since there are modules for pages to import csv to pages and some tool that are provided via the module BatchChildEditor. But there are two options for table data available, too. and for sure the pro module table: https://processwire.com/api/modules/profields/table/ On the frontend you have the free choice on what you whant - for example you could use http://www.chartjs.org/. regards mr-fan
  20. Would be a task for You can save the data in that field and create one page per doodle/poll so you have a clean pagetree. ---doodles -----doodle1 (Matrix field with users and 3 columns for your entries, maybe some additional fields for title, descriptions and everything else) -----doodle2 ... regards mr-fan
  21. http://lmgtfy.com/?q=processwire+message+system the first hit is this thread....with thoughts, examples and solutions....;) Regards mr-fan
  22. Please have a good read on this topic, too.... http://ohmspeaker.com/speaker-filter/?length=27 seems matching your needs a little bit, too. regards mr-fan