Jump to content

Nicolas

Members
  • Posts

    95
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Nicolas

  1. Great feedback. Regarding the second point of the things you don't like, ProcessWire provides core functions to manage the urls as you wish. Either with URL Hooks or with the templates' URL segments settings you can easily opt out the tree hierarchy structure of the pages. Thanks for your modules contributions.
  2. “Gentlemen you had my curiosity ... but now you have my attention.” ― Quentin Tarantino, Django Unchained
  3. Hi @wbmnfktrThanks for your answer. I'm indeed using the TemplateEngineLatte module, but I think my issue is more related to the point mentionned by @BillH regarding the "sort=sort" parameter nested pages. I ended up adopting a recursive approach to solve my problem as shown below : <?php // In init.php $catalogue_root = $pages->get(1027); $view->categories = getOrderedCategories($catalogue_root->id); function getOrderedCategories($current_category_id, &$categories = []) { $current_categories = wire()->pages->get($current_category_id)->children('template=category'); foreach($current_categories as $category) { $categories[] = $category; // populate the reponse with category page object getOrderedCategories($category->id, $categories); // proceed with sub categories } return $categories; }
  4. Hi, I need to make a filter sidebar for a catalogue displayed in a tree like fashion. To get the list of the catalogue root page i've the the following $view->top_categories = $pages->get(1027)->descendants('template=category, sort=sort'); In the category template the children a sorted by 'None'. What would be the right selector to display the tree like filter with the categories sorted in the same order as the pages in the admin section ?
  5. Fixed ! Thank for the heads-up.
  6. We just launched 2 new project in the past sooner this week. The first one is Overline Systems. The following modules were used : AdminStyleRock, Formbuilder, ProCache and the MarkupMenuBuilder. The second is a simple one page : De la Cave au Cellier
  7. Hello Webjack, Great writeup on ProcessWire from a beginner point of view. A quick note : in the breadcrumb ProcessWire is spelled wrongly. It should be ProcessWire whithout a dash (-). Glad to see you're enjoying ProcesWire while dicovering it and learning english at the same time. Merry Christmas !!
  8. You can test multiple conditions in PHP if a if instruction as shown below if( $page->id == 1042 || $page->id == 1043 ) { // Do something here }
  9. Welcome on board Webjack !! Bienvenue dans la communauté ProcessWire. De mon expérience, ProcessWire est en effet un CMS orienté développeur. Pour cette cible c'est un outil très agréable et efficace grâce notamment à son API. Comme indiqué sur la page d'accueil, il est simple à utilisé pour les clients. Pour les créateurs de site il est indispensable d'avoir un minimum de connaissance de PHP. Cela dit entre la documentation qui est très bien faite et le support de la communauté sur le forum, on peut rapidement progresser. As far as you can imagine 😉
  10. HI @bernhard, this is an awesome addition to the ProcessWire eco system ! Great job 👏 I've noticed a little hiccup on this page : https://www.baumrock.com/en/processwire/modules/rockpagebuilder/ in the FAQ section. Clicking on the second question opens the response of the first one.
  11. Hi, I wanted to give Wireframe a shot with the Latte renderer but can't get it to work. The layouts/default.latte template does'nt seem to load the views/home/default.latte I'm using the ProcessWire 3.0.228 with PHP 8.2. and both Wireframe and WireframeRendererLatte have been installed via ProcessWire (not with Composer). What am i doing wrong ?
  12. Can't access the website from France neither 😕
  13. The templating and plugin system didn't clicked for me back in the days as i was looking for a CMS simple to extend.
  14. Had a looked at Drupal 7, was scared by what I've seen and leaved it in a closet since then. A few years later I'm tempted to give v10 a try since Drupal now use a lot of Symfony components. Would you provide us a debrief coming back from the conférence ?
  15. Can you contact the module's author or maintener or raise an issue on Github ?
  16. This is a killer module. Outstanding work and great features. Will definitely use RockFrontend on some upcoming projects.
  17. Great website. Thanks for the behind the scene insights.
  18. Hi, Have you had a look at one/some of these PageList modules ? There's also many discussions in the forum related to your query : You may also want to have a look into the ProcessWire hooks system. Hope this helps
  19. I don't use this module but maybe you could perform a direct search in the databse via phpMyAdmin.
  20. Please count me in. Looking forward to seing the power of the framework applied to ecommerce.
  21. Hi, At what time do you want to remove thosecharacters: when importing the data, when displaying the title on the frontend ? depending on your need this could be achieed with a substr PHP function (when displaying the title on the frontend) or via a hook when importing/saving the title.
  22. Nicolas

    other CMSs

    Hummm ... are you talking of the module one should not say the name ? Happy to know it's getting close to be released as the last sneak peek video got me really excited about Padlopper 2.
  23. This iconset might be of interest for you as well : https://tablericons.com/
  24. @Robin S Hi Robin. thanks for the clue about Tracy debugger and the right hook method. Solved my problem.
  25. Hi, For a project I need to add a custom admin action button. Tanks to @bernhard i was able to add the action in the submit button dropdown. To peform the action i'm adding a hook to the InputfieldSubmit::processInput method, however the function is executed twice for some reasons i can't figure out. What am i doing wrong ? <?php // Add a save action button to resend the registration email $wire->addHookAfter('ProcessPageEdit::getSubmitActions', function(HookEvent $event) { $actions = $event->return; $actions['send_registration'] = [ 'value' => 'send_registration', 'icon' => 'check', 'label' => '%s + Resend registration email', ]; $event->return = $actions; }); // Process custom save button action wire()->addHookAfter('InputfieldSubmit::processInput', null, 'send_registration_email'); function send_registration_email($event) { $input = $event->arguments(0); if('send_registration' === $input->_after_submit_action) { // populate email vars here send_email($input->email, $mail_subject, $mail_body, wireMail()); } // Populate back return value, if you have modified it // $event->return = $attendee; $event->cancelHooks = true; }; function send_email($email, $mail_subject, $mail_body, $mailer) { // Sends the email }
×
×
  • Create New...