Jump to content

Andy

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by Andy

  1. @ryan When Cyrillic letters are used in the name, capital letters are no longer transliterated. Small letters work fine, but capital letters does not work. echo $sanitizer->pageNameTranslate('Город'); // "gorod" The problem started after upgrading ProcessWire to 3.0.184 Before that everything was working fine. If anyone has any thoughts on this, I'd love to hear them.
  2. @Адриан I found today that not all phrases are translated. This applies to the configuration file. I can't understand why this is happening. array( 'type' => 'checkbox', 'name' => 'autoload_assets', 'label' => __('Autoload Assets'), 'description' => __('Autoload module CSS and JS files.'), 'notes' => __("If you disable this, you will need to load these files manually:\n```<link rel='stylesheet' type='text/css' href='/site/modules/CookieManagementBanner/assets/css/CookieManagementBanner.css' />\n<script defer src='/site/modules/CookieManagementBanner/assets/js/CookieManagementBanner.js'></script>```\nNOTE: you must load the JS file with the defer attribute."), 'value' => 1 ), The configuration does not use translation, but shows the original text. The angle brackets are not displayed as they should be.
  3. @kixe No. That's not how it works now. // Single select example $page->of(false); $page->multy_select_field = PageArray( wire('pages')->get(1111) ); $page->save(); $page->of(true); // Multyple select example use construction $a = PageArray([ $page1, $page2, $page3 ]); $page->of(false); $page->multy_select_field = PageArray([ wire('pages')->get(1111), wire('pages')->get(2222) ]); $page->save(); $page->of(true);
  4. @bernhard At one time a module was written to manage customer orders. In 2013, Apeisa published Shop for Processwire version of DEV. There were a lot of interesting points there that we used. Payment gates with our bank were gradually added. Most importantly, it's all written for the kind of commerce our store uses. Usually CMS for trading offer their own trading algorithm. And this is not always convenient.
  5. @clsource Nice article. All in all, very true. However, I disagree with one point. At one time, I went through a lot of CMS in search of a basis for the development of the store. In the case of complexly organized product hierarchy, all other CMS do not allow to implement an effective solution. And only ProcessWire makes it easy to implement the most complex hierarchy. At the same time, it can handle the load of a million requests. Moreover, I started my work in 2013. Now ProcessWire has many more features and capabilities.
  6. @3fingers It's a neat solution. Thank you.
  7. @3fingers It would be nice if you could share your invention.
  8. @kongondo Not now. This layout works fine as it is.
  9. Thanks to @kongondo's example, I also began to use tailwind.
  10. @kongondo There is a more elaborate and functional free online shop layout. It is based on UIkit 3 and other technologies. Check it out. Project on github Demo This layout is more suitable for full-featured online shop if you sell something more complicated than shorts and shirts.
  11. At the moment the site layout is not responsive. The problem is hidden in the footer. <nav class="footer_nav"> <ul class="flex justify-center space-x-10 uppercase"> To prevent horizontal scrolling on smartphones, you need to add one more element - flex-wrap. <nav class="footer_nav"> <ul class="flex flex-wrap justify-center space-x-10 uppercase">
  12. Hi @bernhard Congratulations! Great project. I found some interesting solutions for myself. Thank you. I would like to share a color picker trick. When you give the user a choice of colors in a finished design, unpleasant color combinations are possible. In such cases, we offer a choice of predefined color pairs or whole color patterns. And further. A map is often published in the news. Maybe add a map module?
  13. About Padloper support board Oops! You do not have permission to view this topic.
  14. Although, I wrote my shop a long time ago. But with pleasure I will test yours too. My store was founded 10 years ago on the Shop-for-ProcessWire v-001 module that @apeisa wrote. But I've rewritten pretty much everything, and I'm constantly adding new features. Conventional store systems don't work for us, as we have many different product properties. In addition, the store has a peculiar sales algorithm. As well as a special payment gateway for a local bank. And also loading goods from the warehouse accounting program.
  15. Hi @Pete Most likely this is a common problem for Invision board. The subscription letter comes in two formats - text and html. Everything is correct in html, but the link in the text is broken. As example: Go to this Post: https://processwire.com/talk/topic/14921-admin-actions/?do=findComment&amp;comment=217821 No need mask ampersand here. Go to this Post: https://processwire.com/talk/topic/14921-admin-actions/?do=findComment&comment=217821
  16. Hi @Manaus Why don't you use a function? <?php namespace ProcessWire; /* * * /site/templates/_func.php * use include_once in your code template */ function my_render_link($selector) { $current = wire('pages')->get($selector); if($current->id){ $out = "<a href='".$current->url."'>".$current->title."</a>"; }else{ $out = false; } return $out; } ?> I haven't tested but should work.
  17. Hi @bently76 Your request is not entirely clear to me. We are here discussing situations related to the CMF ProsessWire. And you work on CMS Wordpress. These are slightly different universes.
  18. @CBE The method of accessing other pages certainly works. Perhaps you have an error somewhere or access to the page is denied. There is little information on this here. Try to break the task into steps, check it step by step. $my_page = $pages->get('/general-information/'); if($my_page){ $my_img = $my_page->front_image; if($my_img){ $my_url = $my_img->url; }else{ echo "Image not acces"; } }else{ echo "Page not acces"; } Or just see what PageArray returns to you $my_page = $pages->get('/general-information/'); if($my_page) print_r($my_page); // use var_dump($my_page) for bit more info
  19. @CBE The fact is that the image field can be either for a single picture or for an array of pictures. Check how you set the image field for front_image. Read more about this in the documentation. But in short. For a single picture, the call will be like this: $image = $page->single_image; if($image) echo "<img src='$image->url'>"; For an array of pictures, you can choose the first one: $image = $page->images->first(); if($image) echo "<img src='$image->url'>"; Look to Maximum files allowed and Formatted value
  20. @kaz Add two flags to options and play with it: 'scrollWheelZoom' => false, 'dragging' => false, I usually use this configuration. $options = array('markerIcon' => 'flag-checkered', 'markerColour' => 'orange', 'scrollWheelZoom' => false, 'dragging' => true, 'markerTitleField' => '', 'popupFormatter' => function($page) { $out[] = "<center><strong>Sub Header</strong></center>"; $out[] = "<center><img src=\"/images/logo.png\" width=\"100\" height=\"100\" /></center>"; // ** NB: Use escaped double quotes if HTML attributes needed ** return implode('<br/>', $out); } ); In this case, zooming in and out of the map is possible only with the zoom buttons at the top left. But the swipe movement of the card is preserved. For a desktop, this is ideal. And for smartphones dragging the site up on the map picture is replaced by dragging the map up. The user understands this and is looking for a place behind the map in order to hook his finger on the page, not the map. Disabling dragging does not fix the problem. The map does not move, but the page does not move either. The user still needs a place behind the map to swipe.
  21. @teppo and @VeiJari I would also remind you that there is a SQL injection.
  22. @kaz If You put default then $options = array('markerIcon' => 'flag-checkered', 'markerColour' => 'orange', 'popupFormatter' => function($page) { $out[] = "<center><strong>Sub Header</strong></center>"; $out[] = "<center><img src=\"/images/logo.png\" width=\"100\" height=\"100\" /></center>"; // ** NB: Use escaped double quotes if HTML attributes needed ** return implode('<br/>', $out); } ); And yours Main Header will be as link But if you add the parameter 'markerTitleField' then the field with the link will disappear. $options = array('markerIcon' => 'flag-checkered', 'markerColour' => 'orange', 'markerTitleField' => '', 'popupFormatter' => function($page) { $out[] = "<center><strong>Sub Header</strong></center>"; $out[] = "<center><img src=\"/images/logo.png\" width=\"100\" height=\"100\" /></center>"; // ** NB: Use escaped double quotes if HTML attributes needed ** return implode('<br/>', $out); } ); You can see the result. It seems to me that this is exactly what you wanted to get. Without fixing the module codes.
  23. @horst Gotcha - https://github.com/millipedia/millco-diceware
  24. @kaz I think you need to look at the fields in the map options. $map_options = array( 'markerLinkField' => 'url', 'markerTitleField' => 'title' ); In the README.md file `markerLinkField` | Page field to use for the marker link, or blank to not link (type: string; default: url) `markerTitleField` | Page field to use for the marker title, or blank not to use a marker title (type: string; default: title)
  25. @Simi Problem solved. PHP 7.4 ZIP extension option --enable-zip was removed. You need to manually install Zip and ZipLib in PHP. The rest of the access rights must also be set. But, I still do not understand why errors are not displayed in the log file? Make sure /site/assets/cache/ directory is writeable for PHP. Make sure your site modules directory (/site/modules/) is writeable for PHP. ZipArchive class is required and your PHP does not appear to have it.
×
×
  • Create New...