Sure Dave.
Essentially what’s going to happen is that we’ll create an active link between MODX and static (in this case, FW) file(s) that will serve as the template(s). So when you edit and Publish the FW file the resulting code-level changes will be pushed to MODX automatically.
- Setup your FW doc to publish to the MODX folder, or to a folder within the MODX folder, it’s up to you.
- In the MODX Manager click the ‘Elements’ tab in the sidebar.
- Click the ‘New Template’ button.
- Give the template a name and enable the ‘Is Static’ checkbox.
- This will open a ‘Static File’ picker which will open a file Browser.
- Navigate to the FW file that you want to use as the template and OK it.
If the template code is not automatically added to the ‘Template Code’ area in the page you’re currently on then simply copy/paste it then after that any changes should just happen.
- ‘Save’ the template. (in the floating toolbar)
That’s it. You now have a working template. Of course you need to add content tags but in my tests any layout changes I made in the FW file were reflected in the MODX code when I previewed it. If you’re moving a preexisting FW site you may have to fiddle with FW to adjust for resource paths and such. If you use an editor, not FW, then you can edit any static files in your fav editor (or in the MODX Manager if you prefer) and those changes will be reflected either from MODX > static file or from static file > MODX.
There’s also an Import HTML function for importing existing static sites but I haven’t tried that yet but it’s possible it may offer an even more streamlined process than what I mentioned. In any case, whatever the import process, it would seem to be a completely doable prospect … so far. All my work has been done locally so how it fairs when moving everything to the remote server I can’t say yet. But as long as the file structure remains identical, meaning MODX can still find the static files you use then it should work. But I’ve thought that before. [laughs]
Todd
Thanks Todd
As someone who has only looked at it very quickly it is still a bit of a mystery to me.
Can you - as a FW user - outline how you would work with ModX and FW created pages. I am interested in the workflow and whether or not you can easily add ModX components to your FW page.
offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options