close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Incrementing Display Order-Quick Help Needed

Thread began 2/28/2010 10:58 am by mrobben375515 | Last modified 3/01/2010 12:58 pm by Justin Nemeth | 561 views | 1 replies |

mrobben375515

Incrementing Display Order-Quick Help Needed

I am trying to have my customer upload a file to a PowerGallery. I am using DataAssist to insert the record. I have all the fields populating properly, but I would like the "display_order" to increment automatically as it does when I enter an image through the PowerGallery Admin screen. I noticed that the display_order also increments based on the next number for that gallery_id. How can I do this?

Sign in to reply to this post

Justin Nemeth

Take a look at the admin/common/functions.php file on line 228. There is a SQL statements that will retrieve the most recent display_order. Basically, you query the images table for the most recent display_order then add 1 to it. If its a new gallery, you should just start the display_order at 1. You can then use this value in your custom insert statement.

-justin

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