joer80
Members-
Posts
364 -
Joined
-
Last visited
Everything posted by joer80
-
I think you can leave it blank and it will work, but it is not as safe security wise. What you describe is what I talked about above. ProcessWireConfig Allows you to do that.
-
Found it! ProcessWireConfig https://processwire.com/blog/posts/processwire-core-updates-2.5.10/ I uploaded this module and now I can edit config settings. Instead of editing the file, it simply creates a config.json in your assets folder and adds code to the end of your config file to check for and read this new file. It adds the contents of that file to your $config array. What improvements / features are you adding to your new version of multi site?
-
A way to edit the static config file and have the module load that would be much better/faster than pulling them from the database. I think I am going to pursue that route.
-
That is helpful. So the backend code is there but there is no UI in cms to use it yet? (Edit config module)
-
Soma, I am using your version of multisite module, so it may be best if we add this to your module. We could have it load urls from config instead of its own box. Even if there is a select box to tell it where to load them from and give the user the option. Then when Ryan allows cms to edit config file to stable branch, there will be only one place required.
-
That would be an option. Its just a little bonus if I can do it all from cms. I think Ryan is adding a way for cms to edit config file though...
-
That would be great, but I dont think the module would be accessible yet. I know very little about processwire though so I could be wrong!
-
If I need to, I could open my own database connection and look up: SELECT data FROM `modules` WHERE class = 'Multisite' LIMIT 0 , 1 That would return: {"subdomains":"www.domainname1.com\nwww.domainname2.com"} Then I could set the $config->httpHosts variable with that. I am sure this query would be cached by mysql into ram since it would be ran so much.
-
Does the config file have the ability to access the database using processwires connection? Or would I just use its own variables to make my own connection?
-
I mentioned in the initial post I am working on a multi site install where I already have to create the url list in the module manually. That means every time I add a users website to my multisite, I have to manually add it 2 places. One using the cms and one hand editing the config file. It would be nice if I could add it manually only one time and make one read the other. Anytime you have 2 manual lists, it creates an opportunity for something to become out of sync. If I am going to update one time, I would prefer it to be via cms/database instead of file to edit as well.
-
So are you saying I can use the api to add entries, but I cant pull them from the database?
-
I was thinking an api way to do this was in dev branch, but I wasn't sure if it made it to the stable branch or not yet!
-
Is there a way to add a url to the $config->httpHosts var programmatically? I am working on a multisite install and want to save editing this file all the time. Thanks!
-
Did you use a public module to do multisite? Did it require much tweaking?
-
Is it possible to have a multi site install so that all websites use the same templates and fields, but different content and pages? But each login sees their own website/list of pages and can not delete templates or fields? Thanks!
-
Not sure which forum category this should go in, but I spent my lunch break today training a few staff members of a pretty large client of mine on how to use a new processwire website I designed for them. They currently have a wordpress website and were dreading the training process. She said she didn't like how the wordpress widget system worked, and it was confusing to use. (Knowing where to go to update what.) After showing her how to use processwire, she said it was much more intuitive and user friendly. She likes how the page tree logically lays out the website, and how I designed their staff to be a page that other pages could read from so they only needed to update one spot. (Instead of typing it in to many different pages and widgets.) They gave it a big thumbs up! Just wanted to let you guys know!
- 1 reply
-
- 14
-
Should this work? Or am I doing something wrong?
joer80 replied to joer80's topic in General Support
Ok, I think I have this fixed. I just downloaded the testing. website to my computer and uploaded it again to testing2 and it worked. I then uploaded my testing2 template folder to put the design different again. Must have been missing some files or something? Thanks! -
Should this work? Or am I doing something wrong?
joer80 replied to joer80's topic in General Support
For some reason, it says this at the top of the testing2.mywebsite.com that doesnt work, even before I login. " WireCache: Saved cache - Modules.site/modules/" -
Should this work? Or am I doing something wrong?
joer80 replied to joer80's topic in General Support
I have both listed in both. Do you think I need to delete the one that doesnt apply? -
I have a testing.mywebsite.com, and a testing2.mywebsite.com. I made the website as testing.mywebsite.com but then uploaded the files to another subdomain to try another look. So they both started off with the same files and database, but I changed the header files of testing2 to give the client another look option. For some reason, I can not login to the testing2 subdomain but I can under the regular testing one. When I try to login to testing2 it says "processlogin: admin - login failed" I tried clearing the cache and session folder and switching browsers but it does not seem to help. Any suggestions? Thanks!
-
I am pretty sure I entered it in. How do I edit it to add it back?
-
My dot does not seem to be in the correct spot. I am in northeast Texas but there is no dot on the map in this area. How can I fix that? Thanks!
-
If you are an admin, you dont see page cache even if it is showing for regular users. Is markup cache different in that both regular users and admin see the cached version? Or does it work the same and only regular users see the cached version?
-
Nice!