CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 How can I change the <head>......</head> section for all pages?

Print topic Send  topic

Author Message
joejac

Posts: 242
Posted: 11/14/2008, 7:32 AM

The Application Builder kindly generated 30 pages for me :) Now I need to customize them. My questions:

1.- How can I change in one shot the <head>......</head> section for all 30 pages, I do not want to go one by one. I need to add new lines to call for new css and javascript pages into the head of every page.

2.- I have an image field, is a varchar field, with the url of their corresponding image, I also need to show next to the image field a thumbnail for this image, is there a builder or tutorial of how to do this?.

Please note that if I change the url with the image name and path, it should dynamic change the thumbnail after the change, without reloading the page would be best way.

I am using PHP5, MySQL5 and CCS 4.1.00.027
Thanks a lot
joejac
View profile  Send private message
headhunter


Posts: 130
Posted: 11/15/2008, 1:06 AM

Quote :
1.- How can I change in one shot the <head>......</head> section for all 30 pages, I do not want to go one by one. I need to add new lines to call for new css and javascript pages into the head of every page.
I have to disappoint you, the best way is to add a include page in the <head> section of your pages. In the include page you add your css and javascript code.
You can opt for 2 include pages, one for css and one for js, but more includes has a drawback in performance, it gets a bit slower (but most of the time not noticeable with few include pages).

OR

you can use a find and replace, but you need to have some text to replace your code with, and most of the standard tools can not replace a string with multiple lines of text. (you can do it with some patch commands on a linux console but that is too complicated for this purpose.

Quote :
2.- I have an image field, is a varchar field, with the url of their corresponding image, I also need to show next to the image field a thumbnail for this image, is there a builder or tutorial of how to do this?.
Do you mean this is a listbox and when you change the value of the listbox the thumbnail shoud be updated on change?
You can try the image gallery builder and learn from its structure.
Quote :
Please note that if I change the url with the image name and path, it should dynamic change the thumbnail after the change, without reloading the page would be best way.
View profile  Send private message
joejac

Posts: 242
Posted: 11/15/2008, 5:24 AM

Thanks a lot headhunter

1. I wanted to avoid to use another includable page because I already have it for the header, with a banner and menu, for all the application pages. I remember in the old CC2.0.7 we have the control over this <head>......</head> section for all pages, I have to find a way.

2. The thumbnails: I do not know if this is the best way, probably not, but what I do now is:
2.1 I upload an image to the images directory
2.2 I copy the URL of the image to a text field that has the image for the record (it is not a listbox)

I am not sure if the image galley builder with be suitable for this.

I would like to have the thumbnail attached to the text field and when I change it, the thumbnail should change also.

I am not an expert, so if there is a better way to do this I would appreciate a lot any advice, with a link to a tutorial or procedure to do it.

Thanks a lot
Best regards
joejac
View profile  Send private message
Waspman

Posts: 948
Posted: 11/15/2008, 8:27 AM

You could make the file name/text field a link and pass it's value to the image container. Make the image container get its value from the URL and default to something when the page is first opened. Do it in an update panel and it wont refresh the page.

T
_________________
http://www.waspmedia.co.uk
View profile  Send private message
headhunter


Posts: 130
Posted: 11/15/2008, 8:33 AM

Quote :
2. The thumbnails: I do not know if this is the best way, probably not, but what I do now is: 2.1 I upload an image to the images directory 2.2 I copy the URL of the image to a text field that has the image for the record (it is not a listbox)

So, you upload your images all in the same directory?
Via upload form or ftp client?
If yes, then I suppose the filename is stored in the db as well.
What is the use of manually add (type) the url to the image in a text field?
Maybe I understand it wrong...
View profile  Send private message
joejac

Posts: 242
Posted: 11/15/2008, 9:24 AM

Thank you Waspman for your idea i will try it.

Hello headhunter, I upload the images via upload form and then type the url in the text field that stores the image in a field of database for each particular record, all the images in same images directory. Any suggestions to improve this procedure are very welcome, because in one step would be better of course.

Any suggestion on how to change in one shot the <head>......</head> section for all pages would also be appreciated.

Thanks a lot
Best regards
joejac
View profile  Send private message
headhunter


Posts: 130
Posted: 11/16/2008, 12:44 AM

There must be a reason why you store the path to the image in the database, it's data you don't need if all images are stored in one and the same folder anyway...
I think it's better to hard code the path in your forms and/or grid's OR define it in your code as a constant, for example in your Common.php. Just a thought.
View profile  Send private message
joejac

Posts: 242
Posted: 11/16/2008, 8:32 AM

I do not understand well your idea headhunter.

I have the data with a lot of catregories and sub categories each image belongs to an item and when some one clics on a category link or filter a search in some complex way it has to show the related image for each of the items resulted.

Probably there is a better way but I use this to identify the corresponding image. I do not know if I was able to explain myself.

Thanks a lot
Best regards
joejac
View profile  Send private message
headhunter


Posts: 130
Posted: 11/16/2008, 9:20 AM

So you want a (result)grid which displays data and every record has a thumbnail or image assigned which you want to display?
View profile  Send private message
joejac

Posts: 242
Posted: 11/16/2008, 4:09 PM

Yes headhunter, you got it.

And I also need to edit, delete and insert new records with new images (with upload) in a maintenance page. Any method, tutorial or documented suggestions are very welcome.

Regards
joejac
View profile  Send private message
joejac

Posts: 242
Posted: 11/16/2008, 5:59 PM

Hello,

I was testing the File Upload component and it could help to what I need, I have a couple of questions:

1. How can I disable the date-time stamp on the file when it is uploaded?
2. Initially the customer already has about 200 images that I uploaded them via FTP for other purposes, in which way I can enter the url for these initial images in the corresponding record of the database?
2.1 Is there a CCS 4 component to browse the images in the web server directory and insert the name of the file in the corresponding field, that do not come into conflicts with the File upload component?
2.2 If there is no component for this task, how can I do it?

Thanks a lot for your patience and kind help
Best regards
joejac
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.