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

Customizing the Data Assist detail.php page

Thread began 4/06/2010 5:45 pm by donald.dickson338135 | Last modified 4/07/2010 6:06 am by donald.dickson338135 | 704 views | 2 replies |

donald.dickson338135

Customizing the Data Assist detail.php page

Hello I have used Data Assist to revise the pages originally supplied as part of the Security Assist solution web and database. The database is the ubiquitous Blue Sky Music and all the product images and thumbnails are in the correct folders
I have followed the instructions in the Data Assist gsg and recreated the pages though instead of naming the pages items_*.php etc I named them prod_*2.php

In my case the items_detail.php page is therefore called prod_detail2.php

Search results works and I click the view (mag icon) to open the prod_details2.php
The issue is I cannot get the images to display on the prod_detail2.php page.
In the gsg is this info about binding the image.

Step 11. With the dynamic image selected, prepend the relative path to the Src value in the Property inspector. For our example, you would add images/detail/.

For my page prod_detail2.php in properties src = <?php echo $row_WADAitems['ItemImage']; ?>
The page code is <div id="WADAPageHeaderImageArea"> <img id="WADAPageHeaderImage" src="<?php echo $row_WADAitems['ItemImage']; ?>" alt="" />

I tried changing the Properties src value to images/detail/<?php echo $row_WADAitems['ItemImage']; ?> but that did not result in the image being displayed.

Viewing the content of the Tag Editor I can see the following
<img id="WADAPageHeaderImage" src="<?php echo $row_WADAitems['ItemImage']; ?>" alt="" />
where exactly do I insert images/detail/ as instructed please?
Thanks
Don

Sign in to reply to this post

Russell CollinsBeta Tester

modify path setting

Hi,

you probably need to put ../ at the start as in...

../images/detail/<?php echo $row_WADAitems['ItemImage']; ?>

Regards

Russ

Sign in to reply to this post

donald.dickson338135

Hello Russ - you are absolutely right and I thank you for your help.
Unfortunately the new "product" images did not appear on the page and that threw me for quite some while until I discovered that the images supplied with the solution support files now did appear. This clearly pointed to missing images though I was sure they were in the images/detail/ folder because I could see them. Renaming some images did not appear to have any affect so it became clear to me that there must be product images in a folder that I was not seeing. The light bulb went on and I took a look at the testing server in htdocs/images/detail/ where, for reasons I am unable to fathom, the "new" product images were conspicuous by their absence. Manually copying the missing images to the folder on the testing server fixed the problem.
Another example of "don't blame the tools" - in this case the WA application.
Of course I still need to figure out why the images files did not automatically transfer onto the testing server, but that is not a DA issue, its another "me not doing something right" issue.
Thanks again Russ for your "spot on help".
Don

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