Expected behaviour for pageParts

20 views
Skip to first unread message

Indy Nagpal

unread,
Nov 3, 2011, 1:25:03 PM11/3/11
to Splash CMS
Hi

I'm using the latest version of Railo and have upgraded CFWheels in
Splash to 1.1.5.

I'm wondering what is the expected behaviour when one saves a page in
the admin. What I'm noticing is older database records for page parts
do not get deleted. The file system files for them get deleted and
files for new ones created.

From this I assume that the expected behaviour is that older pagePart
records should be deleted?

If that is the case, I'll change to code so that it works as expected.

Can anyone help? Russ?

Indy

Russ Johnson

unread,
Nov 3, 2011, 2:16:37 PM11/3/11
to spla...@googlegroups.com
No the page part records in the db should NOT get deleted. This is intentional as Im planning to add a page history feature so that you can revert to a previous version of the page later if you want to.

Also, if you check the GitHub repo, there is a 1.1.5 branch that contains the latest version of splash running on cfwheels 1.1.5 with all of the upgrades I made when upgrading.

- Russ

Indy Nagpal

unread,
Nov 3, 2011, 3:03:41 PM11/3/11
to spla...@googlegroups.com
Thanks Russ... That makes sense. If that is the case, the should the same be done for snippets/layouts as well?

I'll get stuff from your repo. I had forked the project from Raul's so didn't get those updates.

Also, I'm namespacing the tables so that using it with another application makes separates the table.

Basically this requires a migration that renames all CMS tables. And changes to all models so that they override the default naming convention of table names by using the table() function. I'll send a pull request once I put in those changes.
Reply all
Reply to author
Forward
0 new messages