close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Create dynamic folder from recordset value

Thread began 1/13/2014 4:15 am by FrankJay | Last modified 1/13/2014 4:23 pm by Jason Byrnes | 363 views | 7 replies |

FrankJay

Create dynamic folder from recordset value

I have searched and read related posts and do not find exact solutions.

I have created the admin pages for photo Administration. The insert page has a dynamic drop-down menu to select an issue. Based on the selected issue, the next dynamic drop-down menu will only display the articles related to the issue. This is working perfectly.

The image "Upload Folder" contains static folders and a dynamic value from the issue recordset:

// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../img/archives/articles/".$row_WADAMenuri_arcPhotoIssueID['IssueNumber'] ."",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "220",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End

When I insert the first photograph, a dynamic folder is created successfully. However, when I insert more photographs for different issues, the photographs are all added to the original dynamic created folder. No new dynamic folders based on the issue is created.

Kindly assist.

How/where would I get/retrieve the dynamic-created-folder above to display thumb for the results page?

eg.
<img src="../img/archives/articles/list/(dynamic-created-folder)<?php echo $row_WADAri_PhotosArchive['ri_arcPhotoLandscapeFile']; ?>" alt="alt">

Thanks in advance for the assistance.

Sign in to reply to this post

Jason ByrnesWebAssist

In the upload behavior, don't use the Recordsdet for the folder name, use the Issue number select list.

the select list will contain the selected value when the page is posted. The recordset will always ever return the first record.

Sign in to reply to this post

FrankJay

Not sure

Thank you for your reply.

Not sure how to implement your instruction.

"In the upload behavior, don't use the Recordsdet for the folder name, use the Issue number select list."

Please elaborate on "use the issue number selected list." How would I do this when selecting the upload behaviour? Would I do this in the file manipulation: upload wizard?

Should I click on the dynamic icon next to the upload folder field?

Apologies for my ignorance

Sign in to reply to this post

Jason ByrnesWebAssist

in the upload file server behavor, click the lightning bolt icon next to Uplaod folder.

from the dynamic bindings expand the form collection and select the issue number select list

Sign in to reply to this post

FrankJay

Now working

I have successfully implemented your instructions and tested. Dynamic folder now creating.

Now that that's under the belt, I remain with one question.

How would I be able to include to the image path, the dynamically created photo folder image to be displayed on the results page?

First time working with dynamically created image folders.

Please advise.

Sign in to reply to this post

Jason ByrnesWebAssist

make sure the recordset includes the ri_PhotosArchive.ri_arcPhotoIssueID column, and use the biding for that column for the dynamic folder.

Sign in to reply to this post

FrankJay

Working as well

Thanks Jason,

Everything working perfectly.

Appreciate your assistance and instructions.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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