Jump to content

Gideon So

Members
  • Content Count

    286
  • Joined

  • Last visited

Community Reputation

132 Excellent

About Gideon So

  • Rank
    Sr. Member

Profile Information

  • Gender
    Male

Recent Profile Visitors

2,606 profile views
  1. Seem this is a bug when set limit to 1. I will file a bug report to github. https://github.com/processwire/processwire-issues/issues/961 Gideon
  2. Hi, I have a image field which set limit to 1 and it works fine until I upgrade the core to 3.0.137. Everytime I try to upload a image to the field, it causes the following error: Recoverable Fatal Error: Argument 1 passed to ProcessWire\Pageimage::setOriginal() must be an instance of ProcessWire\Pageimage, null given, called in /home/web/processwire/WireCore-3.0/core/PageimageVariations.php on line 257 and defined (line 1334 of /home/web/processwire/WireCore-3.0/core/Pageimage.php) When I reload the page and try to edit the page, the backend looks like the following screenshot. The old image is not deleted. And I found that the image record still exists in the database. Any clue is welcome. Gideon
  3. Hi @JeevanisM, Let me see. You should have code like this: <a href="<?php echo $page->pagefile->httpUrl; ?>">Click here to download</a> The code above should output a link to download the file. Gideon
  4. Hi @iNoize, Go check your FB app settings and remove all unnecssary permission. Gideon
  5. Hi @JeevanisM, Try this: echo $page->pagefile->httpUrl; $page: the current page pagefile: the page file field httpUrl: the full url of the pagefile The whole statement means echo the full url of the pagefile in current page. Hope this helps. Gideon
  6. WOW. This is very impressive. Gideon
  7. Imho, This functionality really should be in the core Gideon
  8. Hi @Vaei, Oh. Yeah. I was on the bus when typing. Glad that you make it right yourself. Gideon
  9. Hi @Vaei, You can do this by adding a css style to the head bar. HTML <header class="fixed-top"> Your menu here </header> CSS .fixed-top { position: fixed; top: 0; } Gideon
  10. Hi @Salah-eddine Etangi, Welcome to the forum. Can you show us any error you saw when you access the backend (admin space)? Gideon
  11. Hi @franciccio-ITALIANO, Try this great module. http://modules.processwire.com/modules/markup-sitemap/ Gideon P.S. Oops. 1 minute late....
  12. Hi, I have a strange problem as below: Linux box Chrome always serves jpg files instead of webp files but Firefox does serves the webp files. Mac Bookpro Both Chrome and FireFox serve jpg files only. Any clues?? Gideon P.S. Solved. Seems like it is a browser cache problem.
  13. Hi @Jim Bailie, You can use a page reference field. Gideon
  14. Hi @stanoliver, Try if($page->path == "/categories/cars/") { Do your thing here. } Gideon
×
×
  • Create New...