Jump to content

asbjorn

Members
  • Posts

    182
  • Joined

  • Last visited

  • Days Won

    1

asbjorn last won the day on November 10 2020

asbjorn had the most liked content!

Contact Methods

  • Website URL
    https://www.asbjornness.no/

Recent Profile Visitors

6,063 profile views

asbjorn's Achievements

Sr. Member

Sr. Member (5/6)

72

Reputation

  1. Is there anybody here that is interested in taking over the responsibility/ownership the core translation to Norwegian at https://github.com/snobjorn/processwire-norwegian-language-pack-nb-no? And maybe the module translations at https://github.com/snobjorn/processwire-modules-norwegian-language-pack-nb-no as well. Reply here or send me a DM 🙂
  2. That sound like a good and also simple solution ? . Could you do a post, and maybe a link to a GitHub repo (?) in the Modules/Plugins subforum when and if you are happy with the results in the future?
  3. Do any of you have experience and/or solutions for auto generated alt text in ProcessWire? I use https://alttext.ai/ with a WordPress plugin for another site. But am not that experienced with API work to put together a working integration myself for ProcessWire using their API. Have anyone solved this using the mentioned service or otherwise, and care to share thoughts on the theme?
  4. Anyone heard anything about this the last year? ?
  5. With PHP 8.2 I get this error: Deprecated: Use of "parent" in callables is deprecated in /**/site/modules/TextformatterParsedownExtraPlugin/lib/ParsedownExtraPlugin.php on line 94 Is this something that could be fixed in an update of the plugin? ?
  6. Hi @netcarver. I cannot remember if I solved this. It was for a hobby project which since have change a lot, so I am not using the import script anymore. Also my web host has updated their system, so I cannot find any trace of what I did there.
  7. Do I need to keep the window open for the bulk mode to keep running? Or can I close it (and i.e. shut off my computer) and it will keep running until all the images have been smushed?
  8. I am not able to use my forums login information to access my profile at the Developer Directory (https://directory.processwire.com/). Anyone else having this problem / know how to get access? Is the directory still "working"? Haven't gotten the design update that the rest of processwire.com has.
  9. The console and testing with a string works fine. And thanks for the input on the InputfieldPageName module settings, I'll try that. The problem is when I am working with the page title ($page->title) and not a string. Using $sanitizer->pageNameTranslate($page->title) outputs "a-young-doctor-039-s-notebook-amp-other-stories" when in a template. ($sanitizer->pageNameTranslate("A Young Doctor's Notebook & Other Stories") works fine). Update: Turning off "HTML Entity Encoder" settings for the page title field works. Is that recommended?
  10. I have been trying to do the same as @Hurme, without luck. My page titles have `'` and `&` and other special characters. I.e. the page title "A Young Doctor's Notebook & Other Stories". I have tried pageName, pageNameTranslate and pageNameUTF8 in different variations with the value "true" and/or "$beautify". But the results are always something like: a-young-doctor-039-s-notebook-amp-other-stories a-young-doctor--039-s-notebook--amp--other-stories Copy/paste of the page title "A Young Doctor's Notebook & Other Stories" into the name edit field in dashboard results in a-young-doctors-notebook-other-stories , which is what I am trying to achieve. (A bonus would be if "&" was translated to "and" as well.)
  11. I got my shared host to move me to a server with MySQL 8. What I am experiencing is that the language codes (no_NO and/or en_US.UTF-8 variations) does not work in /wire/modules/LanguageSupport/LanguageSupport.module. It might or might not be MySQL related, and I have found no solution yet. But I thought I should just put it out there, so as multi language site owners could be aware if the issue should show.
  12. Hi @Zeka. I tried this, and it worked when I was viewing the counted number on a page with my default language. But when I switched to viewing it with my non-default language, I was not able to do the opposite. I could not get the "status1023" where the ID was of my default language to work. Any suggestions here?
  13. I found no other simpler solution, so I went for a loop through of languages, and summarized the count. // Save current language $savedLanguage = $user->language; // Loop through languages // Find the other language // Code is only for two languages as of now foreach($languages as $language) { if ($language->id == $savedLanguage->id) continue; if(!$page->viewable($language)) continue; $user->language = $language; $languageCount = $pages->count("template=post"); } // Revert to saved language $user->language = $savedLanguage; // Total count // Add up current language count and the other $postCount = $pages->count("template=post") + $languageCount; // Output number echo $postCount;
  14. Say I have a blog with 50 blog posts in Norwegian, and 10 of them are also translated into English. How do I use $pages->count() (or another method) to count them and show the total in a template file? I have only gotten as far as getting the number 50 when viewing the Norwegian version, and the number 10 when viewing the English version of the page.
×
×
  • Create New...