thmsnhl

Members
  • Content count

    29
  • Joined

  • Last visited

Community Reputation

11 Good

About thmsnhl

  • Rank
    Jr. Member
  1. @abdus perfect! That's exactly what I was looking for, thank you!
  2. Thank you @Zeka for this thread I just realized that I had this already open in a tab but waaaaaay too far on the right hand side of the window, I will try to fit the example in to my project. But first I will have a look into GraphQL because this might also help me with future requirements.
  3. Hi everyone, I've recently hired at a new company and here I am evaluating the abilities of ProcessWire for our projects. I was able to meet almost every requirement so far, but there is one point I couldn't find an adequate solution for: outputting data to json. I am aware of modules like https://modules.processwire.com/modules/pages2-json/ (which does not seem to work for me) but I thought with a function like wireEncodeJSON this should be much cleaner. What I would like to achieve is outputting pages with according field values into an array to use this within javascript. My first attempt on this was: $jsontestOne = $pages->find(1001)->children(); echo wireEncodeJSON($jsontestOne); which outputs [{}] and afterwards I tried that one: $jsontest = $pages->find("template=basic-page")->getArray(); echo wireEncodeJSON($jsontest); which outputs [{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},...] Maybe you can point out where my mistake is. Thanks in advance!
  4. Hi Richard, I don't know if you still need this, but I managed to use a favicon without any issues. First: install the Reno admin theme Second: navigate to wire/modules/AdminTheme/AdminThemeReno/default.php Third: paste your favicon links into the <head>-area in my case line 56 <!-- Favicons --> <link rel="apple-touch-icon" sizes="57x57" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="<?php echo $config->urls->templates?>favicons/apple-touch-icon-180x180.png"> <link rel="icon" type="image/png" href="<?php echo $config->urls->templates?>favicons/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="<?php echo $config->urls->templates?>favicons/favicon-194x194.png" sizes="194x194"> <link rel="icon" type="image/png" href="<?php echo $config->urls->templates?>favicons/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="<?php echo $config->urls->templates?>favicons/android-chrome-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="<?php echo $config->urls->templates?>favicons/favicon-16x16.png" sizes="16x16"> <link rel="manifest" href="<?php echo $config->urls->templates?>favicons/manifest.json"> <link rel="mask-icon" href="<?php echo $config->urls->templates?>favicons/safari-pinned-tab.svg" color="#5bbad5"> <link rel="shortcut icon" href="<?php echo $config->urls->templates?>favicons/favicon.ico"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="<?php echo $config->urls->templates?>favicons/mstile-144x144.png"> <meta name="msapplication-config" content="<?php echo $config->urls->templates?>favicons/browserconfig.xml"> <meta name="theme-color" content="#ffffff">
  5. Thank you Acturus, got this code working now! But I'm experiencing another problem: I can't show more than 3 Tweets, even though I've set the limit in the module to 4...
  6. Has anyone solved the problem with links, mentions and hashtags yet?
  7. Thank you LostKobraKai, this worked straightaway. This community is awesome!
  8. Yes, exactly Peter.
  9. Thank you for the quick response. Could you explain a little more in detail where I have to define this hook and what has to be in there to render an image? I checked the module files for about an hour and still I'm not sure where to put my own code.
  10. Hi, I'm currently working on a small blog for a friend of mine, he wants to use external images as title Images in his posts and therefore I need some kind of backend gallery, to collect all URLs. To make this a little bit more manageable I want to include a thumbnail in the backend next to the URL field. Now I'm asking myself some things: Is there a solution already? I searched the forums and fieldtypes for something like this but did not find one. How can I create my own fieldtype to solve this problem? Maybe there is a "mix and match"-solution with URL- and Image-Fieldtype?! I'm thankful for every answer! Cheers, Tommy
  11. I removed all the files and restarted the Installation and the bug was gone...
  12. Hi, I just set up a server for a friend of mine and wanted to install the latest stable release, but I cannot finish the installation because of the following message: When I looked up this line I found: Could anyone please help me with this? Thanks, Tommy
  13. Hi nickie, thank you for your response. Good to know, that I'm not the only one with this Problem. I've also tried the same procedure with test fields and they worked fine.
  14. Hi everyone, I have trouble with one of my PW-sites, I wanted to disable the "admin theme"-field in the user-profile settings. My first attempt was to go to "Setup->Fields" -> "show built-in-fields" -> "admin_theme" -> "input->visibility" and change "Show this field only if..." to "role!=texter" now I hit "save" and checked if it worked correctly. It did not, so I decided to undo my steps and leave the "Show this..."-field empty. But now the radio-buttons in user-profile settings, to choose an admin theme, are gone completely and I have no idea how to fix this. I would really appreciate any help. Cheers, Tommy
  15. Yeah, I know but this image is created by YouTube and I haven't found a way to fix it.