Gallery and Weblogs
Posted: 19 March 2008 04:44 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  158
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 05:40 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
RankRankRankRank
Total Posts:  1021
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 06:21 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  158
Joined  10-09-2007

Ahhh thanks!  That was just what I needed!

Profile
 
 
Posted: 19 March 2008 06:43 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  158
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 02:16 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  10-04-2007

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

Regards,
Marks

 Signature 

I am tired of working, I just wanna play now. Come join me.

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 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 31
Total Topics: 82229 Total Anonymous Users: 17
Total Replies: 441929 Total Guests: 201
Total Posts: 524158    
Members ( View Memberlist )