Skip to content

Conversation

@indynz
Copy link

@indynz indynz commented Nov 3, 2011

Hi Russ

I've checked in some changes and made the commit comments quite verbose for you to understand what is going on.

Key changes:

  1. Namespacing of CMS tables: All SplashCMS tables begin with "cms_". There is a migration for it, and the models have been changed accordingly.
  2. The code in controllers was referring to model("categories"), rather than model("category"). Have changed it to use the correct model("category")
  3. Admin view: After saving page/layout/snippet, the user is redirected to the page they are editing. It really saves lots of clicks when developing the site. Also, the link called "Cancel" has been changed to "Back to Pages" or "Back to Layouts" etc.
  4. The zip file names for plugins have been lowercased as they cause grief when unzipped on a *nix system. Ideal solution would be to leave the name of zip as they are, unzip them on a *nix system, unzip them, and then check in the unzipped folders with correct casing. I guess you use Windows, so it doesn't cause any issues for you.

Please let me know if you need me to clarify anything.

Thanks for your work.

Currently SplashCMS table names are not namespaced by any sort of convention. I've added 'cms_' before each of the tables.

This helps greatly in integrating with other CFWheels apps and not have table name collisions.
All the 'Cancel' links have been renamed to 'Back to xxx', e.g., 'Back to Layouts' or 'Back to Pages'.

The change has been made so to more accurately reflect the behavior of what the user is doing.
So we just check if it exists before using.
When using Custom Tags, for some reason there is a whitespace for every line of CF code. The changes checked in are the most reliable way of fixing that issue.
…ocation

When working with pages/layouts/snippets, especially while developing the first time around, after create and update redirects the user to the index page for pages/layouts/snippets.

This leads to a lot of unnecessary clicking as the user has to edit the page/layout/snippet again.

Also, if you are constant saving your work when you are adding page content, you go back to the page listing. And then have to come back in.

With these changes, you can continue editing till you click on "Back to xxx", e.g., "Back to Pages" or "Back to Layouts" or "Back to Snippets"

Also, changed references for model('categories') to model('category'). This way we use the CFWheels model function to actually call the model component, rather than going directly to the database.
This is done as on *nix systems when they are unzipped, they create folders with mixed case names. And that creates folders that are different from unzipped plugin folders checked in the repo.

Ideal solution would be to check in all the unzipped plugin files with the correct casing as generated on a *nix system (which would also work on a Windows box), rather than changing the name of the plugin files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant