-
Posts
500 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Gideon So
-
Hi @nozero I believe the only file you need to modify is config.php. You need to modify the following: 1. $config->httpHosts I wonder if your hosting company allow remote access to the DB server. Gideon
-
Hi, The module works well so far but I have just found that it is not working when it is place in the home template. I get the following error message in the browser console. Uncaught TypeError: ProcessWire.config.InputfieldCKEditor is undefined I tried to place the field to other template and it works normally. Any hints?? Gideon
-
Hi @li181 Sorry for my late reply. Seems that your code in the template tries to prepend something that is not a page object to a page array. Would you mind post the code in your template? Gideon
-
Hi @li181 I think you can check Setup -> Logs -> Errors to have more info and then come back for further assist. Gideon
-
Try put $page->children into the custom PHP code field. Gideon
-
Maybe just $page->children in the custom selector field? Gideon
-
Yes. It is OK to add any fields to the user template. I have built a project with this method and see no draw backs so far. Gideon
-
Hi @BillH Thanks for you kind hint. It was the file permission of the assets and modules folder causes the error. It is fixed now. Gideon
-
I migrated a site to a hosting company which provides cPanel to manage the domain. I have some errors like the following: 2021-07-09 05:09:32.453548 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/.htaccess]: Permission denied 2021-07-09 05:09:28.141643 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1058/.htaccess]: Permission denied 2021-07-09 05:09:27.067796 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1093/.htaccess]: Permission denied 2021-07-09 05:09:26.775691 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1091/.htaccess]: Permission denied 2021-07-09 05:09:26.672877 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1099/.htaccess]: Permission denied 2021-07-09 05:09:26.471388 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1092/.htaccess]: Permission denied 2021-07-09 05:09:26.086949 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1053/.htaccess]: Permission denied I checked the permission if the .htaccess file is correct and I wonder why the web server keep searching .htaccess file in every folder in the site assets folder. Any hint is welcome. Gideon
-
Uncaught Wire Exception d/d sort with sort field defined.
Gideon So replied to rick's topic in General Support
Sorry. Wrong thread Gideon -
Hi @Krlos Can you post your code here? Gideon
- 7 replies
-
- styling
- pagination
-
(and 3 more)
Tagged with:
-
Hi @Krlos You can set currentItemClass = 'active'. https://processwire.com/docs/front-end/markup-pager-nav/ Gideon
- 7 replies
-
- styling
- pagination
-
(and 3 more)
Tagged with:
-
Hi @OrinTerry, I think it is the problem of Windows 7 rather than the CMS system. I am afraid that the problem may still persist after you migrate to ProcessWire. Gideon
-
How can invoke ->size() for a image in file field type
Gideon So replied to picarica's topic in General Support
Hi @picarica, Welcome to the forum. size() method only applicable to image field but not file field. Gideon -
I edited my original post. Please take a look. Gideon
-
Hi @milo695, <?php foreach ($homepage->children as $item): ?> <li class="nav-item"> <a class="nav-link" href="<?php echo $item->url; ?>"<?php if ($item->id == $page->rootParent->id): ?> class="active"<?php endif; ?> title="<?php echo $item->title; ?>"> <?php echo $item->title; ?> </a> </li> <?php endforeach; ?> This piece of code only loop through the children page of the home page. Therefore only first level menu items are shown. You need to loop through the sub page of each $item to show all the subitems. <?php foreach ($homepage->children as $item): ?> <li class="nav-item"> <a class="nav-link" href="<?php echo $item->url; ?>"<?php if ($item->id == $page->rootParent->id): ?> class="active"<?php endif; ?> title="<?php echo $item->title; ?>"> <?php echo $item->title; ?> </a> <?php if($item->children->count()): // if there is a child page, loop through all the child page ?> <ul> <?php foreach($item->children as $subitem): //loop through all the sub-page of the current $item ?> <li class="nav-item"> <a class="nav-link" href="<?php echo $subitem->url; ?>"<?php if ($subitem->id == $page->rootParent->id): ?> class="active"<?php endif; ?> title="<?php echo $subitem->title; ?>"> <?php echo $subitem->title; ?> </a> </li> <?php endforeach; ?> </ul> <?php endif; ?> </li> <?php endforeach; ?> You can modify it to suit your theme to make the dropdown work, Gideon
-
Hi @Jan Romero, Thanks for your reply. It works. Thanks. Gideon
-
For now, if a site needs non ascii page name, there are two setting needed to be set: $config->pageNameCharset = "UTF8" This is OK. $config->pageNameWhitelist = "A very long Chinese Character List" It is very hard to put all the Chinese character there. I always get complaint from my client that they find missing character in the url. Then I have to add that character manual. This is very painful and troublesome. If there is another way to whitelist all the non-ascii character would be a big plus to ProcessWire multi-language support. Forum thread: https://processwire.com/talk/topic/12776-pw-3012-support-for-extended-utf8-page-namesurls/?page=2&tab=comments#comment-146652 Feature request: https://github.com/processwire/processwire-requests/issues/393 If you think this feature is essential to you, please consider to up-vote the request to draw attention to Ryan. Thanks. Gideon
-
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
Gideon So replied to David Karich's topic in Modules/Plugins
Hi, Have this error this error this morning. Failed to init module: AllInOneMinify - The permissions (chmod) to delete old cache files could not be changed. ***** Solved by changing wrongly changed file permission of the minified css file. ***** Gideon -
Funding ProcessWire / More community efforts
Gideon So replied to pideluxe's topic in Wishlist & Roadmap
I third that. It can be very helpful for ProcessWire long term development. Gideon -
Hi @tcnet, New version works fine. Thanks. Gideon
-
Hi, I got this error too. PHP 7.1 MariaDB 10 ProcessWire 3.0.149 Gideon
-
Hi, Just installed this amazing module. All works fine but I am not able to embed FB videos. I get this error on the page: Video Unavailable This video may no longer exist, or you don't have permission to view it. Is there a solution for this? Thanks. Gideon
-
@cb2004, As usual, can you post us some code then we can try to give some suggestion. Gideon