Jump to content

Krlos

Members
  • Posts

    139
  • Joined

  • Last visited

Everything posted by Krlos

  1. Yes!, this happened to me, I forgot to add </body> and </html> tags.
  2. I can confirm it works in LiteSpeed, at least in my hosting (Knownhost)
  3. Hey @Guy Incognito Thankyou for your comment, that was the approach i followed. In the end I listened to @bernhard's advice. And so far it has been very successful for my use case.
  4. Hey @Nicolas and @Zeka. Thanks, I'm not php savy, but I will try those sugestions.
  5. Hi, I need to place an icon or label in some pages in my tree. I found that page list label allows to change the format for the label like this: {categories.title} {title} How can turn that into this: That label is page reference. Thanks in advance.
  6. Hey @bernhard, sorry to revive a thread of 5 years ago, but i'm working on a site with a lot of different type of data, and I'm having a hard time deciding how to organize the tree for easy administratation. But how to keep a visual hierarchy of pages inside the tree? For example: |__Lodging |__Hotels |__ Hotel 1 |__ Hotel 2 |__ Hotel 3 |__Hostels |__ Hostel 1 |__ Hostel 2 |__ Hostel 3 |__Cabins |__ Cabin 1 |__ Cabin 2 |__ Cabin 3 vs |__Lodging |__ Hotel 1 |__ Hotel 2 |__ Hotel 3 |__ Hostel 1 |__ Hostel 2 |__ Hostel 3 |__ Cabin 1 |__ Cabin 2 |__ Cabin 3 Wouldn't it be a bit tricky to have hundreds of items in the same page tree? What if you need to add 3 hotels, then 1 cabin, then 2 hostels? everything starts to mix. And how do you identify which are hotels and which are hostels. And how to avoid ending up with dozens of templates for each subcategory? I would like to know your experience with such a case. Thank you
  7. Hi @MarkE, Thankyou for your help, I will try your suggestion. Where should I put that code you posted?, before every hanna code block? This: $php = '<' . '?php'; $openPHP = $php; $openPHPNS = "$php namespace ProcessWire;"; $firstLine = 'if(!defined("PROCESSWIRE")) die("no direct access");'; if(strpos($code, 'namespace') && preg_match('/(namespace\s+ProcessWire(?:;|\s*;))/', $code, $matches)) { $openPHP = $openPHPNS; $code = str_replace($matches[1], '', $code); } if(strpos($code, $openPHP) !== 0 && strpos($code, $php) !== 0) { // prepend open PHP tag to code if not already present $code = "$openPHPNS\n$firstLine\n$code"; } else { // otherwise insert our $firstLine security check $code = str_replace($php, "$openPHPNS\n$firstLine\n", $code); } I don't understand this code: \ProcessWire\_(“….”) Should I replace that for this? <?php namespace ProcessWire; ?> Thankyou
  8. I think I will have to wait to fix this, I'm not php savy. Someone else might know a solution.
  9. Hi @adrian, Can you please elaborate your answer a little further, I have never used Profields Table field, and I have some doubts about how to use it for translations. Thank you.
  10. Hi Ivan, yes, I have this on my Hanna code PHP <?php namespace ProcessWire; ?> <?php $alojamiento = $pages->find("template=alojamiento, limit=10"); foreach ($alojamiento as $a): ?> ... More HTML and PHP code <a><?php echo __("Ver detalle"); ?></a> the last part with the a tag is throwing the error.
  11. Hi, I'm trying to use hanna code with translations but it gives me an error: Oh no… Fatal Error: Uncaught Error: Call to undefined function __() in site/assets/cache/HannaCode/guia_turistico_hanna.php I'm using: <?php echo __("Ver detalles"); ?> for translations output. Thanks in advance.
  12. @nbcommunication Thanks for this module. But I'm having a hard time to understand how to implement srcset in my websites. I have been using PIA (Pageimage assistant) to serve images with fixed width and then using Bootstrap 'image-fluid' class to fit the image. I have been experimenting with your module: I have 2 Mac laptops (a new MBA M1, and an old MBP no retina), using defaults rules (320, 640, 768x480 960w, 1024, 2048 2x). 1.- When I inspect the served images I get the same image in both laptops, in my understanding I should get different images based on pixel density of the device. 2.- Served images end up being bigger. for example, I have this blog section: In this layout, every image is 320 * 200 px (weight 21 kb), but the image being serve is 2048 * 1365 px (weight 438 kb) it fits beause it has width: 100% in CSS. So the question is, what benefit has the user in this scenario? Or I'm doing wrong?
  13. Hi @Gideon So, I tried that but for reason is not working for me.
  14. Hi, I'm having the same issue with bootstrap 4.5, I need to apply "active" class to the <li> element of the active link, but it's not working. How did you solve it?
  15. Krlos

    SeoMaestro

    Hi, I'm having and issue when sharing webpages using Seomaestro on WhatsApp. When I share a webpage copying the url to WhatsApp on desktop or mobile, I get no OG preview. If I remove the image field from Opengraph I get the preview of Domain and page title without the og:image. I have tested Opengraph on facebook and is working fine, I also tested on https://iframely.com/ and is everything seems ok. Has anyone had this issue?
  16. Hi @adrian, I can confirm this issue using your steps to reproduce. PW: 3.0.165 CK Editor: 4.14.0 Safari: 14.1
  17. Hello, I'm following your video, but apparently the code in the gist is not the same as the video?
  18. I am very interested in learning Tailwindcss, but I have no experience with the latest tools. How can I integrate Tailwindcss into my processwire projects and use postcss and purgecss to remove unused css.
  19. Hello, this module is great! I see that the image upload button is not available, I need to add an image, is it possible?
  20. Hello, I'm trying to integrate an external library, but when I try to call the library I get this error: Deprecated: Non-static method ProcessWire\WireData::get() should not be called statically in /Users/xxx/xxx/xxx/wellnessup/site/assets/cache/FileCompiler/site/templates/resultado.php on line 23 Any help is appreciated.
  21. You could create a generic user and distribute the access password to everyone.
×
×
  • Create New...