Gallery and Weblogs
Posted: 19 March 2008 05:44 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  151
Joined  10-09-2007

Hi created a gallery group and uploaded my photos.  The thing is I want certain photos in my weblogs.  So I created 3 custom weblog fields so I could pick and choose what photo goes where.  I go to the weblog and choose the photos I want, my custom weblog fiels are as follows sportphoto1, sportphoto2, sportphoto3.  When I go to edit the template and place {sportphoto1} {sportphoto2} {sportphoto3} between the weblog tag I get this output.

2 3 4

that’s it, that is all I get, the photos are there in the gallery directory and I believe I did everything correct.  Am I missing something?

Profile
 
 
Posted: 19 March 2008 06:40 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  903
Joined  03-25-2005

The custom field name tag gives photo id.

Assuming you are using related entries-gallery, then the code to have the images is:
docs related entries - gallery part way down.

{related_entries id="gallery"}
   
<img src="{image_url}" width="{width}" height="{height}"
alt="{title}" title="{title}" />
   <
h3>{title}</h3>
   
{caption}
{
/related_entries}

id="field_name"
For thumb:

<img src="{thumb_url}" width="{thumb_width}"
height="{thumb_height}" alt="{title}"/>

Can also add link to full size img as wanted.
.

 Signature 

BKDesign Solutions - Learn XHTML and use Web Standards to build accessible websites that validate

Profile
 
 
Posted: 19 March 2008 07:21 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  151
Joined  10-09-2007

Ahhh thanks!  That was just what I needed!

Profile
 
 
Posted: 19 March 2008 07:43 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  151
Joined  10-09-2007

I have another related question to this.

I adjusted the image resize in pref. to 65 x 65 but when the thumbnail shows it’s showing at 75 x 75, no matter number I put in prefs.  it still comes out 75 x 75?  Is this a bug?

Profile
 
 
Posted: 15 May 2008 03:16 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  10-04-2007

Thanks guys, this thread really helped me. I had the same problem and I am now sorted out.

Regards,
Marks

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 59683 Total Logged-in Users: 34
Total Topics: 71220 Total Anonymous Users: 24
Total Replies: 383833 Total Guests: 426
Total Posts: 455053    
Members ( View Memberlist )