Jump to content

Sergio

Members
  • Posts

    531
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Sergio

  1. Hi kathep! You just need to store the images in a variable just like $content is. So, change the loop: if (count($page->images)) { $images = ''; foreach($page->images as $image) { $image = $image->size(800); $images .= "<img src='{$image->url}' /><br />"; } } ... rest of code // Primary content goes here $content = $assignment_w_heading . $semester . $images . $page->body; You can remove the <br /> after each image if you prefer.
  2. Adrian's Migrator does that => https://github.com/adrianbj/ProcessMigrator Allows automated migration and sharing of page tree content along with their templates and fields via JSON files. These JSON files can be imported into another PW installation to recreate the entire structure and content, including files and images.
  3. Terrific site! Congratulations to you and the team. My suggestion if to try to compress images a bit more, maybe using minimize.pw to automate the process. And enable GZIP for the static files.
  4. I've accomplished that using the module Jumplinks. See this thread and let me know if it helps: https://processwire.com/talk/topic/8697-jumplinks/?p=113416
  5. I don't a windows machine right now to test this, but try changing the location lines to: location / { try_files $uri /index.php?$uri&$args; } and give it a try.
  6. Hi @zyON, I just submitted a pull request: --- Now when a image is resized via API, upload this size variation too to S3. I also changed line 21 to make it run on PW 3+ --- Could you kindly review it?
  7. Just to be sure, do you have this line on nginx.conf? location / { try_files $uri $uri/ /index.php?it=$uri&$args; }
  8. Hi Manshu! It's on hold as I'm waiting for the release of Laravel's Spark and as I finish other jobs as well. Sorry for not be able to help!
  9. Give the footer a position relative and change, on the featured, the negative top to a negative margin. .footer { background: blue; position: relative; top:0; height:200px; } .featured { background: yellow; width:500px; height:420px; margin:-200px auto 0; position: relative; }
  10. Great! Could you detail a bit more how you guys are using it? Showing some screenshots and code if possible? It will be great! And if you can, post it on a public forum, so everyone can read it.
  11. Just to be clear: it's not required to install a language pack. A language pack is nothing more than strings already translated. ProcessWire will not depend on that, it will always use the default if a translation if missing. Do you have lots of data already? If you don't, you can do the following: On setup > languages 1 - Change 'default' language title to Danish 2 - Change 'da' language name to 'en' and its title to English In every page, copy the content from one language tab (on every field) to the other. (yeah, I know...) =========== You can also use the module Migrator to export everything to a json file, open it and find/replace things there (I never tried, though)
  12. I think the best way to find out what's happening is to you to download a fresh copy of PW and install the Multi language Profile (using a new database, of course). So you can see how things are done there. You'll have 3 languages available, English (default), Finnish and German, you can delete one of them and have just two.
  13. Thank you Wanze! I though exactly this but for some reason didn't work as expected. But it's probaly my fault as I was very tired yesterday. I'll take a look on the tutorial and try again later.
  14. Hi Wanze! I'm having trouble understanding the file structure yet. What happens with PW's _main.php and _init.php? Where the views get the project's css/js/etc.? What am I missing?
  15. Sergio

    DigitalOcean VPS

    I use serverpilot for simple sites, it works very well. Forge deploy it's better if you want more advanced features like SSL configured, integration with git for automatic deploys etc.
  16. Sergio

    DigitalOcean VPS

    Go for it. I'm using for a year I think and not a single problem. Take a look on http://forge.laravel.com/ to handle the setup and admin for you.
  17. I agree. And I'd like to suggest "Publish + Add new" to "Publish + Add Another" as it is a bit more clear in suggesting: "Another of the same template". One more thing, maybe it's a good thing to change the button to be like this example attached. Not advanced users may find it easier to understand.
  18. Good point! Obrigado!
  19. Hi Manaus, take a look on this thread: https://processwire.com/talk/topic/1451-show-highlighted-search-keywords-in-search-results/
  20. I saw it and changed it after. The $homepage is defined in my _init.php.
  21. @LostKobrakai suggestion is better, but if you decided to not add the field to the language page, the previous code will be: <?php // handle output of 'hreflang' link tags for multi-language // this is good to do for SEO in helping search engines understand // what languages your site is presented in foreach($languages as $language) { // if this page is not viewable in the language, skip it if(!$page->viewable($language)) continue; // get the http URL for this page in the given language $url = $page->localHttpUrl($language); // hreflang code for language uses language name from homepage $hreflang = $pages->get('/')->getLanguageValue($language, 'name'); if ( $language->isDefault() ) $hreflang = 'en'; // output the <link> tag: note that this assumes your language names are the same as required by hreflang. echo "\n\t<link rel='alternate' hreflang='$hreflang' href='$url' />"; } ?>
  22. Change this line: $hreflang = $pages->get('/')->getLanguageValue($language, 'name'); To $hreflang = $pages->get('/')->getLanguageValue($language, 'name'); if ($hreflang !== 'es') { $hreflang = 'en'; }
  23. After convincing my main client/boss of the advantages of PW over WP, I'm currently build his personal/company site new version. He's a Project Management expert and currently works for the United Nations. His website received around 2k unique visitors per day. Running WP on a Digital Ocean 4GB droplet with Varnish and Apache on Ubuntu 14. MySQL DB runs on another droplet with 2GB. There are other apps running on the same 4G server. I'm planning to use Laravel's Forge to admin the new version. It will make things easier I think. This new version will merge two websites, ricardo-vargas.com and macrosolutions.com.br (the company services). I'm posting the screenshots for the template and admin pages of a consulting service that today leaves at: http://macrosolutions.com.br/consulting/projects-offices-assessment-optimization-and-restructing/ on the old site. There's no front-end yet but I reckon posting these screens may help someone. Numbers: 43 Fields organized in 4 tabs.
  24. Is French activated for this page? And also on Home > Settings ?
  25. I use it to send marketing campaigns using Sendy. Works flawlessly, not complicated to set up, but not the easiest one either. Didn't test it using PW's api yet. SES is very cheap, my client used to pay $100-200 on Campaign Monitor and now pay less than $5. Thanks! I'll take a look on Mail Gun too. I heard about SendGrid, 12k free/month.
×
×
  • Create New...