Jump to content

3fingers

Members
  • Content Count

    254
  • Joined

  • Last visited

  • Days Won

    1

3fingers last won the day on May 24 2017

3fingers had the most liked content!

Community Reputation

259 Excellent

About 3fingers

  • Rank
    Sr. Member
  • Birthday 04/22/1981

Contact Methods

  • Website URL
    https://www.3fingers.com

Profile Information

  • Gender
    Male
  • Location
    Turin, Italy

Recent Profile Visitors

4,668 profile views
  1. Even though I appreciate the idea of PW themes I think they would be somewhat limitating, fighting with the power of PW, where having your personal markup gives you freedom and uniqueness to projects. Pure HTML themes, instead, (not being bound to strict fields/relations) might be more appealing to me. If your goal is to make some revenue with them be aware that the market if fully saturated πŸ™‚ My two cent here, of course πŸ™‚
  2. You right! Passing them directly to the renderPager() method now works. Just to clarify, SearchEngine settings kick in, but not those dedicated to pagination πŸ™‚ Thanks @teppo, glad you're on the same time-zone as mine, you're always super fast πŸ™‚
  3. Hi @teppo, another gentle question for you πŸ™‚ I'm trying to style the pagination, using this code: $config->SearchEngine = [ // This are the settings I already used, successfully, elsewhere in the site to style my pagination. 'pager_args' => [ 'nextItemLabel' => "Next", 'previousItemLabel' => "Prev", 'listMarkup' => "<ul class='pagination'>{out}</ul>", 'itemMarkup' => "<li class='pagelink {class}'>{out}</li>", 'linkMarkup' => "<a href='{url}'>{out}</a>", 'currentLinkMarkup' => "{out}", 'currentItemClass' => "current", ], // other settings here stripped out in this example. ]; Those settings seem to be ignored though. I'm surely missing something, can you point me in the right direction? πŸ™‚
  4. I will do that on Monday, in the meantime thanks for your support and kindness :)
  5. I'm making progresses! Everything is working fine except for the renderPager, which loose the query string on subsequential pages: $searchEngine = $modules->get('SearchEngine'); $form = $searchEngine->renderForm(); echo $form; $out= ''; if ($q = $sanitizer->selectorValue($input->get->q)) { $results = $pages->find('search_index%=' . $q . ', limit=25'); foreach ($results as $result) { $out.= // my code here, everything is great and populated, even repeater matrix elements whaoo! :) } } $out.= $results->renderPager(); echo $out; On page http://localhost:7880/my_url/root/it/search/?q=my_query everything is ok. As soon as I go to page2 the url is http://localhost:7880/my_url/root/it/search/page2 (the query is gone and nothing more is shown). Btw my "search.php" template has "Allow page numbers" in the backend set to ON. Any clue? πŸ™‚
  6. Thanks @teppo ! You rock! πŸ™‚ I will report back my experience with your module as soon as my client give me the ok with the implementation. Once again, thanks! Edit: I found couple typos in the README inside the "manual approach" section (a double echo and a $searchEngine declaration referenced as $searchengine w/o camel casing), I paste the correction below as hidden: Also, in the "Advanced Use" : the "$query_string" variable declaration...shouldn't be "$q" or I am missing something?
  7. You should give this a try: https://processwire.com/talk/topic/5704-wiremailsmtp/?do=findComment&comment=191580 And also this (might be related to your hosting company not allowing 3rd party smtp services, like google, to send mail): https://processwire.com/talk/topic/5704-wiremailsmtp/?do=findComment&comment=162368
  8. Please consider contextualize a bit more your situation, post some code. Are you using gmail as a service to send your email? Have you allowed then "unsafe" apps to use their smtp for that? Lot of things to consider.
  9. Hi Teppo, I'm close to build my first-time-ever search engine in processwire and wonder if you have made progress into the multilanguage side of your cool module πŸ™‚ Not a big deal anyway, otherwise I will try another approach πŸ™‚ Thanks!
  10. It looks like you still need to grasp some concepts and logic of html/css and php in general. Write me a pm, I think a chat between me and you would be ideal for you. I'm trying not to pollute the forum with a bi-lingual discussion between us.
  11. Ciao franciccio, non Γ¨ processwire che deve "pescare" la classe nel tuo css, ma sei tu che ( a seconda di una particolare condizione ) puoi dire al sistema di fare un echo di una classe piuttosto che di un'altra. Facciamo finta che tu abbia due categorie di pagine (politica ed ecologia) e al si sotto di esse le pagine corrispondenti, a questo punto puoi semplicemente definire la classe che vuoi sul bottone: // Insert a class conditionally <button class="<?= ($page->parent == 'politica') ? 'some-class' : 'other-class' ?>"></button> Lo stesso principio vale per gli sfondi. ---- It's not pw to pick the classes from the css, instead is you choosing the right class based upon some conditions (if/else, switch statements, etc.). Let's pretend you have to main parent categories (politica ed ecologia), at this point you can easy define which class you need to be applied on the button.
  12. Ciao Franciccio, where this class lives into your template file? On the body tag? Are you using it to style the whole page differently according to its content? In this case you could add those classes programmatically according to the page you're serving, using just one template file. (btw I'm italian too, write me a pm if you're in trouble and I will send you my skype username there, but first let's try to solve this inside the forum).
  13. Are you using the honeypot technique as described here?
  14. What about: // Convert a regular array into a WireArray again $wireManufacturers = new WireData(); $wireManufacturers->setArray($manufacturers); Idea comes from here.
  15. Here is my final version, I post it here in case somebody needs it for a similar situation. Read the comment in code. // --Added remove method to the query. I did this because, otherwise, when a user make a 2nd edit to the current page (after the initial save) the "in_evidenza" checkbox would then be reset to 0. wire()->addHookAfter('Pages::saveReady(template=articolo)', function($event) { $pages = $event->object; $page = $event->arguments[0]; if($page->in_evidenza == 1) { foreach($pages->findMany("in_evidenza=1")->remove($page) as $new) { $new->setAndSave('in_evidenza',0); } } }); Could any forum moderator mark this thread as solved? Thanks!
Γ—
Γ—
  • Create New...