Jump to content

sebr

Members
  • Posts

    59
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sebr's Achievements

Full Member

Full Member (4/6)

17

Reputation

  1. Hi @netcarver I tried with quotes and without but the result is the same : no effect...
  2. Hi @Saleena Jhon Something like that ? $pages->find('template=event, date_start <= ' . $customDateStart . ', date_end >= ' . $customDateEnd . ', sort=date_start, sort=date_end');
  3. Thanks a lot @Kiwi Chris. It was a bug in 3.0.179. I just upgraded to 3.0.180 and it's work fin.
  4. Hi On Processwire 3.0.179 Create a fieldtype image named "img_test" with option "Use custom fields" On the template "field-img_text" add a title field On a repeater matrix, add a new type with the field "img_test" Add the repeater matrix on basic-page Create a new page and add an image in the repeater matrix, in the field img_test and fill in the title field from the image field Save and reload : the title field from img_test in the repeater matrix is empty In older Processwire versions, the first time I saved this custom fields were not saved, but on the second one, yes. Any idea about it ? A bug or a bad setting ?
  5. Hi I'm using this module for the first time in a multilingual website. In my home, language prefix are empty because I manage URL directly: mydomain.fr for French mydomain.com for English mydomain.de for Deutsch The the MarkupSitemap module rendered something like that for each page (on mydomain.fr), after set default language (in module settings) to "fr" : <xhtml:link rel="alternate" hreflang="fr" href="https://mydomain.fr/"/> <xhtml:link rel="alternate" hreflang="" href="https://mydomain.fr/"/> <xhtml:link rel="alternate" hreflang="" href="https://mydomain.fr/"/> But I would like to render : <xhtml:link rel="alternate" hreflang="fr" href="https://mydomain.fr/"/> <xhtml:link rel="alternate" hreflang="en" href="https://mydomain.com/"/> <xhtml:link rel="alternate" hreflang="de" href="https://mydomain.de/"/> I tried to use Hook like that : wire()->addHookAfter(MarkupSitemap::getAdditionalPages, function ($event) { $page = $event->arguments(0); $language = $event->arguments(1); MarkupSitemap::applyLanguageSupportHooks(); return [ 'url' => 'https://mydomain.fr/test', 'fr' => [ 'url' => 'https://mydomain.fr/test', ], 'en' => [ 'url' => 'https://mydomain.com/test', ] 'de' => [ 'url' => 'https://mydomain.de/test', ], ]; }); But the sitemap rendering is the same. How can use the Hook to set alternate language URL from pages ?
  6. Thanks a lot @BitPoet. I didn't know the "user access > permission page" on Processwire Doc. I just applied the permission and it works nicely 🙂
  7. Hello One of my customers needs to have his site translated by a publisher. He asks me if it is possible to create a role that could only edit the German version of the pages, without permission on the English version. I haven't found any permission related to this need, but maybe it's possible from a hook? Thank you for your help
  8. @ryan Since upgrade to 3.0.172, I have this notification alert : And if use "Publish" button to publish a page I have this notification alert : But if I uncheck "Unpublish" or if I publish from page list, the page is published. Any idea ? How can I look for something to resolve it ?
  9. Great thanks @kongondo It's really a newbie error 😄
  10. Hi In my search page, I used a selector like this : $searchQuery = $sanitizer->entities($input->get('q')); $searchQuery = $sanitizer->selectorValue($searchQuery); $selector = 'title|subtitle|summary|html_body_noimg~=' . $searchQuery; $matches = $pages->find($selector); I don't have the same results if $searchQuery contains accent or not. For example, with « bâtiment » I have no result with « batiment » I have onea result : « Les bâtiments et les smart-city » Normally I should have the same results? How can I do that ? Thanks for your help
  11. Thanks for this response. Yes, I also think this is a good solution : just one migrate call. I my case, downgrade is not necessary. The only risk I take concerns manual changes that could be done directly under Processwire. Have a nice day !
  12. hello @bernhard Thanks a lot for this dreamy, powerful and simple migrations module 😀 It's great and I begun to use it with succes ! I have however one problem 🤪 : I created a module and I use the auto-update system from RockMigrations (0.0.1.php). All is OK with the install and the uninstall. I create a 0.0.2.php and update the version of the module ('version' => '0.0.2'). But when I refresh modules from Processwire, my module update in 0.0.2, but no RockMigrations is executed. When I debug it with Tracy Debuger, I have many errors like this : array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead on line: 171 in /var/www/html/wire/core/WireData.php and another error like this one Maximum function nesting level of '256' reached, aborting! on line: 1733 in /var/www/html/wire/core/Wire.php Any idea to resolve it ? I tried to increase the maximum function nesting level, but it's the same... 🤯 Thanks for your help
  13. Sorry for this late andswer. Thanks a lot for this module I didn't know. It does exactly what I wanted :-)
  14. Hi For example the content tree : Home Page 1 Page 1.a Page 1.b Page 1.b.i Page 1.b.ii Page 2 Page 2.a All pages except Home are using the basic-page template. Is there a way to configure a user role "page1_webmaster" to manage just the branch from root "Page 1" ? Or other solution to restrict a user to manage just a defined branch ? Thanks
  15. Hello I used this module and all work very well. Thanks for this 😄 I have just 2 questions : Is there a way/option/hook to not appy the clustering in a multi-markers map ? OR define a threshold (10 markers for example or 100 kilometers between markers or 100 pixels between markers) ? Is there a way/option/hook to add margin or padding when fitToMarkers is true ? Because some edge markers are cut... Thanks a lot for your help
×
×
  • Create New...