mel47

Members
  • Content Count

    229
  • Joined

  • Last visited

Community Reputation

62 Excellent

About mel47

  • Rank
    Sr. Member

Profile Information

  • Location
    Montréal, Canada

Recent Profile Visitors

1,225 profile views
  1. Hi I discovered ag-grid documentation (since I solved all my Rockfinder problems, thanks!). I have really general questions. How I should decide what to put in BeforeInit vs AfterInit? For example, why the visible/hidden column are in AfterInit? I want to have a modified version of YesNo plugin. How I can do that? For now, I rename with a slightly different name and add it in /assets/Rockgrid folder. Is it the good way to do it (it works BTW)? Where I should put CSS file? I added in /assets/Rockgrid/style.css and link into my PHP file. However, for some reasons, I'm not able to use row classes. The class is well added in html but CSS classes's are overridden. However If I used instead inline CSS directly in the JS file, the row is correctly styled. I have many Rockgrid fields, sharing some columns. How I can define some common column headers (definition, style, etc..) instead of re-write on each field.js file? Thanks! Mel
  2. mel47

    Wow, thanks so much @PWaddict! I saw this post by chance this morning. Those hour differences on my server always annoyed me but I never searched to solve them. And you just give the perfect solution! Mel
  3. Thanks. Effectively working, I messed up titles of fields. Feel a little bit noob...
  4. Thanks! Was able to successfully display children/parent pages. Looks like this : $contact = new RockFinder('template=contact', ['title', 'parent_id']); $org = new RockFinder('template=organisme', ['title']); $contact->join($org, 'contact', ['id' => 'parent_id']); return $contact; However, I can't add any other fields like I normally do: $contact = new RockFinder('template=contact, include=all', ['title', 'parent_id', 'nom', 'prenom']); I guess it have to be done after the join or have to be written in a different way? I couldn't find any example on your documentation similar to that. Thanks again! Mel
  5. Hi, I use a slightly modified version of http://modules.processwire.com/modules/textformatter-glossary/ to achieve this task. I'm not sure if it's exactly the same mechanism, though. I will eventually test yours and see if it suits my needs. Mel
  6. mel47

    ah ok, it's strange. I forgot to mention, but it was already set as required. But I get full length on frontend. Anyway, it's not the most important thing...
  7. mel47

    Hello, Just a quick question/confirmation. I set a maximum length for textarea to 200 characters. However, I was expecting some kind of warning to user before saving (else the red color of the counter). But it seems not, and the page is saved without problem. Is it the expected behavior? Thanks Mel
  8. Hi, Still digging in the module. I have 2 questions: Does it have a limit of columns to be added? For now, I have 22 columns + 17 columns added with ->addField. It's probably too much: it works but it's really, really slow (minutes) and freeze everything else. Strangely I just remove a couple of fields (~5-10) and it's appear rather quickly. All those fields belongs to 1 single template (so just left joins). I have ~200 rows. In fieldtypes supported there is a file named "pagestable". I guess it's not "Profields: Page table"? Anyway it doesn't work with ->addField, it just print id. I search for another syntax, but I couldn't find it. Thanks again Mel
  9. @bernhard Thanks!!! I should have written before... Anyway, I can continue my exploration!
  10. Hi. I'm searching since a couple of days why I get this behavior. I follow your example for pages but it never display with separator (in my picture id=1284 or 1286 or 1290). I have no idea why, maybe an expert eye could spot something. $finder = new \ProcessWire\RockFinder('template=activite', ['title']); //really simple example $field =$finder->addField('discipline', ['title']); $field->separator = "|"; return $finder->getSQL(); SELECT `rockfinder`.* FROM /* original pw query */ (SELECT pages.id FROM `pages` WHERE (pages.templates_id=58) AND (pages.status<1024) GROUP BY pages.id ) as `pwfinder` /* rockfinder */ LEFT JOIN ( SELECT `pages`.`id` AS `id`, `title`.`title` AS `title`, `discipline`.`discipline` AS `discipline`, `discipline`.`title` AS `discipline:title` FROM `pages` /* --- join title --- */ LEFT JOIN (SELECT `pages_id` AS `pageid`, `title`.`data` AS `title` FROM `field_title` AS `title`) AS `title` ON `title`.`pageid` = `pages`.`id` /* --- end title --- */ /* --- join discipline --- */ LEFT JOIN (SELECT `discipline`.`pages_id` AS `pageid`, `discipline`.`data` AS `discipline`, GROUP_CONCAT(`title`.`data` ORDER BY `discipline`.`sort` SEPARATOR ',') AS `title` FROM `field_discipline` AS `discipline` LEFT JOIN `field_title` AS `title` ON `title`.`pages_id` = `discipline`.`data` GROUP BY `discipline`.`pages_id`, `discipline`.`data`) AS `discipline` ON `discipline`.`pageid` = `pages`.`id` /* --- end discipline --- */ ) AS `rockfinder` ON `pwfinder`.`id` = `rockfinder`.`id` /* end rockfinder */ Thanks!!
  11. mel47

    Hi, Thanks for this module, it's quite useful, and it's work very well. However, I still wondering which icons I can use? I can't find anywhere a list or a reference to an iconset used by the module. Mel
  12. mel47

    ok thanks for answer. I will think if I should or not change my structure.
  13. mel47

    Hello! Do you think it's easy to convert a Repeater -> PageTable ? I don't know enough to see if the existing action PageTable->repeater could be inverted. Thanks!
  14. Thanks, looks pretty amazing even for my very small testing. I generally learning by reading other's code examples. Since there mostly anything, I have a quick question. I could display really easily page and repeater independently. But is it possible to display the title of page found inside a repeater ? For now I only have id. I tried many ways, but without success, but I'm not sure if I'm trying to do something impossible or not. Thanks!
  15. OMG @jmartsch and @bernhard, success!! I tried the new version on my production website and it's working!