Jump to content

diogo

Moderators
  • Posts

    4,278
  • Joined

  • Last visited

  • Days Won

    78

Everything posted by diogo

  1. There's pretty much always a sensible reason when it comes from Ryan πŸ™‚
  2. They answered from PH. Must have been something with my account. They "refreshed" it, and I managed to post the review πŸ‘
  3. I'm having trouble posting a review. I write it, press the post button, and absolutely nothing happens 🀷 Anyone else has had this kind of trouble on PH?
  4. @mleu That's a very old post. Could you give more details about your problem please?
  5. @eutervogel I corrected that for you. And there's nothing to be sorry about πŸ™‚
  6. Ok, this is a bit puzzling. The string is there, but empty. If you add more items to the repeater, you get an empty string on all of them? Maybe you could also create a new tinymce field and add it to the repeater to see if it behaves in the same way.
  7. And, according to your screenshot, you didn't. The text formatters selector is empty. Since you have Tracy installed, What do you get in the tracy dumps if you bd() the body? <div id="content"> <?php foreach($page->sections as $x) : ?> <?php bd($x->body)?> <?= $x->body ?> <?php endforeach ?> </div>
  8. Hm, the content is being striped by a text formatter or by some setting in TinyMCE. Do you have any text formatter added in the body field? You could also create a new item in the repeater and write only "test" in the body to see if works with the simplest content possible.
  9. Do you get any result when you output the body unformatted? <div id="content"> <?php foreach($page->sections as $x) : ?> <?= $x->getUnformatted('body') ?> <?php endforeach ?> </div>
  10. Every repeater item is given an ID that you can access inside a foreach with $item->id (or $x->id, in the case of your foreach). You can see on the screenshot that you posted, that the ID of your single repeater item is 1110. This would be just to see if your foreach is correct, but as I pointed out before, the most important is to understand why the body isn't even appearing in the array. You are sure you added the body to the repeater field, and not to the home template itself?
  11. You say you created the field body in the repeater, but in that case, I would expect it to appear here besides the image field: To test the foreach, can you change your code to $x->id instead of $x->body to see if the IDs show up?
  12. Here you go πŸ˜‰ https://codingpad.maryspad.com/2013/07/19/interview-with-ryan-cramer-processwire-cms-founder-and-lead-developer/ Here are the interesting bits for this particular topic: Edit: I knew there was another one https://www.cloudways.com/blog/processwire-ryan-cramer-interview/
  13. @wbmnfktr I edited your post to remove the automatic embedding of the twitter feed and replaced it by the link only. It was huge πŸ˜„ @Pete Should we deactivate it? Doesn't even make sense to embed the whole feed when you link to it 🀨
  14. On a less positive note, this is a very interesting, and a bit scary, talk https://www.humanetech.com/podcast/the-ai-dilemma
  15. Gone! The best spam is the one that starts nice discussions πŸ˜‰
  16. Moderator note: @ngrmm I understand that this thread is aimed at German speaking developers, but to keep the moderation manageable, we only allow English in the forum. Could you please edit the content of your post to be in English?
  17. You can also use the selector with the children() method: $page->children("children.count=0, sort=-date");
  18. This is exactly what creates the upgrading problem that Ryan is trying to avoid, since data is in HTML already in all processwire installs.
  19. Usually I set the font size in the html or body tags, and then use rem for pretty much everything else. I use em in the rare occasions that the size of an element should definitely dependent on the size of the parent, but usually I want the flexibility to control them independently of each other with rem. When you use em on everything, it's very easy to overlook small differences between the text inside elements and you end up having the same kind of text set in 11.5px and 12px in different places, for instance. As for the base size itself, it depends a lot on the layout. Some layouts account for large screens, and divide into multiple columns. On those cases the base font can usually stay the same though any screen size, and can be set in pixels or em. On more static layouts I normally want the font to grow a bit with the screen width, but not too much (I mean, not proportionally. I want it to grow less and less as the screen becomes larger). For that I use a calc() to create a relation between the vw and the pixels. For instance: font-size: calc(8px + .7vw); And I usually want to define a minimum and a maximum sizes. This can be done with media queries, or simply by using the clamp function: font-size: clamp(15px, calc(8px + .7vw), 20px); This defines that the font grows with the screen width but never becomes smaller than 15px or larger than 20px.
  20. Hm, for indexing, I would assume that's worse, since google would see it as a bunch of different documents. Also, I'm not sure about how efficient it would be to have pdf.js running individually for each page. I think you should separate indexing and viewing in two issues: show the pdf in a viewer, and link to it directly for indexing. I only checked pdf.js superficially, but I have the feeling that you could use it's api and css to control it as you wish. See this example from their page: https://jsfiddle.net/pdfjs/wagvs9Lf/, For what I've seen, you can also control zoom, and so on... Have a look at this video on how to build a PDF viewer with it. Maybe this is overkill for your project, but it's interesting for sure ?
  21. If you don't need specifically an imitation of a magazine, there might be other solutions. That one might be a good idea ? Did you see pdf.js from Mozilla?
  22. That's a tricky one. At least I didn't find anything like this some months ago. What about using something like Turnjs , which is for html5 content, not pdf, but use imagemagick to convert the PDFs to PNGs?
  23. if the DocumentRoot is now set to /var/www/html/pwire, there's no need to set the RewriteBase to the subdirectory anymore. Either leave them all commented, or uncomment only the first one: "RewriteBase /"
Γ—
Γ—
  • Create New...