-
Posts
4,077 -
Joined
-
Last visited
-
Days Won
87
Everything posted by horst
-
Advice for master detail best approach with users
horst replied to manlio's topic in General Support
IMHO: URL segements (to have something like mywebsite/instructors/instructor1) is the best option for this. -
- 206 replies
-
- 4
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
@Ivan: You have seen my avatar with a mask? (before this thread comes up?) I have made one because I have seen @netcarvers, and, believe me, I swear I have seen another one, but can't remember who it was. But also the first zorro avatar I has made wasn't looking good, so I have changed it back after a few minutes. So the question goes to @netcarver: "Are you the initiator of this?"
-
Howto call/run a function in cached pages?
horst replied to Torsten Baldes's topic in API & Templates
Ajax-call? simplified: <script type='text/javascript'> $(document).ready(function() { $.get( "/my/ajax/url/", { id: "1234" } ); }); </script> -
-
Hhm, I cannot really follow, and sure I have misunderstood you. But when I read "to put this into a variable you need to use output buffer", my brain rings alert, and if I want or not: I cannot follow further. Here in the forums in the last past years were so many different aproaches presented and discussed, mostly from people who know PW really good because they have used it for many Projects. I'm not aware of any that needs output buffering. (sounds ugly to me) It seems we think diametrically opposite. I'm afraid I can be of any help to you.
-
I found it in the post today.
-
+1! <kidding>But there is always a place for people who love it a little bit more masochistic I believe: search </kidding>
-
I use it through an extension that let me configure on which pages it should save values and on which not, it is also configurable per fields on a page. It's not stupid. I don't store passwords (with it).
-
Ah, ok. I have this for a short time period supported through my browser. It uses a cache for values filled into formfields. But it is gone after some days. So, +1 for your suggestion!
-
As autocomplete in your IDE?
-
@JasonS: this module lets you connect and send messages through an SMTP server. Do you have filled in the needed credentials in the config screen of this module? Does the connection test succeed or fail?
-
That's exactly the reason why I do not use any of those packages (Bitnami, XAMPP, LAMP, WAMP, etc.). The only reason to use one of those is to save time, what get dropped if you get in a situation hunting for configuration settings. Bah! I have installed a unique Apache and enabled vhosts and have installed a unique MySQL. To grasp the basics of Apache, I have bought a book 12 years ago (Apache 1.3). All what I have learned at that time helps me until today. The basics are the same, some parts have slightly changed with Apache 2.x, but I'm able to change configurations where / when needed, because I know where it is noted Apache httpd.conf -> httpd-vhosts.conf & my systems hosts file. Thats manageable! @bytesource: good if you can change your development setup to be more comfortable!
-
OHO! check to comment out the "Rewrite Base /processwire/" in the extra Bitnami conf and also the new one you has added! Now you should be able to call PW with the browser url http://localhost/ Does that work?
-
Are you sure that the pathes you have pasted are correct? /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/index.php /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/.htaccess /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/responsive-images.php /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/site/config.php I assume htdocs is the servers DOCUMENT_ROOT, and when you enter your website at localhost:8080/processwire/ this doesn't make any sense. Please have a look if you have those files too on your disk: /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/processwire/index.php /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/processwire/.htaccess Do you have two copies of PW there?
-
Hey @woop, many thanks for your processwire_onboarding.pdf I'm currently on page 8 of 44 and already have great pleasure. (Default is not at the top because the list is sorted alphabetically, but: I get what you want say!) This is of great usage helping us to change the perspective that way! If I could I would double-like your post.
- 206 replies
-
- 1
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
@bytesources: thanks for the help. Now you let me alone with two questions: Why does the $config->urls->root output "/processwire/" ? Looking to the full pathes, it should be only "/". But looking into your provided .htaccess file at the ProCache section it clearly shows that the urls->root should be "/processwire/". But then all the full pathes should be look like this: /home/my_home/Programs/rubystack-2.0.0-12/apps/processwire/htdocs/processwire/{index.php} This is confusing, or I am wrong? How do you call the homepage in the browser? http://localhost/ or http://localhost/processwire/ ?
-
Best way to implement a global utility function?
horst replied to jordanlev's topic in Getting Started
+1 -
Best way to implement a global utility function?
horst replied to jordanlev's topic in Getting Started
when it is in the site/config.php it is available everywhere, also in modules, regardless at which time a module is loaded. (I'm speaking of custom modules, especially created just for one site) I can use all my personal utilities in those modules, in templates, in hanna-codes, just every where at every time, - thanks to Ryan who made $config populated first in PW. (so easy and with less writing) -
@bytesource: obviously there is some (more) confusion working (and I was to try to clear them out, -ts,ts) What I want you to do is NOT to edit your .htaccess, but just to answer my post and write "into your post here in the forum" the full pathes for those. To avoid displaying sensible data here in the forums I want you to use an alias for your servers docroot. But as you are working on a local machine, we make this now obsolete. Please can you write for me the "full pathes" (where it is stored on your disc! nothing within PHP or PW, just the plain pathes from your HD) of the following files: PWs index.php PWs .htaccess your site/config.php the responsive-images.php
-
On the modules site of AutoUpgrade is to read under Compatibility: 2.1 and 2.2 In ModulesManager it is signed as ALPHA state, not Beta or Stable, but ALPHA! So, don't know if it is actually already in, because I used an old version of ModulesManager to check what it displays, it would be good to see the compatibility numbers or those with only lesser version numbers then the actually used PW version should be not listed, maybe.
-
any associative array as: json serialized array or still as php array ??