current version: MODx Revolution 2.0.0-pl rev7212 (to be updated to 2.02)
hi there.
we have a little problem with our website: www.meyerdudesek.com
we are mainly architects/3d-designers and no web developpers, but are intersted enough to do such things by ourselves, so please excuse me for not beeing a professional on that field.
the page is basically a port from our old flash only site. the problem is that we acted to fast setting it up. I did the modX setup with a basic wayfinder call and cms while a mootools scripter did the fancy part.
however everything works nice except the url handling: dead links for example will not reach the 404 page. The whole modx/mootols construct was our idea beacuse we thougt we will be more flexible that way (instead of getting a customized cms by the scripter himself). the script therefore had to be a bit "hacky". anyway, the scripter did an impressive work, but now we are concerning about google cannot reach our subpages because of the javascript (not sure), and if so, the direct links to projects will not reach those pages and sometimes will make the page unfunctional.
so I contacted the scripter again to solve those problems and it seems that I have to do some tweaks in modx. this is part an e-mail:
when i made the JS code, your setup was:
1. //////
architecture page => { [ links ] [ content about architecture ] }
3d page => { [ links ] [ content about 3d ] }
and so on...
//////
as you can notice, every page has the links on its left. meaning,
we’re always loading whole pages every time (like how html was made
without PHP or iframes or whatnot).
because of this behavior, i had to make a workaround provided that it
is uniform for every page we load that the links are also there. i
basically remove all in the loaded pages except the content part.
i admit that the way i dealt with it is hacky (voodoo), but since we
wnat to implement modx to it and that’s how we knew it worked, i made
the JS as such.
however, what i am hoping to be done is this:
2. //////
index/main page => { [ links ] [ content snippet ] }
content snippets:
- architecture page => [ content about architecture ]
- 3d page => [ content about 3d ]
- and so on...
//////
basically we have a main page with the links on it and an empty
content div. this content div will be filled with snippets of the page
requested by the viewer. so the all content of each page are stored in
its own snippet which simply gets called into the main page. using the
URL as our variable, i hope modx can make it such that whatever URL is
searched in the site, the PHP part can throw the appropriate content
snippet onto the empty content div.
to be clear, when the viewer gets to the site via a link, the first
time it needs a content snippet to get loaded, PHP will take care of
putting it.
(e.g. when viewer goes to http://meyerdudesek.com/architecture/, the
PHP will appropriately take it to the architecture page )
however, when it clicks another link while the viewer has not
refreshed the page, the JS will now step in, and whatever link gets
clicked, the corresponding content will be placed in via JS. for
example, from the architecture page, the person goes to the 3d page,
the URL will become http://meyerdudesek.com/architecture/#3d (note the
use of # and the 3d after that). in this setup, we’re emulating how
facebook page loading works. if the person reloads the
meyerdudesek.com/architecture/#3d, the person will be redirected to
meyerdudesek.com/3d to lay off the #.
that is my plan on doing. it would’ve been easy if we did this from
scratch. but given that it isn’t, i’m only hoping that your tweaking
on modx will make the site work like how i’ve said it just now.
------
so now my question. is this possible in modx and if so, how?