close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CMS delete 1st level page removes second level page

Thread began 12/11/2009 3:51 pm by simmo515303621 | Last modified 4/06/2010 8:06 am by Jason Byrnes | 1272 views | 4 replies |

simmo515303621

CMS delete 1st level page removes second level page

Hi,

I am devleoping a CMS system and would like to know a solution to this problem I have.

I am able to create 1st level pages. I am also able to create 2nd level pages and assign them to the 1st level page....

My issue is that when a client deletes a 1st level page, I would like all of the 2nd level pages associated with the 1st level page to also be removed...

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

When you assign the second level page to the first level page, you are most likely using the Parent page ID, so each child page will have a column in which that parent ID is stored.

When you delete the parent page, you will have to pass the parent id, say the parent id is 4:
DELETE FROM parentTable WHERE ID = 4


you pass that same id when delting from the child table:
DELETE FROM childTable WHERE parentID = 4

Sign in to reply to this post

simmo515303621

Thanks Jason

I will give that a go!

Sign in to reply to this post

A Sound Design

Originally Said By: simmo515303621
  Thanks Jason

I will give that a go!  



Did it work? I would like to do the same so it would help to know if it worked. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

The original poster did not post back their results, so I can only assume that they where able to get it to work.

If you try and are having problems getting it to work, let us know and we will be glad to help.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...