-
Posts
343 -
Joined
-
Last visited
Profile Information
-
Location
Montréal, Canada
Recent Profile Visitors
2,962 profile views
mel47's Achievements
Sr. Member (5/6)
94
Reputation
-
mel47 started following strftime PHP7.2 (solved) , Remove doublons , Remove the truncated from the content [solved] and 2 others
-
Hi, I try to code something I've already done in another context, but since field is a text than a page, it seems to doesn't work exactly the same. foreach ($prize as $awardees) { $year = $awardees->year; //Problem is here; I got many times each year echo <h3>{$year}</h3>; //output : 2024 2023 2023 $allbyYear = wire('pages')->find("has_parent=1153, year=$year"); foreach ($allbyYear as $winner) { echo $winner->title; // output winner1 winner 2 winner 3 winner 2 winner 3 } } How I could only have 2024 and 2023? Thanks Melanie
-
Hello @Ade I can give you my opinion as a non-professional, building websites (now at the fourth, over 6-7years) on my free time for organizations I work as volunteer. As others said, you will definitely have to learn PHP but honestly my basic knowledge of loops and functions is quite enough to do get a pretty impressive result. For sure, you will need to invest time, way more than those experienced people. And code will not be as optimized, but it works... However I can't emphasize enough how helpful and kind are the people in this forum. If you show you did an effort, you will never receive those passive-aggressive "RTFM" answers as in my previous CMS forum... So if it's a project on which you want to invest time and efforts, you will get way better satisfaction than with a premade website builder (which apparently you already tried). PW is not dependent of a type of website (or doesn't have a big catalog of theme) and you can build whatever you want. Which is cool but could scary coding beginners as us. However, docs, forum and examples provided at download are quite enough to start your first structure and have a functional blog. I oversee however you may need help from community for some more advanced functions. Which is fine. I clearly see amelioration from my 1st website to the current one, so if you focus on only one project, chances are it will become quite good!! Good luck! Mel
-
Thanks, success! For the sake of ulterior reference : str_replace($short, '', $person->content);
-
Hi No success on forum unless I didn't have the good keywords... I created a short sentence using $short = sanitizer()->truncate($person->content, 150); But then I want to remove this sentence from the content. The usage is a accordion (clicking the sentence open the full text, but without repeating the same sentence again). Thanks! Mel
-
Hello, Sorry if it was not clear, I think it wasn't also in mind. After thinking again about it, I just switched everything to a RepeaterMatrix and it becomes way easier. Thanks, Mel PS but to answer questions : there is only one page (a basic-page) who should listed all members. And I realized I shouldn't use at all member template, since I don't want individual page for each member.
-
Hi @Robin S, Yes it works perfectly! It's wonderful, thanks so much!!!
-
Hello, That was my first guest, but it didn't work. However it finds the good page. But then, the field is not appearing. Image from page 1042 is without publication_date field : I'm not sure if I don't have the good syntax or if it's a limitation? Thanks.
-
Hello, I'm stuck since way too much time for something probably easy... I have those pages and (templates) -Home -> Existing page on website --About us (section) ---Committees (basic-page) -> Existing page on website ----Executive (section-admin) -----Member 1 (member) ---Awards (basic-page) -> Existing page on website ----Prize X (section-admin) -----Awardee 1 (awardee) I have main.php and basic-page using regions, it works. However I fight on how listing members on basic-page. Do I should use the member/awardee template and render in basic-page? Or you I should use section-admin template and then, by children type, do some different markup? Thanks
-
Hi, I want to show some custom fields from an image depending on the page id. However just a showIf = parent.id=1042 doesn't work. (1042 is the page, not the image) Is it possible by a different syntax? Thanks Mel
-
Thanks so much, problem solved.
-
Hi, From 3.0.126 Just realized I also have the date in english in backend (in lister for example). And also in another website (in backend but not frontend). Not sure if it was like this before since I never really have a date column in lister. This website in on a PHP7.4 version. Thanks
-
Hi, I updated recently to PW 3.0.233. My website is in french (default) and english. I realized all my dates became english on frontend. I didn't modify locale (fr_CA.UTF8) from languagesupport-module, neither anything from my template. Most used something like strftime('%A %d %b', $item->getUnformatted("date")). An important information is that my prod server is still on PHP 7.2, so it should not normally be deprecated. Does something change in PW? Or what do I should changed at this time? Thanks Mel
-
Hi, I used this module since long time and it worked fine. But I wanted to change an address today and I got an REQUEST DENIED error. I didn't change anything to my API key. I just check, and Geocoding API and Maps JavaScript API are enable. I updated to 3.0.0 module also recently, so I don't know if it's related or not. Thanks
-
Hi @thetuningspoon Thanks! I took 3.1.6 from GitHub, it doesn't seems to be push to PW modules repository. But anyway, it works perfectly now!
-
Hi, In readme it said that it have an automatic cleanup (I do have Lazy cron installed). How I can verify if it works (or in fact why it doesn't)? The list is growing and it doesn't seems to be deleted since I installed the module 3 years ago! Thanks Mel