Jul 05, 2009, 01:37 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: 1 ... 5 6 [7] 8 9   Go Down
  Print  
Author Topic: [Hack] Subsites - (Solve Friendly Alias Path)  (Read 37450 times)
0 Members and 1 Guest are viewing this topic.
gspark
Member
**
Posts: 90


« Reply #90 on: May 10, 2007, 06:13 PM »

the textarea is too short in the config area



* 20070510_16.12.11.jpg (14.36 KB, 171x320 - viewed 298 times.)
Logged
Vait
Full Member
***
Posts: 194


WWW
« Reply #91 on: Sep 03, 2007, 11:15 AM »

i had it installed with 0.9.5. but then upgraded to 0.9.6 and it stopped working, anyone got subsites working with 096? Thanks!
Logged

Pure MODx sites
Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
hironaka
New Member
*
Posts: 2


« Reply #92 on: Sep 13, 2007, 03:08 PM »

Hi all,

I too needed multi-site/subsite support, so I've updated and cleaned up the hack to work with the latest SVN/development version (0.9.6.1) of MODx. The attached GNU patch file should be all you need (Under *nix: cd your-modx-directory && patch -p1 < modx-subsite-0.9.6.patch.txt). Still working on it, so I might update this patch later on.

I have made a few minor adjustments to the hack itself in order to get friendly-URLs working again, and I haven't tried it out with 0.9.6 yet, so YMMV (but it works fine for me Wink )


* modx-subsite-0.9.6.patch.txt (9.78 KB - downloaded 232 times.)
Logged
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 5,813


damn accurate caricatures...


WWW
« Reply #93 on: Sep 13, 2007, 04:51 PM »

Thanks for the contribution hironaka.
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
CTO @ Collabpad
work productively.
work intelligently.
work together.
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
  Frank Zappa
Dimmy
Testers
*
Posts: 1,898


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #94 on: Sep 20, 2007, 05:06 AM »

is this only working for subdomains or also for totally separated domains?
we have 4 domain names like this:

name.nl
name.de
name.com
name.fr

I like to use one instalation for 4 domains.

do i need to forward de domains to the main site? or how do i do this? do i need to change dns? so that all point to one site? I have no idea

but it would be great if i type in name.de/page.html that i keep that adres in the urlbar and that the menu is also pointing to .de even tho the site runs on .com.

maybe somone could help me to understand how i would do this.

thank you  (I installed the files on a 0.9.6 but i do not see any change in the settings.)

Dimmy
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
sal
Full Member
***
Posts: 104



WWW
« Reply #95 on: Nov 18, 2007, 08:13 PM »

I'm interested in trialling this hack from scratch but can't get it working. Using the patch from hironaka, this is what I done (I'm on OS X).

1. Downloaded and unarchived modx-0.9.6.1.tar.gz
2. Placed modx-subsite-0.9.6.patch.txt in the resulting directory, (full path being "/Library/WebServer/Documents/modx-0.9.6.1/modx-subsite-0.9.6.patch.txt")
3. Opened up Terminal, cd to the right directory and tried "patch -p1 < modx-subsite-0.9.6.patch.txt" but it just returns "patch unexpectedly ends in middle of line, patch: **** Only garbage was found in the patch input."

Help?

PS: Also tried this after a fresh remote install of 0.9.6.1, ssh'd in and with the patch file in the same directory as "assets" and "manager", I tried "patch -p1 < patch.txt" but "-bash: patch: command not found" was returned which I was semi-expecting.
« Last Edit: Nov 18, 2007, 09:24 PM by sal » Logged
sottwell
Documentation Team
*
Posts: 8,837



WWW
« Reply #96 on: Nov 19, 2007, 03:14 AM »

If you SSH in, you'll need to su to root before you can run patch. Unless your SSH login is as root, which it certainly should not be.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Os0Boucko
Jr. Member
*
Posts: 5


« Reply #97 on: Nov 19, 2007, 01:35 PM »

This sound very interesting, could someone upload the modified files for the 0.9.6 release, I can't get the patch to work.
thx
Logged
sal
Full Member
***
Posts: 104



WWW
« Reply #98 on: Nov 19, 2007, 06:02 PM »

I just manually applied the changes myself to the few files that are involved in this hack and it looks to work with a quick 5 min check from me. Here's the relevant files that should get it going for a 0.9.6 install (I use 0.9.6.1 and its fine also). Just upload using the directory structure in the ZIP to your MODx base (it's all directed at the "manager" directory) and it should be good to go.

