Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/12/2017 in all areas

  1. I have no answer to your question, but would like to mention that using flags as language indicators is not the best idea: why-flags-do-not-represent-language
    3 points
  2. if ($fields->get('myfield')->type instanceof FieldtypeLanguageInterface) { // do something } 'myfield' can be the fieldname or field-id
    3 points
  3. If I understand correctly, that a successful form submission is then redirected to /thank-you/, I would use $session. Then you could do something like this <?php // Form A if($success){ $session->formSuccess = 'formA'; } // or 'formB' etc on any other forms // then redirect to /thank-you/ and then <?php // /thank-you/ if($session->formSuccess){ switch($session->formSuccess){ case 'formA': $message = 'Thanks for submitting Form A'; break; case 'formB': // etc } $session->formSuccess = ''; } else { //redirect to /home/ or wherever }
    2 points
  4. foreach($posts->getValues() as $index => $post) { $is_large = $index % 6 == 1 || $index % 6 == 2 if($is_large) … else … }
    2 points
  5. Hi @adrianmak When you make redirect from your form to "thank you" page, you can add some get parameter to the link like: thank-you/?submit=success and then in "thank you" page template check if there this get parameter, if not - redirect to homepage.
    2 points
  6. Hi @Peter Knight I didn't add image field to langauge template, but I have added several custom text fields in every install, so there is no problem to add your custom fields. Just set "Show system templates" in tempalate manager filter, I think you are aware about it. As an alternative you can put your flags to some template/assets/images/flags/ and name it like default.png, english.png etc. and then use $language->name in your foreach loop.
    2 points
  7. It is still confusing to have this feature nonetheless as we are required to post our Pro module support requests in the appropriate forum topic – which is a reasonable requirement –, so this support tab thingy (whether it is integrated part of the forum software or not) is still misleading, in my understanding.
    2 points
  8. Right you are. When you open a request there is a dropdown to select which Pro module you are wanting help with. So all good I guess. Just funny that there's no mention of this section in the Pro modules information, rather the private sub-forums are mentioned as where support is provided. I have a number of Pro modules and I don't recall ever hearing about it. So probably LK is right and it just comes as part of the store package.
    2 points
  9. Adds a Service Worker to your Processwire site which can be customised. The service worker script itself is heavily based on Jeremy Keith’s work – thank you Jeremy! More information: https://github.com/johannesdachsel/processwire-serviceworker
    1 point
  10. Hello, I want to showcase my website made in processwire. https://chrysemys.nl/ Goal of the website There are quit some websites with information about turtles. Most of them are very limited in information. This website main goal is to be very complete in information. Information about turtles, there natural behaviour, detailed descriptions. Next is also associations ( (bi-)directional links) with caresheets, books, food, illnesses, etc... Second goal is to learn PHP as I started an education for application engineering 4 months ago. Setup It is build on the latest version (3.0.61) and makes use of the latest template strategy. I use the pw-append, pw-replace classes in combination with _main.php and several template files. Most of the rendering is done from custom functions in _functions.php. In the back-end the pages are styled with the options for visibility and group in logical blocks. This is a very nice feature with processwire and makes the pages easier to fill. Next to the core modules I have used the following extra modules: AIOM+ - obviously Connect Page Fields - This module is very important. The whole site is considered a relational database. The base is the enity turtle. This entity has bidirectional associations with books, caresheets, locations (voor google maps), regions (to group locations), the different classifications of the animal taxonomy, food, etc. To make these kind of associations it greatly simplified the output on the other templates. This module was a mandatory feature for being able to create a site as I wanted to. Otherwise it would it would be very inefficient to keep everything up to date. Now I can add a new book and connect it to one ore more turtles. After the save you can see the book also on the turtle page. This goes for all the bidrectional links. This page is about a species - https://chrysemys.nl/schildpadden/emys-orbicularis/ This species has several sub species (basicly the same turtle but live in another country/region and has some different charasteristics). I have decided to make no distinction between species and sub species (on a template level) and use this module to connect them to each other. One reason was that this way the url would not be too long. This turtle lives in several different habitats. These are also bidirectional associations. The same goed for food, books, food to mention some. The biological taxonomy is also build this way as entities that have no parent/child relation. They are connected to each other with page reference (in this case). Both methods (page reference or parent/child) have their pro's and cons, in the end this setup seemed to work best for me. Map Marker - This is used for the map marker field for the locations (verspreiding). Everyt turtle can live in one ore more locations and the will show up on the google map. Also I have the possibility to add location specific information about the climat on the pages (missing on almost all other websites). Map Markup (Google Maps) - For the output of the google map. The js script for this is only outputted on the pages where it is used (template strategy). Markup Sitemap XML - obviously Social Share Buttons - Added this as it is recommended for a better SEO score. Get Video Thumbnails - The blog story can have a youtube link. This module automatically grabs an image and places it as the image for the blog. No more extra steps needed. Video embed for YouTube/Vimeo - I slight changed the output for this module so it always is placed under the body. Datamaps.js - Also I had some very important help from @adrian with help of using datamaps.js. This page is a datamaps script that read all turtles that live in the US and shows them in the correct state. https://chrysemys.nl/kaart-verenigde-staten/ A php function renders the output for the script and fills the variables. These are added to te script on rendering the page. The website is not finished and probably never will be as new information and functionality will be added all the time. But it is finished enough to serve as a showcase. Roadmap There are several things I want to add in the future: A find selector for overview pages (select by size, region, family, etc). Worked on this but, could not get it working. Datamaps.js for all regions (also with a selector to select another region). Optimize the queries to make the site faster. Several front-end improvements (marging/padding/font-size, etc...)
    1 point
  11. AOS is at 1.4.7, containing Robin S's fixes and his IconsFilter module. I've spent much more time on the icons filter because I wanted it to be compatible with the current markup and with this PR too.
    1 point
  12. 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
    1 point
  13. 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
    1 point
  14. Hi @Dinodog Hope you get sorted soon. BTW There's a ProcessWire Developer Directory here: http://directory.processwire.com/ which lists some of the member available for hire. Might be a good future reference. Glad to hear you haven't moved to WordPress. Security nightmare to say the least and a world of pain
    1 point
  15. @LostKobrakai Hello, I don't even consider shared hosting without access outside the web-root. :-) Most of the companies I have experience with provide cpanel and offer high level of customization for php version and for enabling/disabling php modules (even if I am more a vps+terminal/console admin kind of guy). ....but I agree, it's not a high priority feature and it's targeted especially for developers. Most cms/cmf software put everything inside the web-root also because the installation process is much simpler and direct for less experience users. kind regards
    1 point
  16. From my experience these shared hosters are exactly the ones without access to folders outside the webroot I don't want to totally invalidate the request for such a feature, it's nice to have options, but I can understand if there's not much priority for it.
    1 point
  17. @SamC I would consider myself a beginner in JS as well. There is always more to learn. Here is another resource, which helped me a lot to understand the core concepts of JS. Disclaimer: These are only the first 3.5 Hours. The full video is only available through a paid online Service.
    1 point
  18. 1 point
  19. devri.bzh Devri is a "diachronical" breton language dictionary, in french language. (= a dictionary referencing words usages and evolution through time...) It contains 60K words, and counting. This project was supposed to be a simple upgrade to an existing (and recent) site built with symfony. However, the initial setup had so many problems I chose to rebuild it from the ground with PW. Search speed being the main focus here, most of my time was spent cleaning the source data. (DB was 280 Mo. It is now 60 Mo). The site itself is quite basic (although we have plans for future improvements with more advanced features) Techs : - PW 3.042 - Bootstrap / SASS - Nginx Modules used : - Ajax search - Import pages from CSV - DB backup - Hanna code - custom one Users are very pleased with the responsiveness. Admins seem to really enjoy the default admin tools (clear and simple). They managed to set up an efficient collaborative workflow. PW definitely made some new friends here. Thank you, PW.
    1 point
  20. Antti, I think you should do the honors. Might also want to rename this topic (or create a new one) while you're at it
    1 point
  21. Hello to you too, @antpre, and welcome to the forum! Probably the one and only reason why the module isn't in the modules directory is that @apeisa felt it was too incomplete at the time of announcement. @apeisa, any comments on this? Shouldn't we add it by now? I've got two relatively minor updates pending, will probably merge those to the master branch of the module soon. Apart from that, the module is in use on at least a couple of sites already that I know of, and so far it's working just fine. There are still a bunch of things to take care and improve, but it's already very much usable. Not having much activity lately means, in this case, two things: first of all there's nothing major missing so no need to rush into action, and second of all everyone involved is quite busy with other stuff. If you have time to give this module a test, let us know how it works for you; we're still around and the module is still maintained
    1 point
×
×
  • Create New...