Boost
Members-
Posts
127 -
Joined
-
Last visited
Everything posted by Boost
-
[SOLVED] Trouble Comparing id Property of PageArray Objects
Boost replied to Boost's topic in Getting Started
Sorry, I'm not following you. -
[SOLVED] Trouble Comparing id Property of PageArray Objects
Boost replied to Boost's topic in Getting Started
Ok. Here is my entire setup: 1) I created an Authors page to hold the authors. Here is the author template: 2) I also created a author field that is a page reference type. 3) So, I have my author field in my blog-post template. 4) And in my blog post page, I can add one or more authors. -
[SOLVED] Trouble Comparing id Property of PageArray Objects
Boost replied to Boost's topic in Getting Started
It's a page reference, field. It's asm select -
Hei! I'm facing an issue with comparing the id property of PageArray objects in my ProcessWire template. I've been working on a blog post template, and I'm trying to display the author's name by comparing the id of the author stored in the blog post page with a list of authors. Here's the relevant code snippet from my template: // Grab other pages' content $authors = $pages->find("template=author"); <?php foreach ($authors as $item) : ?> <?php if ($item->id == $page->author->id) : ?> <?= $item->title ?> <?php endif ?> <?php endforeach ?> However, this code isn't producing any output, even though I've verified that both $authors and $page->author contain the expected id values through var_dump. object(ProcessWire\PageArray)#232 (3) { ["count"]=> int(2) ["items"]=> array(2) { ["Page:0"]=> array(5) { ["id"]=> int(1117) ["name"]=> string(14) "boost-ai-staff" ["parent"]=> string(9) "/authors/" ["template"]=> string(6) "author" ["title"]=> string(8) "Boost.ai" } ["Page:1"]=> array(5) { ["id"]=> int(1120) ["name"]=> string(12) "bill-schwaab" ["parent"]=> string(9) "/authors/" ["template"]=> string(6) "author" ["title"]=> string(12) "Bill Schwaab" } } ["selectors"]=> string(15) "template=author" } object(ProcessWire\PageArray)#244 (3) { ["count"]=> int(1) ["items"]=> array(1) { ["Page:0"]=> array(5) { ["id"]=> int(1117) ["name"]=> string(14) "boost-ai-staff" ["parent"]=> string(9) "/authors/" ["template"]=> string(6) "author" ["title"]=> string(8) "Boost.ai" } } ["selectors"]=> string(0) "" } object(ProcessWire\PageArray)#232 (3) { ["count"]=> int(2) ["items"]=> array(2) { ["Page:0"]=> array(5) { ["id"]=> int(1117) ["name"]=> string(14) "boost-ai-staff" ["parent"]=> string(9) "/authors/" ["template"]=> string(6) "author" ["title"]=> string(8) "Boost.ai" } ["Page:1"]=> array(5) { ["id"]=> int(1120) ["name"]=> string(12) "bill-schwaab" ["parent"]=> string(9) "/authors/" ["template"]=> string(6) "author" ["title"]=> string(12) "Bill Schwaab" } } ["selectors"]=> string(15) "template=author" } object(ProcessWire\PageArray)#244 (3) { ["count"]=> int(1) ["items"]=> array(1) { ["Page:0"]=> array(5) { ["id"]=> int(1117) ["name"]=> string(14) "boost-ai-staff" ["parent"]=> string(9) "/authors/" ["template"]=> string(6) "author" ["title"]=> string(8) "Boost.ai" } } ["selectors"]=> string(0) "" } I'd appreciate any insights or suggestions on how to fix this issue. Thanks!
-
Hei @BitPoet Is there a way to integrate the MediaLibrary with the image field? What I see now is that MediaLibrary only integrates with the rich text editor, not a single field like an image. Is it true?
-
[SOLVED] Can't output a repeater item inside a fieldsetpage.
Boost replied to Boost's topic in Getting Started
Perfect! Thank you! -
[SOLVED] Can't output a repeater item inside a fieldsetpage.
Boost posted a topic in Getting Started
Hi, I have a fiedlsetpage called Hero. Inside this fieldset, I have a repeater called Buttons. The repeater has only one field type inside called button, that is a FieldtypeButton. Now, I'm trying to output this setup with: <div class="caption-cta-wrapper uk-margin-medium-top"> <?php foreach($page->hero->buttons as $btn) {echo $btn;} ?> </div> But the only output I get are some ids...like 1545 1021. What am I doing wrong? Thanks! -
[SOLVED] How do you divide your page into logical sections?
Boost replied to Boost's topic in Getting Started
Hei @Stefanowitschjust one question. For the FieldsetPage approach, do you create specific fields for it? For example, I have a single image field that I use in multiple templates, but for use on my FieldsetPage, I would like that the single image field have a fixed image height and width (which is specific only to one template). So, how do you work on this case? Do you create another image field, or is there a way to customise field properties inside the Fieldset page? -
Hei, When you have a long page, how do you divide it into logical sections so it has better usability and is easier for the user? For example, look at this mockup (ignore the header and footer). It has six sections. Is there a way to setup the fields on the page into sections to resemble the above, instead of one after the other like this?
-
Hei @BitPoet, I apologize for reviving this thread, but I have a quick question. Since I don't need to keep any data on my remote server, I moved the entire /site directory along with the database. However, things didn't go as planned. I suspect that the culprit is the $config->userAuthSalt. So, my question is, should I change/update the $config->userAuthSalt every time I export my database from my local development environment and import it into my remote server, or is it something I only need to do the first time I perform the import on my remote server?
-
I doubt this will happen. It appears that Ryan isn't inclined to work on it. I believe someone else will need to initiate this change, with Ryan providing final approval.
-
Hi, I recently realised that all of my files are located under /site/templates. I don't have anything in /site/assets. So I'm curious what that folder is for. I'm asking because I'm unsure whether I need to copy /site/assets to the production server during the migration. To put it another way, should I move the entire /site or only the /site/templates? Thanks
-
Solved! Thanks you!
-
Hi, Happy Friday! How about we start this sunny Friday with an Exception Error? ? This error is happening on my server, after I migrated all files (via rsync) and my database (dump and import) from my local dev. Is there anything I need to be aware of here? Thanks!
-
Hi, DB is not my thing, so any insights here would be very appreciated. How often should I analyse and optimise my tables when I use the InnoDB storage engine? I got the advice that I should do that after every DB import. For example, when I sync my local server with a remote server. What do you think? Cheers
-
Fortunately, @ryan isn't in sales? Despite three years passing, this thread remains silent, with no input from him regarding the suitability of ProDrafts for page staging ?
-
Thanks!
-
Hei, I'm wondering how easy it is to get support from someone in a Nordic country. Not that being in the Nordics is required, but it would be my first attempt.
-
Nevermind. Fixed. My problem was an extra field presented in the basic-page-edit.php
-
Yeah... I read everything. This is the only error I get from PW.
-
Hi, I have no idea why I'm getting this error when I try to view a page using the basic page (front-end editable) template. Why can't I front-edit it? Any tips?
-
How do I block a module from checking for updates?
Boost replied to Boost's topic in General Support
Perfect! Thank you. -
How do I block a module from checking for updates?
Boost replied to Boost's topic in General Support
You would be surprised at what human beings are capable of.? Thanks, but my module is not a core one. -
Hei, I installed a module a while back and modified it to suit my needs. Now I'd like to prevent checking for updates so that I don't accidentally update it and lose all my modifications. Any suggestions? Cheers