Jump to content

raydale

Members
  • Posts

    121
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by raydale

  1. Hi guys,

    I have been playing around with multisite recently and wondered - what would be the best way to share some template logic between multisite instances?

    I have an upcoming project where two different sites would have different users and setups etc but they need to share some basic similarities in look and functionality. I was thinking of setting up the sites as separate sites under multisite and then finding a way of sharing something such as a 'main.php' file that each template calls. I would also like to share a 'base.css' file between the sites as well. I want to do things this way because they want the potential to be able to expand into more sites over time - up to 5 or so.

    What would be the best way of doing this?

    Thanks in advance.

  2. Just happened across this - I actually really like this. It's kind of edgy - just like the artwork.

    As arjen mentions the navigation changing is very well done, understated and elegant. One of those things you never really notice as it's so seamless with the site experience.

    Sometimes minimal work like this is a lot tougher to get across than very elaborate designs.

    Good work Diogo.

  3. EDIT: I even tested removing the "site-" part of the folder and also on the config, and it still works (@Ryan, is there any special reason for requiring this on the instructions? Or is it just for organizational purposes?)

    I found this earlier testing combinations of directory naming structure in the index.config.php and thought I had messed something else up :-[ . I have reverted to using the 'site-something' naming convention for organisation, but I would still be interested to know if directories can be more 'loosely' named like this?

  4. HAHA!!!

    Thanks very much for your patience Diogo and Soma! It works now.

    I have looked through the instructions again and it does clearly state 'Once installation has completed, move or rename the /tmp/site/ directory to a /site-name/ directory in your main ProcessWire installation'.

    Of course being an idiot I scan read the steps and ended up just putting the 'site' folder INTO a 'site-name' directory. I hope this helps anyone else coming across this problem.

    Thanks again guys.

    • Like 2
  5. I'm sure you are right - I must be doing something wrong. Maybe I have missed something basic. My settings in the config file are:

    'ajs-decorator.co.uk' => 'site-ajsdecorator',
    'www.ajs-decorator.co.uk' => 'site-ajsdecorator',
    

    I have a directory setup as: 'site-ajsdecorator'. In this directory is the 'site' directory as required.

    I have also double checked that I have the latest v2.2 htaccess file (which I do).

  6. Thanks for testing Diogo.

    Ah yes, the error log is too old to be relevant. So, that leaves the error exception shown in the browser: Error Exception: DB connect error 2005 - Unknown MySQL server host 'Config' (0) (in /home/raydale/public_html/wire/core/ProcessWire.php line 95)

    I have setup 'site-foldername' correctly in the index.config.php file it seems.

    I also get 'This error message was shown because Superuser has never logged in. Error has been logged.' underneath the error exception message, but I haven't had any error messages logged. Not sure if this gives any more clues?

  7. Thanks for the response Diogo. Hmm, the config is setup fine it seems. I have the correct dbHost, dbName etc for the subsite.

    Part of the recommended setup process in the instructions I link to involve actually installing the subsite as a normal seperate pw site first under a sub directory. This all worked fine with a separate database and site being setup under the temp directory as per the suggestion.

  8. Hi guys, I'm having problems setting up a multisite instance. I have followed the instructions here: http://processwire.c...i-site-support/ and can access my main site fine.

    However, my sub site located in site-[domain] throws this error when visiting its domain name (I have changed the http root - just in case):

    Error Exception: DB connect error 2005 - Unknown MySQL server host 'Config' (0) ([root]/wire/core/ProcessWire.php line 95)

    My error logs show:

    ? http://www.ray-dale.com/?/ Error Exception: Unknown column 'fieldgroups_fields.data' in 'field list' (in [root]/wire/core/Database.php line 118)

    Does anyone have any ideas?

  9. I try to implement it soon.

    Btw we already published our first shop using this module: http://www.martanpuoti.fi

    Wow, I'm having a tough time getting onto these forums lately, busy, busy.

    Apeisa - that's really nice work with both the site and the shopping cart which seems a very clean and simple process. I'm really itching to test this now.

    Do I detect a case study coming on for this site??? :)

  10. Oh, I didn't realise documentation already existed. I was sure that the last time I looked there were only the various forum posts on multisite setups.

    Good documentation though - thanks for pointing me to them.

    I'll let you know how I get on if I get the go-ahead to do the site.

  11. Hi Guys,

    I have read through other topics on using PW for multisite setups and am a bit none the wiser unfortunately. Let me explain my scenario:

    I have a potential client project whereby they want to have 3 websites all as separate websites in terms of:

    1. content
    2. look & feel
    3. domain names
    4. Users

    However, for me to setup up the websites for them it makes no sense for me to be managing 3 separate hosting accounts and them to be paying for all of that. Also, 1 of their websites will be a primary site with a few thousand visitors per month, but the 2 more secondary websites will only have a couple of hundred visitors. Perfect for a multisite install to my mind which wouldn't tax server resources too much.

    This to me seemed a perfect opportunity to setup a multisite under one hosting environment whereby domains are mapped to subdirectories or whatever setup I would need.

    My problem is that I have no idea as to how I go about setting all of this up in PW. I have done this before with WordPress using the domain mapping plugin under a multisite install. All without dealing with symlinks or much code at all. However, I would really like to use PW for this as long as it's not too complex. With PW I can deliver a client user experience in the admin area that is much more streamlined for their particular use case.

    • Like 1
  12. Just saw this. A fantastic read and more than anything else, it just reaffirms the view for beginners that high-quality work is definitely achievable with Processwire. Case studies like this I think are definitely a confidence boost for any other designer using this system.

    Would be great to see a few more, and for different types of site.

    Thanks very much onjegolders - I'm glad you found it useful. I hope to get more people contributing Case studies and I plan to write one for my next client site with PW coming up soon.

    I hope the case studies will highlight the strengths that PW has in real life scenarios (it has many) and help people to decide on using it.

    • Like 1
  13. Great to see this progressing Apeisa.

    I have been promising myself to test the modules when I get a chance. As soon as you have a PayPal module working I'll be over it like a rash as I have an eCommerce site that I would migrate over to PW.

    Just pushed big update on shop module. I don't even remember everything, but here are few details:

    • Shipping options, with additional payment costs (currently only fixed cost shipping option available, but it would be pretty trivial to build more advanced ones also)
    • Uses cookies instead of session - I settled for 7 day cookie
    • ShoppingStepsMarkup.module, which renders 1-5 steps to completed order
    • Bunch of bug fixes (and probably lots of new ones introduced)
    • Most of the fields created are now system fields, so installing this will not pollute your fields & templates. (This doesn't mean you should install this on your favourite live site - don't do that [with any module])
    • Updated the readme with few (well.. 12 actually) simple steps how to get this baby up and running

    Get it while it's hot: https://github.com/a...for-ProcessWire

    All the feedback and testing is greatly appreciated. Thanks.

  14. I've never heard of oEmbed before, but it looks like it would be a good solution to make an easy fieldtype for videos.

    http://oembed.com/

    There are also some alternatives based on it.

    http://noembed.com/

    http://autoembed.com (this one looks nice, but it's only free for personal use)

    If I remember correctly WordPress uses oEmbed. It makes content management pretty simple - just put the URL of the video you want on a new line in a text field and you're done. Very user-friendly.

  15. Actually those were added at the same time as this update. I experimented with it and it works nicely, but decided just to make them bold rather than changing the color. But you can change the color, background color (or the entire row) or anything else with it from an admin theme. Here are the relevant classes:

    • #ProcessTemplateEdit .asmFieldset - applies to both starting and ending fieldsets or tabs
    • #ProcessTemplateEdit .asmFieldsetStart - applies just to starting fieldsets or tabs
    • #ProcessTemplateEdit .asmFieldsetEnd - applies just to ending fieldsets or tabs
    • #ProcessTemplateEdit .asmFieldsetIndent - controls the width of the indent, adjust with css width property

    Nice! Good to know there are options and css classes have been thought about. I need to look into creating an admin theme.

  16. No problem Ryan. I will get more case studies up as I go along. Hopefully, this will entice other people here to do the same and add real use cases for people considering PW. I'm also hoping that this will persuade people that PW actually delivers on its promise - and isn't too good to be true as it first seems.

    I think a subforum should be fine.

    • Like 1
×
×
  • Create New...