Jump to content

formmailer

Members
  • Posts

    319
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by formmailer

  1. Great additions Ryan. Talking about the checkbox input field: yesterday I was looking for an option to have a checkbox checked by default, but I couldn't find it. Would it possible to add this? /Jasper
  2. Thank you for your great suggestion, Adam. I actually knew that a.header with display:block: would behave like any other div. The only thing was that I didn't think of doing it that way until you suggested it. I absolutely agree that it's better to avoid javascript when it isn't needed, like here. But I am still glad I didn't think of this solution in the first place and just asked the question. I learned about PHP-powered javascripts, including .js in php files, json config objects and still ended up with the easiest and cleanest solution. That's why I love this forum. Thanks guys! /Jasper
  3. Ray, I enjoyed reading your case study. Thanks for sharing! /Jasper
  4. Thanks for your replies, guys! I didn't think of including the .js file, but since I'd like to have as little inline javascript as possible (for performance reasons), I didn't choose this method. I didn't know that you could php-enable javascript files. This is good to know for the future. I also thought about this, but on the development server, this site is running in a subdirectory, so the link wouldn't work there. Not a big issue, but nice to avoid. The problem here is that the div doesn't contain anything.... it's just a background. I ended up using Soma's solution. It works great. Thanks again to all of you! 8) /Jasper
  5. Hi, This might be a dumb question, but my jquery skills are still somewhere below zero. I do have the following jquery code in my external .js file. And it works fine, but, for maintenance and reusebility reasons, I don't like having the target url hard coded in the .js file. But I assume it isn't possible to pass the PW api $config->urls->root to this external .js file, would it? /*Make header div clickable*/ $(document).ready(function() { $('#header').click(function(){ window.location = 'http://www.mysite.com/'; }); $('#search_form').click(function(event){ event.stopPropagation(); }); }); /*End header div*/ /Jasper
  6. Nico create a blog module. I haven't tried it myself, but you could give it a try: http://processwire.c...__fromsearch__1 Processwire has built in user management with different user roles. Is that what you are looking for? jQuery for the backend is included. If you want to use jQuery on your frontend, you would simply call jQuery from your template. Why would you need this? I agree with SiNNuT that PHP should be in the templates, modules etc. As I see it (simplified but still...) fields can be populated from the admin by editors. Templates and modules are created by designers/coders. Would you really want to have editors writing php code? /Jasper
  7. Duh... why is ProcessWire so easy... I am always trying to do things the complicated way. Thanks! /Jasper
  8. Figured it out... As usual it's my mistake... When using a variable, I need to use quotes. if($child->link_intern_url) { $linkurl = wire('pages')->get("$child->link_intern_url")->url;} /Jasper
  9. I am doing something wrong. This is the exact code I am using: if($child->link_intern_url) { $linkid = $child->link_intern_url; $linkurl = wire('pages')->get($linkid)->url;} When I enter an ID manually, instead of the $linkid variable it is working. The field link_intern_url is a page reference field. /Jasper
  10. It's in a function, so $pages->get(1093)->url; doesn't work there. But outside the function that's working. /Jasper
  11. Hi, I am trying to find the url of some pages, I have the page ID so I figured that something like this should work. $linkurl = wire('pages')->get(1187)->url ... do something ... $linkurl = wire('pages')->get(1186)->url ... do something ... $linkurl = wire('pages')->get(1093)->url ... do something ... $linkurl = wire('pages')->get(1097)->url ... do something ... But whatever I try I get the root url as $linkurl. I even tried it with ->title, just to see what happened. Every time I got the title of the homepage. Am I doing something wrong or is wire('pages')->get(id) not working? I use the latest commit. //Jasper
  12. Thank you Ryan. I was looking for a way to make the 404's easily available for editors, so that they could react on these. But I guess you are right, probably it would be overkill to do this. They can get the data from the webstats and the webmaster tools. /Jasper /Jasper
  13. Hi! I would like to get an notification/overview of links that result in a 404 error on my site. This includes links on external sites and internal links. Would it be possible to save the $HTTP_REFERERs resulting in a 404, somewhere in the database? /Jasper
  14. I agree (and not just because mine are already on Github )/Jasper
  15. This link results in a 403 error. Maybe that's why the image couldn't be embedded?
  16. Soma, you were absolutely right. Clearing the browser cache solved te problem. Thanks!
  17. I cleared the PW cache before testing, but didn't clear the browser cache. Will try that later today. /Jasper
  18. I replaced /wire/modules/Inputfield/InputfieldTinyMCE/plugins/pwlink/editor_plugin.js with the Soma's version, but for me it looks like the issues are still there. Just got an empty link and it isn't possible to edit an existing link. Instead I have to delete the link, and add a new one. /Jasper
  19. I have similar issues on my dev. site (running xammp). I can't change existing links, but have to delete the link first and than create a new one. I also ran into the empty link issue. For some reason I haven't reported the issue. I think because I blamed it on Windows running Xampp. I'll replace the file on my system and will test it. /Jasper
  20. Can you describe what the problem was? It might help others in the future. /Jasper
  21. You could try to install Fiddler (http://fiddler2.com/...er2/version.asp) to monitor all http requests and replies. This could tell you if it's the page you are trying to edit that throws the 404 or if it's something else... Do your fields have "strange" names? What happens if you remove your custom fields from your template (I assume you haven't been able to save any pages with these fields, so it wouldn't be a problem to remove these from your template. If you are unsure, make a db backup before doing this) /Jasper
  22. If you empty the whole cache directory, you can rule out all caching problems. There is no risk in emptying it, just give it a try. /Jasper
  23. Great stuff, Ryan! The funny thing is that I didn't think I would need repeatable fields... but after seeing the video I came up with several different uses of them in my current project. Obviously I didn't know what I was missing and/or what to expect of repeatable fields. /Jasper
  24. Ryan, Is this list of translatable files still up-to-date? By the way, /wire/modules/LanguageSupport/ProcessLanguageTranslator.module doesn't seem to have translatable phrases. //Jasper
×
×
  • Create New...