close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple issues relating to custom page CMS system Im building

Thread began 10/29/2012 4:13 pm by Christopher West | Last modified 10/30/2012 11:01 am by Ray Borduin | 424 views | 1 replies |

Christopher WestCommunity Expert

Multiple issues relating to custom page CMS system Im building

Hi, firstly I am attaching my project files (minus the directory structure).

I have a few issues with these, relating to the IDs not being passed around properly (one issue I resolved bu creating a URL variable and binding that, but then this caused problems with the index.php page coming up with errors.

my first question though (as best to take it question by question) is: The homepage obviously doesnt have an URL parameters since its the index.php page..however because there are no URL parameters then when I go to the admin area that I build because there are no parameters being passed then I cannot update the page content for index.php...currently the work around would be to physically click on the menu link for homepage which then passes in URL parameters. how can this be resolved? I tried change -1 to an id value relating to the record in the database that is for the contents of the homepage but this has no effect.

(2) in the content-change document I have a form that allows changing of the main content as well as a upload server behaviour - but all are optional..however on upload if the admin changes anything (but not the file upload) then the update saved will empty the contents of the file field in the database. so how can I change my code so that if the admin choses not to update the file upload then this will NOT blank out the data for the file stored in the database?


Chris

Attached Files
files.zip
Sign in to reply to this post

Ray BorduinWebAssist

We worked through this in a connect meeting.

1) we added:
<?php
if (!isset($_GET['Content']) $_GET['Content'] = 1;
?>
That way there would be a default value for the url parameter when one isn't set.

2) You can get file upload to work properly on update pages by setting the "default value" in the user interface to be equal to the current value from the recordset. Also you have to make sure you are using the "Server File Name" binding from the file upload object when setting the update database column value.

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...