Jump to content

dragan

Members
  • Content Count

    1,891
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by dragan

  1. Not me. It sounds like a recipe for headache, frankly speaking. It really depends on lots of things... You should tell us more about your current site. What does it do? How complex is it? How many templates do you have now? How dynamic is it - or needs to be in the future? (for visitors and editors) How much functionality is there currently in terms of users interacting with the site (register, login, user profiles, voting / commenting....) ? Is it really just a "brochure" site (mostly static content for frontend-users, but manageable by editors) ? Or really more like a web-application? A redesign is not the same as porting content from CMS A to CMS B. If the site architecture will most likely remain, then I'd talk to the client and persuade them to allow budget to transfer the entire site in one go from Textpattern to PW (using the same frontend markup). In the long run, this would probably be more efficient. Once everything is running in PW, you could then later discuss about a redesign.
  2. Is that your actual code? There's a missing > there $config->urls->root vs. $config->urls-root https://cheatsheet.processwire.com/config/urls/config-urls-root/ If that was just a typo here in the forum post, you might wanna check Docker-related forum posts, e.g. https://processwire.com/talk/topic/10736-running-a-processwire-site-with-docker/
  3. It works perfectly fine if you just put the code inside a template. I guess using such functions as wireSendFile() inside Tracy aren't meant to work exactly the same (or not at all) as when you are viewing a PW page in the frontend. (I used an image file for testing instead of PDF, but that doesn't matter)
  4. What version do you need? I can see ancient releases @ https://github.com/icecoder/ICEcoder/releases?after=v2.2 ... way back to v.0.5.9 https://github.com/icecoder/ICEcoder/releases/tag/v0.5.9 (2012)
  5. Glad you have found a solution. It would be nice if you could share it here, so that other community members who have the same question in the future, will benefit from it. I guess you used a hook in the end?
  6. Do you mean Form Builder?
  7. I'm old enough to actually remember Macromedia Adobe Flash... sometimes you were forced to use that plugin just to display a (dynamic) custom font (sIFR). Oh the fun we had... sometimes I think the young generation of web developers don't know how lucky they are. 😃 </derail>
  8. $this->addHookAfter('ProcessPageAdd::buildForm', function ($event) { $form = $event->return; // If adding page under particular parent if ($this->input->parent_id === '1041') { // Add inputfield to form after existing title field // If you name the inputfield the same as the field you want to populate // then the entered value will be saved automatically $f = $this->modules->InputfieldText; $f->name = 'myfieldname'; $f->label = 'My Field Label'; $f->description = 'my field description'; $f->required = true; $f->attr('required', 1); // use HTML required attribute too $title_field = $form->getChildByName('title'); $title_field->label = 'Page Title'; $title_field->description = "page title description"; $form->insertAfter($f, $title_field); $event->return = $form; } }); I got this code a long time ago from somebody in this forum, and it works nicely. I can't find the original thread right now. It basically renders the field "myfieldname" in the first screen when you create a new page under parent id 1041. Not sure if that helps for your scenario.
  9. Well, it's certainly a sign that something's wrong somewhere. I never quite encountered the same problems (either separately or in combination, i.e. empty FB iFrame + can't delete modules). Things I would try / look at: Maybe your hosting company changed / updated something? (PHP version? .htaccess settings) Install Tracy Debugger and put your PW site into "debug mode" (in site/config.php). At the very least, you'll get some warnings / errors that you normally wouldn't see. Check server logs as well as PW logs See if there's any suspicious stuff in your browser JS console. Copy everything to the local machine and see how everything behaves there. Hopefully somebody else with more Form Builder experience will soon join in with help/tips.
  10. You might wanna clear the cache. (site/assets/cache/) __() seems to be a multi-language string somewhere, that is not being recognized. If that really comes from the core FB files or your own templates, I can't really tell.
  11. Well, there are several forum threads where similar issues were discussed. (storing user-prefs with sessions / cookies) https://processwire.com/talk/topic/21244-solved-redirect-based-browser-language-permission-to-change-language/ https://processwire.com/talk/topic/8733-autodetect-language/
  12. It looks like you have a textformatter enabled for file descriptions. Try to de-activate that HTML purifier textformatter.
  13. dragan

    COVID-19

    As if Corona wasn't enough, this morning Zagreb was hit by an earthquake. It seems that several hospitals were also damaged. Now instead of staying at home, several people are forced to go outside.
  14. No, I'm just genuinely surprised you didn't hear about that tool before, that's all. It's been around for quite a while. And yes, it works great. If you're doing frontend work the whole day, it's a great time-saver.
  15. You really only discovered this today? We're using it since years (with Gulp, Babel, Webpack etc.). Welcome to the 21st century 🙂
  16. @mjut Please don't place your question in more than one place. I read both of your posts, but I'm still not sure about the whole scenario. Please define what "even if I previously did chose Danish" actually means. Where and how did that choice happen? Did you create a link that stores language preference in a cookie or session? In your other post, you mentioned that visitors are coming to your site via QR codes. If you want people to see your Danish language content, then simply use your Danish language URL for the QR code, not the default one. There are many different strategies how to tackle such things, e.g. detect the user's browser default language and (if necessary) do a redirect. Or make the user click somewhere and store his/her preference in a cookie or session. From a usability point of view, you would create your landing page in a way that the users can quickly and intuitively switch language versions, if needed. The default PW multilang site profile has a nice commented working example (how to dynamically switch languages). Bottomline: If you did your homework re: information architecture / UX, no special technical "trickery" is needed. Just make sure your navigation and everything else (breadcrumbs...) in your site setup takes ML into account, and once the visitor is on "his/her" language version, they know how to get their respective language content.
  17. You can also create your own .ini file and place it wherever you like: https://www.php.net/manual/en/function.parse-ini-file.php Or a static file you only require/include when needed, from inside your templates.
  18. You mean a module? How do you post? The "traditional" way (form submit on click), or via AJAX? These topics may be related to your issue: https://processwire.com/talk/topic/19486-input-get-post-inside-of-process-module/ https://processwire.com/talk/topic/17168-input-post-empty-with-dynamically-added-input-fields/
  19. This one? https://modules.processwire.com/modules/textformatter-video-embed/ Did you actually set your CKE field(s) to use that textformatter? ("details" tab in field settings). Just installing that module won't do much.
  20. dragan

    COVID-19

    A work colleague has to find a new appartment till the end of March, because she got kicked out of the flat-share appt. The real-estate market is already unaffordable for most "normal" people in Zurich under "normal" circumstances. But findind something even halfway affordable in such a short period of time is crazy under such definitely-not-normal circumstances.
  21. @horst It seems that security threats are increasing in these times... hackers even attack hospitals now 😠
  22. and right now the site seems to be offline... ERR_CONNECTION_TIMED_OUT
  23. Nice look and feel. If you allow just a few remarks: On really large screens the main texts are too wide. I would either increase the font-size a bit, or define a max-width to make it more readable. The color contrast is insufficient (way below 1:4.5) for most text. If you care about accessibility, I'd adjust the colors accordingly. There's no h1 anywhere. And also no meta description. For SEO, I would also use a bit more text for <title> than just "Goldkinder".
  24. You can also take a look in the DB. Get the news template id from table templates, and do a query SELECT * FROM `pages` WHERE templates_id = 58
  25. What's your workflow? Does FB post directly to your DTP app? Or do you export entries as CSV and import those in your DTP app? Or maybe even "manually" via the API?
×
×
  • Create New...