-
Posts
848 -
Joined
-
Last visited
-
Days Won
4
Everything posted by mr-fan
-
there are two main concepts... all are pages == models, objects and so on fields are your data with a pagefield you could combine all together an get your 1:n n:1 1:1 connection of your models... have a read: http://processwire.com/videos/page-fieldtype/ next hint: you have 3 models like LostKobrakai wrote: messages (messagetext, pagefield for the thread, pagefield for the user_profile) --m1 --m2 --m3 threads (simple pagefield for the connection to the messages of one thread) -t1 -t2 -t3 -user_profiles (would make this maybe separate from the existing usersystem - depends on the other things on this site/app) -u1 (refer to the $user and pagefield with saves all his messages) -u2 there is a module that helps you to get information about the pagefield relations: http://modules.processwire.com/modules/page-references-tab/ if all is configured right you could use the PW API to get your data and save your data right how do you like. For Frontend or Bakendusage (there is a module for custom admin pages). best regards mr-fan
-
I'm on the last track for a "waldkindergarten" == kindergarten in the forrest without a warm and sheltered building....they almost in the nature... Small project with really great people that leads this institution - it's a limited budget so i simply worked with a themeforest template on this one that, where i only made some individual changes that fits to the project. Second it's a for a small saw mill with direct marketing to craftspeople and agriculture - will need some sort of productcatalog....i know i will love to craft one with PW the next few weeks! Third is a big sideproject for the NGO i'm working - it would be some kind of accounting settlement system for mobile/web devices to get from our clients/partners the data for intern invoices/accounting (we do such stuff as a service for our farmers - they work and do there business / we get the things sorted and do accounting). That "Kind of Tool" is a little bit tricky stuff (Clientsystem, a lot of handling CSV for export the data, import a lot of stuff from a local MSSQL db, handling the monitoring, deeper look for security and much more...) for me would be hard since i'm not a real coder - but with PW on my screen i've had the self-confidence to get on this topic. Then i need a rest the next month's for me personally, since this year i've an important date to leaf the single side of life ( ) so there is a lot to organize and plan beside my dailyjob and my other projects.....so i wish all a productive but almost a great time, too.
-
echo "<div class='row'>"; $suppliers = $pages->find("template=brfs-suppliers-detail"); foreach ($suppliers as $supplier) { echo " <div class=\"small-12 medium-6 large-4 columns partner-wrapper\" > <img src=\"{$supplier->supply_partner_logo->url} \" class=\"partner-thumb\" > {$supplier->title} </div> " ;} echo "</div>"; try this one edit: adrian beat me....
-
Really great work! I like your widget system - and i'm very excited for the first project i need such a setup! One Question for the help module - there is a help tab module from some with md files with the same name as the template....you did a other way...so i think you can manage the help content within the admin section? This would be interesting... Best regards mr-fan
- 15 replies
-
- responsive
- ajax
-
(and 2 more)
Tagged with:
-
Best practice for backend set up this type of home page
mr-fan replied to Alfred's topic in Getting Started
May you looking for something like this for advanced backend and some kind of widgets: a other run on the multiple layouts with the delayed output of templates.....i like it and use it on actual projects: https://processwire.com/talk/topic/8767-regarding-delayed-output/#entry84604 some kind of adminsetup for a widget system: https://processwire.com/talk/topic/8635-simple-example-for-widget-management/ regards mr-fan -
Great - if you like to share code or need advice/testing write a PM or post here. You are right my link/example only means the embedding/usage of the core Popup for editing - not the pagetree stuff.... Would be a pleasure to work together on this since i need a simliar function/thing (cal overview on events as pages) this year, too. It's not on my "burning" list - so i've not spend time on this topic....but i'm shure i could help a little. Best Regards (Martin) aka mr-fan
-
let's say yes we can recursive
-
You got the right CMS (==love) if you don't think/ask yourself "Is it(==he/she) may the right one?" anymore
-
Great to hear - please share your success - very interested in this topic. Indeed AdminCustomPages is very nice for own backend pages with some special features...may you setup the fc overview and get the editing link via the backend modal on the single events this should work like here (i used this for images and docs): <?php // Bilderübersicht Custom Admin Page ?> <style type="text/css" media="screen"> /** * larget magnific popup */ .mfp-iframe-holder .mfp-content { max-width: 1200px!important; } </style> <script type="text/javascript"> $(document).ajaxComplete(function() { //add trigger class and modal setup $('.PageListActionEdit a').each(function(){ $(this).addClass("lb-edit").attr("href",$(this).attr('href')+"&modal=1"); }); $('.PageListActionNew a').each(function(){ $(this).addClass("lb-edit").attr("href",$(this).attr('href')+"&modal=1"); }); //setup lightbox $('.lb-edit').magnificPopup({ type: 'iframe', disableOn: 0 }); }); </script> <?php //get Magnific css and js $this->modules->get('JqueryMagnific'); //render PageListtree with setting the parent page $formImages = $this->modules->get('InputfieldForm'); // prep the form $wrapperImages = new InputfieldWrapper; // a wrapper $wrapperImages->attr('value', '<h2>Bilder</h2>'); $i = $this->modules->get('ProcessPageList'); // get the pagelist process $i->set('id', 1015); // setting the parent page $pageTreeImages = new InputfieldMarkup; // the placeholder $pageTreeImages->value = $i->execute(); // fill the InputfieldMarkup form field... $wrapperImages->add($pageTreeImages); // put inside the wrapper... $formImages->append($wrapperImages); // append the wrapper echo $formImages->render(); i used this to trigger the editlinks open in a modal - you can build the links to the events yourself and use the JqueryMagnific plugin from the admin backend, too....and yes all are pages and if you build your events admin backend - you just need a event-root and a event template and a hidden pagetree for them and you're fine for the mr. fan i could say there is more to the "mr" than you might think: http://www.acronymfinder.com/MR.html (choose one meaning ) i like this one because i love the country (it's a holliday wish) best regards mr-fan (aka maybe MoreRespectful -fan who knows...)
-
What is about use the default jquery UI calendar as inline cal and display events there? Should work with the core and looks nice... some examples/ideas - but unfortunately no time to try for myself... basic: http://jqueryui.com/datepicker/#inline style: http://www.hongkiat.com/blog/jquery-ui-datepicker/ add events: (the fiddle demo is working with some tests in march '11) http://stackoverflow.com/questions/5578259/jquery-ui-datepicker-how-to-add-clickable-events-on-particular-dates may select a range for events: http://salman-w.blogspot.de/2013/01/jquery-ui-datepicker-examples.html#example-7 Should be easy to adapt as it is a core plugin? May work with simple childpages as events or pagetable...like i wrote it is sad that my day hasn't 48 hours at the moment...
-
Search the forum via google give's in most cases a better result - while the forum search lack a bit... here some hints and links on this topic: https://processwire.com/talk/topic/4680-block-access-to-settings-delete-and-view-tabs-for-page/ https://processwire.com/talk/topic/3159-hide-settings-tab-in-page-edition/ best regards mr-fan
-
Really great this is a trigger to polish my own site up with PW first - and then add my entry Great idea&implementation Thumbs up!
-
Just a short question...are there Hamburg PW Users out there? I'm take a short trip to hamburg in march. Maybe some tipps - what i can't read in a guidebook? Best regards mr-fan
-
A good read on the "hidden" thing is there: https://processwire.com/talk/topic/5705-preset-new-subpages-as-hidden/#entry55733
-
<offtopic> But don't ever never let newbies touch waterand never feed it after midnight!!! </offtopic>
-
Thats only what i meant in my last 2 posts on this. As i'm a starter, too - the best thing here was that i'm felt like i'm at home now in this forum - not in any strange or foreign part of the web. I'll give back other starters a helping hand since i'm no pro this my only limited skill.
-
Oh don't know why but the first version get me a 0 value and get a mysql error for every double image....the script stucks and don't skip. If i replaced $page with (wire('pages') it works. (searched the forums a lot for posible problems and made some short trial and error and output the get results...) And yes in my test i wanna check all pages/images - while user could should not upload a image to different albums. If user could do that and use drag and drop in the pagetree ->same image in cat A d&d to cat B -> error on the same name under the same parent...?
-
Many people are lazy - like me, too!! No coder but DRY concept is not only based on code But forum's search isn't that good, we know there are better tools to search the forum What the most problem on this topic is that starters often are impatient - i'am definitely not! Thats a little problem with sometimes someone gets fast disappointed - for them there is a special post from rayn to clear the fronts up. With software and OS projects it is always a problem that users expect not really a instant answer - maybe sometimes they expect things the software can't do for them. We all like the fact that we with PW the most things we expect. Nevertheless there should be no room for irritation and a clear way to handle this things - but hey we have a great STAFF i think and this is here a little bit offtopic...
-
In my former cms forum community (exForumAdmin) there was the same state like here some years ago- good people good questions good answers.....then some things happens - less develepment & bad management->badquestions->badanswers->badpeople->emtyforum. At the end nobody takes the time for other users - there was always posts like "this is a php/html/css question you noob go google", "this is not cms related - go google", "or just go google" => so find PW with google and i'm happy again now to get good answers from good people on all related topics. @ryan 100% agree on this - What goes around, comes around. So spread the word in a positiv way.
-
Thank you very much for the next lesson on the template listings.... But i found a missing thing myself - so you can see i'm learning.....the module check for double images failed so i searched why and found that this line don't work - always get a 0 - if($page->get("name={$image->basename}")->id) { but this one works perfect.... + if(wire('pages')->get("name={$image->basename}")->id) { so i've added a message for successful upload, too and put all together in this repo. https://github.com/mr-fan/AutoImagePages We have a simple kind of easy to use Foldergallery now Using Image Labels on Pagetree you have a great overview and drag&drop for the images....all works really intuitiv. In my testinstallation i've a on the Add New Button in the admin add new "Album"....works perfekt. In the next project i will see what the users will say. Many thanks for Adrian from me - learnt o lot and we have a solution for all users. Best Regards mr-fan+ Edit: May this one could set to best answer to get the link for the module to the first post of this topic??
-
only way to handle such big images would be a normal file field prepared to load the big ones to have it for download or something else....and save them while uploading in a smarter size in a image field....?
-
first: https://processwire.com/talk/topic/1126-how-to-debug-use-the-error-log/ second: https://processwire.com/talk/topic/4810-debug-mode-on-front-end/ Edit: LostKobrakai was faster...
- 20 replies
-
- cache
- markup cache
-
(and 2 more)
Tagged with:
-
{ $this->data['fieldImages'] } ....sometimes i'll be a little blind....this is the point where it is bad that i've to less time for exercise and more practice.... will test asap i'm at home and report. Thanks for this lesson! The job with the configurable fields is the result of another lesson from you - so you can see i've something learned from your helping hand and on the next little module i could contribute even more code that works - we will see. Best Regards mr-fan
-
ok some examples: https://processwire.com/talk/topic/8556-best-practice-on-frontend-members-site/#entry82726 more: https://processwire.com/talk/topic/6312-user-field-update-form-security/ and you could use the forms from processwire API to get there: https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ there is a FormHelper module for the frontend, too: https://processwire.com/talk/topic/7860-module-formhelper/ and a frontendmodule that is build for the FormHelper: https://processwire.com/talk/topic/7997-frontendcontentmanager/ so neo please choose the blue or the red one
- 75 replies
-
so we go a step further https://github.com/mr-fan/AutoImagePages/blob/master/AutoImagePages.module just added some backendsettings for template and field names.....works but now the script is not working what i'm doing wrong with the use of $this->$data['fieldImages'] have i put it in a var first?? no more time today....but i like to learn! regards mr-fan Edit: ->How i get PHP codecolors for the .module files...?? is there a hidden setting in github?