On one of my trips I kept a daily journal. Each picture is referenced within the pages. In addition to that,the image has its descriptions:
`Example:
I went to visit the Art Gallery and enjoyed the exhibits. (image desc: The Art Gallery was built....)`
Any ideas of how to incorporate the two? (The original site I did had the HTML journal pages with links to the images.Dated code, style, etc)
I am not sure exactly what you want, but here are some thoughts.
Of course there is the image description field that you can put text into. In addition to that there is a custom filed for the image which could also contain text. So you could put one bit of text in the description and the other in the custom field. Then you would just have to put somewhere in your image.php page an echo getCustomData(); to put out the second set of text.
Okay, think I'm going to try this...
Is this correct syntax that will produce a "clone" of the description textbox where I can enter/edit/save the information in same fashion? (using the given reply by sbillard). I am totally clueless of PHP and only think I read syntax from other statements correctly. Be gentle...
`
No, it's not nonsense, it's copied code just from the EXAMPLE THEME image.php file which I had chosen. Added in order to show where I was going to place the new portion.
Sorry, didn't realize such difference between Default and Example. I included it just to show where I thought I was going to put the new code.
USING EXAMPLE THEME: The new portion is highlighted
[i]
" title="">
[/i]
`
`
" title="">[b][/b]
`
`
continuing on with the page....
Does the new code add the "textarea" box for me to enter/edit/save the data same as I do for the description of the image on Image Page?
Sorry, I am not that much used to example theme (I can't know everything...:-)). If there is really a line with echo "".gettext("Image Info").""then I will correct that (though it's indeed not exactly an error, just a little ugly code).
Sbillard is not fully correct above, there is no template-function getCustomData()(that is a method of each the image and the album class, that can not be called that way). You would have to use getImageCustomData(or for albums getAlbumCustomData()). The inline editing does not work with that field.