Hello.
I am modifying the zpArdoise theme - specificaly news.php. The left side contains the thumbnail image attached to the news article (as assigned using tinyZenPage), and the text of the news content.
Now I'm working on the right side. What I cannot figure out how to do is to show all the image thumbs that occur in the same album as the news article thumb. Any suggestions on how to go about accomplishing this?
Thank you.
Roger Schroeder
Comments
The article does and cannot know what album this embeded image belongs to and there is no way to find out as it is embeded statically.
Anyway, generally speaking (without knowing this theme) you will probably need to do some custom coding and some manual work.
PHP knowledge and knowlege about Zenphoto theming is required. See the tutorials on the user guide first. If you don't have decent PHP knowledge you probably better should stop right here.
- Add the name of the album to for example the custom data field of the article manually
- Then you need to use use that fields value to create an object of the album to get its images
So now you should get an idea how to do this.
I'm the creator of zpArdoise, but I have no idea to help you.
had you ever try the combi news mode ?
this mode allows you to automaticaly add a new when you add an album or image in album.
I do know php well, and am getting to learn more and more of the excellent ZenPhoto package.
Thank you again for your responses.
Here is the main site: http://rogallery.rohair.com/ and here is an article (news) page http://rogallery.rohair.com/news/keeping-baby-content
The left side of the news page functions as desired. Note I used printNewsCustomData() as an ahref= link to test this feature - as suggested.
On the right side at the top is printLatestNews(3,'with_latest_images_date','none'). This is not the desired outcome, nor is 'with latest albums'. What I seek is to print album thumbs from which the news article thumb was selected (using tinyzenpage).
Below this on the right side I use printImageStatistic(20, 'popular', 'Journal/Big Family Fun/Randomness', ........). This is the desired outcome, however, I need to find a way to replace the $albumfolder option of that function with printNewsCustomData().
Thank you for your assistance thus far. This is fun!