clsource Posted July 26, 2016 Share Posted July 26, 2016 Hello, I made this clone of the Ghost Blog System (http://ghost.org) for demo of the Wire Render Pattern as well as a multi language site and menu system. https://github.com/NinjasCL/pw-ghost As always MIT licence. Reveal hidden contents 17 1 Link to comment Share on other sites More sharing options...
szabesz Posted July 26, 2016 Share Posted July 26, 2016 Thanks a lot for sharing! I will definitely take a closer look at it as soon as I have the time. 1 Link to comment Share on other sites More sharing options...
Sergio Posted July 27, 2016 Share Posted July 27, 2016 Very interesting template setup with all the params and helpers, @clsource! 1 Link to comment Share on other sites More sharing options...
clsource Posted July 28, 2016 Author Share Posted July 28, 2016 Now you can see a fully functional website using this profile http://ninjas.cl 3 Link to comment Share on other sites More sharing options...
szabesz Posted July 29, 2016 Share Posted July 29, 2016 @clsource I have installed the profile, however, I ran into two issues: Quote Notice: Undefined variable: canonical in /Users/guru/Documents/MAMP/playground/pwclone_loc/site/templates/views/default_view.php on line 4 MENU Expand And most importantly: the home page is the only one that works, otherwise I get "Not Found The requested URL /[ANY-PAGE-REQUESTED]/ was not found on this server." errors. Why? Thanks in advance! Link to comment Share on other sites More sharing options...
clsource Posted July 30, 2016 Author Share Posted July 30, 2016 See if the htaccess is active. normally Processwire installer transforms htaccess.txt to .htaccess About that line if (!$canonical) { $canonical = wire('page')->httpUrl; } maybe I should change to isset or not null? 1 Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 Morning, I shouldn't have installed anything right before going to bed – Of course, it was the missing .htaccess file which I renamed to .htaccess.txt, so I managed to only prefix it with the dot... no comment About the !$canonical issue, I changed it to isset just to make sure I do not get any php error reporting, but to tell the truth I have not yet taken a look at the code at al. I will do so in the following days, because I'm interested in your Wire Render Pattern. BTW, one more issue to solve: are you sure that ghost/ghost.writer123 should let me in? It does not work, login fails. Link to comment Share on other sites More sharing options...
clsource Posted July 30, 2016 Author Share Posted July 30, 2016 Odd. Well you can always change the admin password $u = $users->get('ghost'); $u->of(false); $u->pass = 'your-new-password'; $u->save(); put that in the _init.php or another place. (later remove it when its done ) 1 Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 Thanks for your help! It was another error I made. It was the value of $config->userAuthSalt that I did not copy over from your config.php. 1 Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 @clsource It's me again You might want to add a "Cover image" to the About page too, otherwise we get "...Trying to get property of non-object in..." notices. It might even be good thing to first test if an image is uploaded or not, but this might be overkill since – in the case of a real site –, no one should forget to upload an image which is an integral part of the overall design. Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 On 7/30/2016 at 5:31 AM, clsource said: if (!$canonical) { $canonical = wire('page')->httpUrl; } maybe I should change to isset or not null? Expand I think it should be : if (!isset($canonical)) { $canonical = wire('page')->httpUrl; } You intention was to use wire('page')->httpUrl when canonical is not set/defined, right? The only page where it is set is the Author's (author.php). If I'm not mistaken... Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 Actually, I've found that the Author's page (such as /authors/lewis.carroll etc...) also generates varous Notices because of the "missing cover image" and also because of if(!$title), if (!$description) and others. Link to comment Share on other sites More sharing options...
clsource Posted July 30, 2016 Author Share Posted July 30, 2016 I should check those. What version of php are you using? What is your config for error reporting? Thanks 1 Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 I use PHP 5.6.10. I always set E_ALL in a development/testing environment (this is the case right now) so that I can tackle anything that is being reported Link to comment Share on other sites More sharing options...
clsource Posted July 30, 2016 Author Share Posted July 30, 2016 I was using PHP 7.x maybe thats why I didn't see those errors. I'll check with 5.6. 1 Link to comment Share on other sites More sharing options...
clsource Posted July 30, 2016 Author Share Posted July 30, 2016 I hope now it does not shows any more warnings Please get the latests changes in the github repo thanks Link to comment Share on other sites More sharing options...
szabesz Posted July 30, 2016 Share Posted July 30, 2016 No sign of any warning/notice anymore. Thanks a lot! I will probably turn this profile into a Foundation 6 based "base profile" of mine, in order to jump start my future projects. 1 Link to comment Share on other sites More sharing options...
szabesz Posted July 31, 2016 Share Posted July 31, 2016 @clsource I found that namespace Processwire; is missing form _main.php which can lead to Fatal Error when the compilation setting of a template is set to either Yes (template file only) or No (disabled compiler). Link to comment Share on other sites More sharing options...
clsource Posted July 31, 2016 Author Share Posted July 31, 2016 Fixed. Thanks 1 Link to comment Share on other sites More sharing options...
johnstephens Posted August 13, 2016 Share Posted August 13, 2016 The thing I love about my Ghost blogs is the writing UI: Write Markdown on the left, and it appears fully rendered on the right. It also has the coolest while-you-write image upload utility I've ever seen. That's not covered by pw-ghost, right? Not having Ghost's writing UI isn't a deal-breaker, and I can't wait to try this out. If I could replace my Ghost blogs with a ProcessWire equivalent, I'd love to forgo the chore of maintaining a Node server! Link to comment Share on other sites More sharing options...
szabesz Posted August 13, 2016 Share Posted August 13, 2016 On 8/13/2016 at 3:36 AM, johnstephens said: That's not covered by pw-ghost, right? Expand Sure, it's a gfx only design clone to demonstrate @clsource's Wire Render Pattern: 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted August 13, 2016 Share Posted August 13, 2016 There's a (node-based) clone of just the editor, so it could be created/added: https://github.com/durgesh-priyaranjan/ghosditor But one would need to strip out all the express(?) parts of it and replace it with php/pw code. Link to comment Share on other sites More sharing options...
teppo Posted August 13, 2016 Share Posted August 13, 2016 On 8/13/2016 at 3:36 AM, johnstephens said: The thing I love about my Ghost blogs is the writing UI: Write Markdown on the left, and it appears fully rendered on the right. Expand Gee, this part sounds familiar 3 Link to comment Share on other sites More sharing options...
LostKobrakai Posted August 13, 2016 Share Posted August 13, 2016 This does also have a side-by-side view (at-least in fullscreen mode). I think it's even configurable. 1 Link to comment Share on other sites More sharing options...
Macrura Posted August 13, 2016 Share Posted August 13, 2016 yes, it works on default theme (needs some CSS adoration on Reno) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now