-
Posts
370 -
Joined
-
Last visited
Posts posted by mel47
-
-
Both are front end.
I think I will go with my first idea. Seems more complicated than is it in fact...
-
Hello!
The kind of thing I will really like to use!
-
1
-
-
Zone is maybe not the better word, sorry. To simplify, let's say section: internal (for the people from the organisation) vs website (for general public). On home page, you choose between those 2 sections by a button.
It's per-page (parent and its children) and it's mutually exclusive (meaning pageA will not be in the 2 sections). But I don't know the better way to assign a page (and its children) to the section.
-
Hi
Need advices before changing everything on my website. I need to add a different "zone" on the website. This subset of pages have a independent menu and banner. How I can distinguish pages from zone 1 to zone 2? It couldn't be by template, since some are common. I was thinking adding a simple checkbox to manually allocate the parent page, but I'm not sure what will happen to the hundred children pages. If I select the parent pages, does the children will also be selected? Or do I will to checked the checkbox for each of them everytime?
Home
Page1 - checkbox:zone1, templateA
Page 2- checkbox:zone 2, templateB
+++children ?, templateC
Page3 - checkbox: zone2, templateA
++children?, templateAOr does it something else? Something similar to field tagging but for pages?
Thanks!
-
53 minutes ago, adrian said:
Thanks for noticing that - good catch. It should be fixed in the latest version.
Sorry you're not finding it user-friendly - I agree it's become quite the behemoth in terms of config settings - it makes it very flexible it terms of the interface you can craft for your site editors, but I understand it can be a little unwieldy to configure.
The problem, IMHO, is the absence of mention in description of config. If it's written somewhere than these settings while appear in tab settings of a configurable page, I will not have search that much for it. But I don't blame, I have myself problems to well documenting my own code... ?
At least someone else can now find the information if they search the thread.
-
OMG I finally find it! ? A little bit not user-friendly, unfortunately. So after activating this configurable settings page, I finally discovered under "settings" a "Batch child editor setting". After going back to my BCE tab, the page selector is now there. Strangely when I removed this specific page from configurable pages (just for testing), the settings section disappear, however the page selector/fields to export are still sticking to my export CSV in BCE tab.
Thanks for your patience!
-
1
-
-
18 hours ago, adrian said:
Yep, it works, but if you want it to appear at the time of export then you need to check "User override CSV settings" - otherwise it will use the selector defined on the page's settings tab. Does that make sense?
Hum, I really feel stupid. It's not there either.
But to answer your question, nope for me it does make sense. Sorry... ? The description mentions only separator and stuff like this, nothing about page selector. I would never have activated this option since I don't really need/want to modify those options. But I guess if it works, I will be fine with that! ?
-
-
Sorry, I forgot to mention. I updated last week to the last dev version 3.105. It should be related to either PW version or PHP version, since on my production website, with the same settings and same data, it works fine.
I was able to delimited to a specific part :
Spoiler$abstracts = $pages->find("template=publication, categ_publi=1108, limit=4, sort=-year, sort=-date_sort"); // abstract foreach($abstracts as $c) { $congres[$c->congress] = $c; } <h4 class='title is-4'> <span class='icon is-medium'><i class='fa fa-globe fa-fw' aria-hidden='true'></i></span> {$abstracts->first()->categ_publi->title}s</h4> <div class='columns'>"; foreach($congres as $c) { $content .= "<div class='column'><div class='box'> <div class='title is-6'><a href='{$c->url}'>{$c->congress}</a></div> <div class='columns is-multiline is-inline-mobile is-centered'> <div class='column'> <span class='icon'><i class='fa fa-calendar fa-fw' aria-hidden='true'></i></span> <p class='is-inline-mobile'>{$c->congress_date} {$c->year}</p> </div> <div class='column'> <span class='icon'><i class='fa fa-map-marker fa-fw' aria-hidden='true'></i></span> <p class='is-inline-mobile'>{$c->congress_location}</p> </div> </div></div></div>"; }
I received error for the "congress field". I tried to change the data or even empty, but it didn't change the error. Even deleting "<div class='title is-6'><a href='{$c->url}'>{$c->congress}</a></div>" doesn't help. Everywhere else in the website where it uses this field, I get the same error.
Thanks!
EDIT: I refine more the issue by comparing my different fields, problematic or not. This field have some <sup></sup> (I export data from a other software, and it's difficult to remove them). Could it be the problem? It wasn't in previous version of PW.
-
-
On 28/03/2018 at 10:57 AM, thetuningspoon said:
Just released an update on GitHub:
-Added support for repeaters using the new InputfieldPage::renderReadyHook method (Will fall back to hooking into render if using on an older version of PW)
-Specifying processes is no longer required (I'm not sure why I limited the modules use to just specific admin pages before, but there may have been a reason. Let me know if you see any problems with this)I looked into the possibility of making the modal optional, but it's not such a simple task with the way the JS is currently structured. I would like to do some refactoring, but not sure if/when I'll have the time.
Hi,
I guess I found a side effect of your last update (I suppose because of the hook). The "New" link now appear on front-end when pagefield is used in formbuilder. It's not that I don't want even if it's contradict module's name (!) (in fact, could help me), but the link doesn't work anyway. Give a strange url : /undefinedpage/add/?parent_id=1050&template_id=46&modal=1
For now, I will downgrade, because I need this functionality in admin.
Thanks
-
1
-
-
Hi.
I'm eager to present you my website, officially released last week. It's multilingual website about a science&techno event (science popularization) which be held in May, in Québec, Canada. Organizers can register their events with Form builder and those events are display on front-end.
http://science24heures.comI take the opportunity to thanks everyone who answer my questions, update their module or even create new one! I will not name people, because I will for sure forget some...
I still have some issues with the website, but it's a work-in-progress, and I still have a lot of features I want to add for next year. By the meantime, comments and suggestions are welcome (just take in account it's not my job, but I volunteer for this organization for many years and suggested them to rebuild the website which was 12 years old (!))
Thanks again for PW and this community. I learned a lot of new knowledge (forms, hooks, svg more php and css, just naming some) along this journey...
Mélanie
-
7
-
-
ah, fell dumb, found it:
$uniques = array(); foreach ($page->date_rp as $date) { foreach ($date->date_gp as $d) { $uniques[$d->id] = strftime('%e %h', $d->getUnformatted("date")); } } foreach ($uniques as $id => $date) { $out .= $date; }
Thanks
-
Hi,
I need to find unique date. With help here, I'm able to filter to unique results. However, I'm not sure if I stored the date as datefield, so I can manipulate it after.
$uniques = array(); foreach ($page->date_rp as $date) { foreach ($date->date_gp as $d) { $uniques[$d->id] = $d->date; } foreach ($uniques as $id => $date) { $out .= strftime('%e %h', $date->getUnformatted("date")) ; //Exception: Call to a member function getUnformatted() on string } }
date_rp is a repeater. date_gp is a PageArray containing a page with the field date (datetime field)
Thanks!
-
Ah, didn't know that. Many weeks to don't understand what happens... Thanks!
-
Hi
Does someone see problem with those translation? Only the first ones (évenement and partenaires) are picked up by the translation file.
$out .= "<p class='column border'>". __('Évenement') . "<br />" . __('présenté par') . "</p>";
$out .= "<p class='column border'>". __('Partenaires') . "<br />" . __('majeurs') . "</p>";
Thanks

-
Hum. Doesn't work all the time. I still have the error message "please add map.google.com script in your document head" even if it's there.
Does something else could interfere? Because in some pages it's works fine.
-
Thanks, but responsive tooks too much space in desktop version, even if it's was fine in mobile version. I found a way to specify some CSS rules. Thanks.
-
1 hour ago, PWaddict said:
@mel47 Remove "&callback=initMap" from src and it should be ok.
Oh... Don't know why but I was sure it didn't work if not. Thanks!
-
Hi
I have frequently error : "initMap is not a function"
But the map is generally displaying correctly. Sometimes I have to refresh the page to get it.
I have this in <head>: <script async defer src="https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap" type="text/javascript"></script>
Chrome inspector: js?key=AIzaSyAXQ3WeU…callback=initMap:96 Uncaught Kb {message: "initMap is not a function", name: "InvalidValueError", stack: "Error↵ at new Kb (https://maps.googleapis.com/m…QnQ_ThTMb8XNFMZaOHo23Ya04&callback=initMap:146:49"} message:"initMap is not a function" name:"InvalidValueError" stack: "Error↵ at new Kb (https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:42:72)↵ at Object._.Lb (https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:42:182)↵ at ih (https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:96:104)↵ at https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:146:34↵ at Object.google.maps.Load (https://maps.googleapis.com/maps/api/js?key=MYKEY4&callback=initMap:21:5)↵ at https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:145:20↵ at https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:146:49" __proto__ :ErrorThanks
-
Hello,
Found a solution via css, but I don't know how to apply to it since this iframe have no id neither class. (I have others iframe which I doesn't want to center).
So how I can apply an id or class to the video iframe?
Thanks
-
Hi
How do I center the video? If it's embed in <p>link<p>, it's display. But if we do <p style="text-align:center;">link</p>, the video doesn't display.
I just have 2 formatters, this one and Hanna.
Thanks
-
Hello,
Got a simple need but couldn't find solution. I just want to check if a multiple checkbox have any value checked.
For sure this doesn't work because it's an array, but what it will be instead?
if ($page->date_sco == "1") // this but for multiple
Thanks
-
Solved. Changes on security settings by hoster.
-
1
-


[deprecated] RockGrid - powerful, performant and beautiful data listing tool
in Modules/Plugins
Posted
Why I'm always the one who still have the error.? I did install via upload of zip and I have /modules/RockGrid.
However, I still have errors:
1)The path is wrong for js, it should be : localhost/24h/site/assets/RockGrid/fields/test_grid.js
2)error mentioned earlier
Also, not related, but playing with the Tester, I wrote some wrong code which gave me a red error page. The problem is that I didn't know how to reset. (finally I reinstalled since of error above).
Thanks!