Jump to content

ceberlin

Members
  • Posts

    542
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ceberlin

  1. I have a tricky question with the roles. i have those roles -(guest) -user -editor -admin -superadmin For security reasons I want to allow the password reset only for people that are "users" but have no higher role. (An editor should ask the superadmin instead.) Is there an easy way to check whether a user has ONLY the role of "user", and nothing else?
  2. You are right: URL works better than descriptions sometime: "/processwire/page/edit/?id=1" (home) Enjoy the rest of your holidays.
  3. Hi, the module breaks the admin backend of the frontpage here (which has no name!), if "initiial differenes proteced" is on: This(?): $(document).ready(function() { initialTitleConverted = InputfieldPageName.sanitize($(".InputfieldPageTitle input[type=text]").val()); }); causes this error: ReferenceError: Can't find variable: InputfieldPageName The effect is that all javascript is not working.
  4. Update: rendering is so easy I could not believe it. The code worked for me (in case anyone has the same question): foreach ($page->my_pagetable as $block) { $block->render(); } Now I could see for myself: isset makes the NOTICE go away but the clever switch trick from Joss does not work either. EDIT: This switch seems to work for now: <?php if(strpos($_SERVER['REQUEST_URI'],wire('pages')->get(wire('config')->adminRootPageID)->url) !== false) : ?> Credits to Nico
  5. I also see that NOTICE. With using isset I got it go away. Not sure your switch still works with isset, I did not code the front end output yet. By the way: what is the recommended way to output the content? I am really fallen in love with this extended module. I see the huge benefits. Very smart. I want to use ist that way - like in the example movie - that the pagetable elements render as inluded "blocks". Like the repeater field did it. masterpage - block - block Do you have a code example? I am curious how $page works in that context (does it refers to masterpage or block)... And how does the find work - does it find the masterpage if the searched for content is in a block? (Too bad that there is no full example/tutorial online yet - I found only fragments of explanations spread all over the forum.)
  6. +1 for a filtering out all ".json" files. I do not need to check here all those language translation files and files that the proflle exporter uses.
  7. WHOW!. - looks like it ! I could not figure out how to change the preset of a page field that appears as a select. (I would love being able to change the preselected page id). That tiny checkboxes/ selections is, where editors overlook something easily and presets would be very helpful. Maybe the feature is not implemented everywhere yet.
  8. DiagnoseFilesystem Root directory Exists, is readable, is writable, 0750 Failure Folder should not be writable for webserver user That reads like DRAMA. Are you sure? What I would like to check frequently is that the config.php is read only (400). Unfortunately this gets reset by GIT updates to 755 now and then and a warning would be great here. Maybe with a "fix it"-link? - That possible feature was one of the reasons for me to try Diagnostics in the first place. (Drupal7 is very cool about this - it resets the settings files to 400 automatically.) htaccess file Exists, is readable, is writable, 0664 Warning .htaccess must exist, must be readable, should not be writable. If I set htaccess to read only (400), I receive a 403 error when going to the procache settings at ADMIN.
  9. I investigated more. This time also with a production site which is live: It DOES work RIGHT on the LIVE server, I just found out. Only on localhost (MAMP PRO) on my testing ground it does not optimize - which does not matter much. So ... a false alarm, regarding the live site.
  10. Login_persist InnoDB / utf8_general_ci Rows: 5 Data: 16.00 KB Index: 0 bytes Overhead: 295.00 MB Warning Optimize table to reclaim space and reorganize indexes. Do you think that "Overhead 295 MB" makes sense here? Or is this a calculation error? Clicking on the "optimize" link has no effect, by the way.
  11. Hi Nico, great idea, this spares quite some time to set this up individually. One question about "Keywords". Do you mean the Keywords Meta Tags? Google says they don't use it any more: http://www.mattcutts.com/blog/keywords-meta-tag-in-web-search/ Some of our clients had a wrong idea of SEO when spending a lot of time end efforts with littering the SEO keywords meta tag with all sorts of words, instead of using their energy on other SEO more relevant topics, like a carefully chosen title and a good summary. So we stopped offering that field. This is (in German) what Meta Tags Google uses: http://support.google.com/webmasters/bin/answer.py?hl=de&answer=79812 EDIT: A given "Focus Keyword" for a page might be a good source for your planned suggestion tool, the WP Plugin SEO YOAST seems to use it that way.
  12. Hi Adrian, great idea. I will try this out on my new project. Just curious: Isn't there a need to also sanitize the password somehow (or is PW handling that?) Like a max-length, trim whitespaces (for user convenience)
  13. There are a number of field settings that can be overwritten by templates which use the field. It the default value was overwritable too, that would help reusing fields a lot, giving editors a good usage-experience.
  14. interesting... didn't realize they have a short url now. Much less typing
  15. To check from outside if server is down (you probably know that link): http://www.downforeveryoneorjustme.com German provider? We use http://www.df.eu (domainfactory) since over 10 years and we are very satisfied.
  16. Thank you for your comment totoff... Well, I believe this client has checked that part of the website with the laws thoroughly. The recommendation system is embedded in cooperation with a specialized service for German clinics and doctors. (We only restyled that content so it fit better to the rest of the website.) I found this story on the web (about the revised version of that law from 2012): http://projectworkers.de/marketingblog/116-mehr-vorteile-fuer-aerzte-und-heilberufe-durch-das-neue-heilmittelwerbegesetz They say: Publication of recommendations by patients is ok - as long as the text does not contain drug-/treatment-misuse or repulsive or misleading content. (Hope I got the translation right ) In case the law is applicable at all (because they offer only diagnosis and treatments prescribed by doctors), there is no problem as long as the content of a recommendation is within certain limits (which means, of course, every single entry needs to be checked individually). General speaking: None of the content of the website should seduce a patient to a wrong medical self-diagnosis and self-treatment.
  17. Good idea to change the menu calendar-button behavior (for appointments). Thank you for the feedback.
  18. Hi, great points you made about typography. In this case this is content and up to the clients. Maybe one day we could replace the textarea fields with the new PW pro table fields and render the output ourselves with any fancy typography we want. (If you want to take it further, the n-dash is also surrounded by tiny 1/4 spaces left and right, if I recap that correctly). Phone number formatting is another interesting scenario. Maybe modules like the SuperSmartyPants Typographer become smart enough one day to assist in cases like this. - I wished we had more clients caring for typography that much that they would hire an editorial office ("Lektorat") to have content, spelling and typography checked. Also the point with the navigational overkill is valid. - If you have a client with 11 competing centers and 50 decision makers, who even discuss the shape of a button sometimes, you get there quickly, believe me. Client is king. On the other hand, those special requests were one of the reasons, why the project was very interesting and exciting for us. To get back to the essence: This presentation here was not about design and not about content but what Processwire can help solving. I wanted to showcase what you can do with Processwire, if you have tons of navigational elements as a fact, that behave context-related completely differently, depending from where they were called. And this only with the power of Processwire selectors. We could not do that with Drupal or Wordpress easily. EDIT: Actually I liked your comment and fixed that n-dashes quickly myself. I admit, that looks better now.
  19. http://www.radiologische-allianz.de Step1. Homepage uses a classic design. Purpose was to make complex information look easy for patients. If you use the homepage with a mobile, you get a special view with only the things you need when you are on the road. (The most time-consuming action was organizing all this data and find an easy to maintain ways to link this all together.) We have 11 centers. This homepage is a portal page for all of them and includes individual homepages of each center at the same time: If you access things for only one center through their homepage, you get a filtered view with only items offered there. There is also an individually built center-finder which uses Google maps to find the right center for your therapy, using Processwire technology. Processwire was chosen mainly because of the enormous flexibility to build links between all different sorts of information (without it being rocket science), especially because we were able to handle even non-hierachical data (e.g. a child is allowed to have 2 parents - doctors think that's normal ), and because we could offer the client a very clean and easy to use backend, hiding all the complexity of the homepage away from him: They started using it with only 2 hours of training. Not sure you could do this with Wordpress... (This is the first homepage we did with UIkit, which was a recommendation from this forum.) (Step2 will add some speed optimizations...)
  20. I am really looking forward to some documentation for this apparently great module.
  21. strong point, Adrian !!!! Yes the hack script kiddies, I forgot. Your are 100% right with your concern. If I would build such a script I definitely would need to use a filter, like - show only links with 5 hits and more (links with less hits would neither bother Google nor me, I think, and script kiddies do not repeat their urls) - delete link after 1 week if there were less than 5 hits and no target set yet by the admin And I would have a different table for those "candidates"... and if a target is set, the link moves to the redirects list table. This would avoid some of the mess i.m.h.o. Actually I would use such an option only some weeks after a site relaunch and then switch it off. (Most of the important 404 errors show up within the first days after a relaunch.) Showing when the last hit was, would be also great, so it is easy to decide which links are candidates for deletion. This would also help to have the list clean and up-to-date. Why I am writing this at all: Yes I know how to collect 404 errors and throw correct redirects into the htaccess file for a while. But I would love to delegate this all so one of the editors, since this is can be a lot of work if there are many links.
  22. Just dreaming: Would't it be nice if there was a way to catch 404 errors and list them each for applying a redirect with this module? This would spare some time studying PIWIK pages for 404 errors and copying links over to PW, right?
  23. Hi Luis, great module! Thank you much! I see a small display glitch using PW 2.5 and the standard admin theme. The tabs are half overlapping this text string: Data from Site ID: 1Also, instead of SideID, which is meaningless to my client, can this instead output the site name for that ID from the PIWIK panel?
  24. We have the same experience as Pete. This is my scenario with larger teams: "draft" means: needs to be finished and approved: the editor sets the page up but has no right to change the status. The supervisor approves by changing the status. So, "draft" clearly says: not ready, work needed. (As a workaround I use a checkbox field for that at the moment.) "unpublished" means then: content is ready but for other reasons the page is not live (like a campaign/news with a start date and an end date).
×
×
  • Create New...