After much frustration with something that seemed to work and then stopped working and getting bahaviors, where after I added a css menu in a panel, the links started coming out as index.php?Content__state=AboutUs&Menu__state=, I think I figured out some restrictions I would like to confirm with you.
I was attempting to convert a site to an Ajax layout. I wanted to see if I could have a page with one panel and the rest just static div tag content. (Next I was going to see if I could use tables with one div in a cell as a panel).
I copied the layout code from the "Using Ajax Panels" tutorial. I deleted the nugget div. I made the header and footer div's static content. I made the left and main content div's panels. The layout went as follows:
<div>
<div> Static Content </div>
<div> {panel} </div>
<div> {panel} </div>
<div> Static Content </div>
</div>
It all seemed to work at first. I made only the content states and manually entered the url and it worked fine. Then I made the menu div a panel and added a css menu.
Now all of a sudden I got index.php?Content__state=AboutUs&Menu__state= links and the main content panel would not change content.
When I finally gave up fixing it, I started the "Using Ajax Panels" tutorial from scratch. I deviated from the instructions, however and made the main content panel with the first three states first so I could test the file's ajax behavior along the way. I noticed that as soon as I made my first panel with only the default div structure in the page, it automatically made every div in the wrapper a panel even though there was no file for it yet.
The panel shows up, but the state cannot be edited until I add the panel. I added the menu panel and put in the css menu and it works perfectly.
Can you clarify the design restrictions?
- Does every div have to be a panel?
- Can I make a page with static content (like a template, but not using templates since ajax uses them and the user stays on the index page anyway) and have one ajax panel that contains the needed ajax links at all times?
- Can I use tables for the page layout in any way (i.e. with only one ajax panel in a table cell, or is there a certain way I can design it to allow tables as a layout tool)?
- Is the div/panel/panel/div structure the problem -- causing it to think there is more then one main panel or have I got something else wrong?
- Has anyone found any tricks for converting existing sites to MX Ajax sites?
Thanks for any input I can get. As I start to use this tool with a wider range of creative layouts, I'd like to get a good feel (or perhaps a list) of the restrictions the extension requires to cut down on the amount of trial and error. I've been pondering how I can make a floating layout that adjusts to the screen resolution while using this extension or whether any other dhtml designs I have used will interfere with the extension.
Still loving this new tool,
Steven