All this at your own risk of course, but it looks fine to me.

* modx-0.9.6-subsites.zip (58.56 KB - downloaded 320 times.)
« Last Edit: Nov 20, 2007, 04:11 PM by sal » Logged
Os0Boucko
Jr. Member
*
Posts: 5


« Reply #99 on: Nov 20, 2007, 07:24 AM »

Thx you sal, i'll try it and if needed ill upgrade to 0.9.6.1 version
Ok, done.
I'm a little confuse.I don't have acces to .htaccess/dns  so I have to ask my provider to do the changes.
I got 3 domain name:
mydomain.com
mydomain.net
myOtherdomain.com
When I log to my main domain ftp there is 3 folders(mydomain.com,mydomain.net,myOtherdomain.com) with the content of the actual websites . So I guess there is some kind of redirection behind.
I would like that 1 modx manage all thoses websites.
My opinion is that I should ask the provider to redirect all the domain to the same folder (where modx is installed) and use modx-subsite to redirect the user to the right document(id) according to his request.
Is that right ?
Will the user see in his navigation bar the domain name he requested ?
Thx for help
« Last Edit: Nov 20, 2007, 10:59 AM by Os0Boucko » Logged
sal
Full Member
***
Posts: 104



WWW
« Reply #100 on: Nov 20, 2007, 02:57 PM »

Yep, point all domains at the same MODx install and as I understand it, the domain/sub-domain used to access the website determines which document gets served up. This would be set in the new Subsites option from the Tools > Configuration > Site page.

So for say a MODx install to manage 3 different websites (one.com, two.com and three.com for example), MODx would by default manage one website (one.com), create 2 documents for the other two domains, associate the other two domains with a respective document ID in the Subsites option and it should just work. I haven't worked through all the little subtleties to Subsites yet but I expect it to work out fine for a current project I'm working on.
Logged
Os0Boucko
Jr. Member
*
Posts: 5


« Reply #101 on: Nov 21, 2007, 02:05 AM »

OK, thx sal.
I'll give some feedback in one week, when my project will be finished... I can't wait to see it
Logged
pixelranger
Full Member
***
Posts: 149


« Reply #102 on: Dec 16, 2007, 06:05 AM »

Hello!
What i'm doing wrong??

1) created subdomain(dispenser.site.com) from my admin/reseller inteface2) removed default html welcome page from subdomain
/bhome/part2/01/pribor/site.com/www - domain folder
/bhome/part2/01/pribor/site.com/www/dispenser - subdomain folder(auto creating)

3) upload modx files in domain
4) created a folder in modx domain. id-32
5) enabled subsites in modx system configuration
6) subsite: dispenser.site.com 32 7 7

no errors in domain
open
http://dispenser.site.com/blog.html - 404 error, but i have page( Document's alias - blog, id is 47. This document is subfolder of document(id 32))
« Last Edit: Dec 16, 2007, 06:25 AM by pixelranger » Logged
pixelranger
Full Member
***
Posts: 149


« Reply #103 on: Dec 17, 2007, 04:42 PM »

Help me!!!
Logged
BobRay
Coding Team
*
Posts: 3,175



WWW
« Reply #104 on: Dec 17, 2007, 05:03 PM »

Does this work?

http://dispenser.site.com/index.php?id=47

Also, is MODx's .htaccess file in the root directory of the MODx install? If so, posting the top part of it here (down through the friendly url part) might help us help you.


Bob
Logged

MODx info for newbies: http://bobsguides.com/MODx.html
Pages: 1 ... 5 6 [7] 8 9   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!