-
Posts
484 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Gideon So
-
New post – Reconsidering the CKEditor 4 to 5 upgrade
Gideon So replied to ryan's topic in News & Announcements
Very much curious about what it is. Ryan has always surprised me in the past and looking forward to the new surprise. Gideon -
Hi @jploch I have the following JS error in the console. Failed to load resource: the server responded with a status of 404 (Not Found) fieldsettings.css Uncaught Error: [HMR] Hot Module Replacement is disabled. at Object.<anonymous> (main.js:1:273800) at Object.<anonymous> (main.js:1:273857) at i (main.js:1:110) at Object.<anonymous> (main.js:1:220711) at Object.<anonymous> (main.js:1:220891) at i (main.js:1:110) at Object.<anonymous> (main.js:1:273910) at i (main.js:1:110) at main.js:1:902 at main.js:1:912 And I see a lot of this error: Failed to load resource: the server responded with a status of 500 (Internal Server Error) __webpack_hmr Any reason why I saw all this error? Gideon P.S. I am using version 0,4 and install in a sub-folder.
- 14 replies
-
How may I populate a field with selected pages in the admin?
Gideon So replied to Sten's topic in General Support
Hi @Sten Please give us more details then we can provide better help. Gideon -
Hi @Boost I have mentioned this many times. This tutorial from Ryan should get you started. Gideon
-
Hi @Nomak I think you don't need to use these library to access the shopify api. Take a look at the following link: https://gist.github.com/calufa/c575b31291bb000fbf59 Gideon
-
How to delete or replace images in a images field?
Gideon So replied to RuiVP's topic in Getting Started
Hi @bilioso You need to set it in the image field setting. You can find the setting in the "Input" tab. Gideon -
Hi @Paul Greinke All page array in ProcessWire is PaginatedArray. Is the following suit your need? $array = $wireArray->getArray(); Get a PHP array of all the items in this WireArray with original keys maintained https://processwire.com/api/ref/wire-array/get-array/ Gideon
-
Hi @Paul Greinke How about this? <?php $pageArray_a = wire('pages')->find('template=release,name%=a'); $pageArray_b = wire('pages')->find('template=release,name%=b'); $pageArray_a = $pageArray_a->append($pageArray_b); ?> Gideon
-
Hi @Martinus No. I don't think you need to check if the page has children. Gideon
-
Hi @Neue Rituale Seems like a useful plugin. Thanks for sharing your work with the community. If there is a video to show how it works would be very useful. Gideon
- 8 replies
-
- 5
-
- fieldtype
- inputfield
-
(and 2 more)
Tagged with:
-
Show different layout if no children or siblings?
Gideon So replied to Roych's topic in API & Templates
Hi @Roych You may need $page->next() https://processwire.com/api/ref/page/next/ if($page->next()->id) { // Code with Sidebar } else { // Code without Sidebar } Gideon -
Show page reference field on another page and connect
Gideon So replied to Roych's topic in API & Templates
Hi @Roych Did you remove the page reference field in the gallery template and create another page reference field in the event template? Otherwise my code above won't work. Gideon -
Show page reference field on another page and connect
Gideon So replied to Roych's topic in API & Templates
I. Hi @Roych I see. I believe there is an individual event template. I think it is better to create a page reference field in the individual event template link the past event to the corresponding gallery page. Then in the event-list template: <?php $ events = $pages->find('template=event'); ?> <?php foreach($events as $event): ?> <?=$event->title ?> <?php if($event->event_gallery->count()): ?> <a href='<?=$event->event_gallery->url; ?>'>Event Gallery</a> <?php endif; ?> <?php endforeach; ?> -
Show page reference field on another page and connect
Gideon So replied to Roych's topic in API & Templates
Hi @Roych <?php $galeries = $pages->find("template=gallery-album"); ?> <?php foreach ($galeries as $galery) :?> <a href="<?=$galery->select_event_gallery->url; ?>">View Gallery</a> <?php endforeach;?> Gideon -
How to customize/modify the HTML generated by PW?
Gideon So replied to Lumi's topic in Getting Started
Hi @Lumi There is no ctime field in processwire. Please follow my example or Bernahrd's example and use created instead. Gideon -
Best way to move a Processwire site to a new server 2020?
Gideon So replied to modifiedcontent's topic in General Support
Hi @jon9china Nothing special to switch domain. Just remember to edit your config.php file and change $config->httpHosts to your new domain. $config->httpHosts = array('yournewdomain.com'); Gideon -
How to customize/modify the HTML generated by PW?
Gideon So replied to Lumi's topic in Getting Started
Hi @Lumi You can use the sort function. https://processwire.com/api/ref/fieldtypes/sort/ Something like the following I believe would work. $your_repeaters = $page->your_repeater_field->sort('created'); foreach($your_repeaters as $your_repeater) { //Your stuff goes here } Gideon -
Hi @bbeer Maybe you need to check your MYSQL / MariaDB version. Gideon
-
multi-instance and unpublished repeater items
Gideon So replied to Jennifer Stock's topic in General Support
Hi @Robin S You are right. The output formatting is off if pages are pulled from another ProcessWire instance. I am not sure whether it is intentional or a bug. For me it is not intuitive to use. Gideon -
multi-instance and unpublished repeater items
Gideon So replied to Jennifer Stock's topic in General Support
Hi @Jennifer Stock I am not sure I understand your situation. Do you have 2 ProcessWire sites which live in different folders. You want to access site B web data in site A? Do you set up ProcessWire multi-instances in site A? Gideon -
Hi @Michael PW Dev Welcome to the forum. The LanguageSupportFields Module is a core module that you don't need to download. Just click the install button will install the module and other required modules. Gideon
-
Hi @wishbone Glad that you sorted it out. Keep happy coding with ProcessWire. Gideon
-
Hi @wishbone $form[email] should be $form['email'] Gideon