3 of 4
3
gallery relationship
Posted: 04 October 2007 09:07 AM   [ Ignore ]   [ # 37 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  01-17-2007

Thanks Robin grin. It actually saved my life. It’s working on EE1.6. If EE had built in support for this it would be ideal.

I was wondering. What happens when you have like 200 gallery categories…

R_S

Profile
 
 
Posted: 04 October 2007 09:18 AM   [ Ignore ]   [ # 38 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  01-17-2007
Robin Sowell - 04 October 2007 09:00 AM

I just generally use the weblog tag and create an ‘image’ weblog for any galleries I need.  I prefer the flexibility.

Surely the Gallery module is more flexible than using a weblog as your gallery? What made you go that route?

Profile
 
 
Posted: 04 October 2007 09:36 AM   [ Ignore ]   [ # 39 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25568
Joined  05-20-2002

wink  The dropdown becomes very long! 

As to the weblog module- it just lets you have as many fields as you want, more flexibility on categorization, you can share category groups with other weblogs- which is kinda a way to show ‘related images’- or I’ll often use relationships- relate each image to a weblog entry.  Search works with the weblog- doesn’t with the gallery yet.  A lot of times I’ll have a protected ‘large’ image for download- and I’ve got a module to handle that for weblogs, but not for galleries.  And then I kind of wrote some custom stuff so that I can automatically create thumbs and stuff on a single image upload to a weblog- which gets me pretty close to the gallery ‘batch’ processing.  On my plate right now is true batch uploading to the weblog- using exif data to fill in the custom fields.  Which will then exceed the gallery in pretty much every respect. 

Basically- I know I’ll end up custom coding stuff, and it’s easier to just focus on the weblog module and have it do as much as I want, rather than splitting my focus and getting ‘totally up’ on the gallery as well.

Only real negative- weblog tags are more processor intensive than the gallery.  But that’s because they can do a lot more.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 24 October 2007 09:47 AM   [ Ignore ]   [ # 40 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  245
Joined  03-07-2007

Great extension and i use it on a website (Robin i even use it on the weblog entries headlines page, doesn’t seem to hurt performance badly (yet)). Anyhow, i’m using it with mootools and slimbox for in-page viewing.
See an example on http://www.swet.nu/swet/weblog/reacties/de_gevel_is_eruit/ (dutch website).
“afbeelding” is the weblog-field with the gallery category_id (per ext_gallery_cats).
here is the template code i use inside the weblog_entries tag:

{if afbeelding}
{exp
:gallery:entries gallery="swet_fotoboek" category="{afbeelding}" orderby="date" dynamic="off"}
{entries}
  {row}
     
<a href="{image_url}" title="{caption}" target="_blank" rel="lightbox[cat{afbeelding}]">
     <
img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" class="weblogthumb" />
     </
a>
  
{/row}
{
/entries}
{
/exp:gallery:entries}
{
/if}

My question: Because of the direct-links to the images i don’t get no view-count updates. Any tips on how to update viewcounts?
A workaround could be to switch to use MOOdalbox instead and use gallery-template page instead… kinda overkill.
(Moodal problems with IE7)

So what does make the gallery counter tick? Could i just ping a template-page with some gallery-tag with image_id in the url?

Profile
 
 
Posted: 24 October 2007 10:04 AM   [ Ignore ]   [ # 41 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25568
Joined  05-20-2002

That is nice!  Hm- I’m going to shift this over to ‘How to’- we’ve moved far from SOP at this point.  And I think I recall some related questions cropping up over there.

I think the thing to do would be to increment the db field directly- counting clicks.  I’ve got a simple js method laying around somewhere- but I’m pretty sure silenz has an ajax click tracker- I bet money you could riff off of that- just have it increment the view count instead.  But yep- I’d track the clicks- and I’d increment the view count when I do it.

That make sense?  I think it would work.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 24 October 2007 11:16 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
RankRank
Total Posts:  275
Joined  01-20-2006

silenz’ plugin is right here:
http://gadgets.silenz.org/index.php/gadgets/item/ajax-linktracker/

on a personal note: I’m praying to the gods every day for the gallery to become a fully featured module that can interact with the weblog module. (sorry, I had to say it)

 Signature 

buro taggetig: web design & event photography from Belgium.  |  Follow me on Twitter

Profile
 
 
Posted: 24 October 2007 06:04 PM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  245
Joined  03-07-2007

edit; yes, the gallery does have some rough edges to it. I really am interested in when EE is more web 2.0 ready (like for login and search roundtrip) and the many small tweaks that all these plugins provide.
...Back on-topic, Robin could you/would you feel like updating the plugin (module) to handle multiple galleries?
config-page for weblog custom field groups, select a gallery_id for a field to grab categories from that gallery.
would be great to set a custom field as a gallery-dropdown… i.e. make the plugin/module mature?

Profile
 
 
Posted: 06 February 2008 01:55 PM   [ Ignore ]   [ # 44 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2121
Joined  03-26-2006

I find I have to use this quite a bit, and the addition of the version that allows for multiple field ids is very nice. Too bad wil.laxa’s Module/Extension for Galleries built right into weblog entries seems to have stalled in development. Short of that, relating galleries this way works pretty well!

 Signature 

ryan masuga
—————
Masuga Design (EE Pro) | devot:ee
MD Markitup | All Add-Ons
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 21 April 2008 01:01 PM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  641
Joined  11-29-2005

Robin,

Thanks for offering this. I think it will save my butt.

 Signature 

e x p design, llc: a consultative approach to web site design and development.
EE Pro Network | ExpressionEngine Install Best Practices | EE Developer: Build web sites with ExpressionEngine

Profile
 
 
Posted: 04 May 2008 12:04 AM   [ Ignore ]   [ # 46 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  177
Joined  05-15-2004

I know this is quite an old thread but maybe somebody could help me there smile

The extension does not seem to work with my fresh 1.6.3 installation (build 20080319)

My mileage:

weblog name - portfolio
gallery name - gallery (quite an original one, I know smile
custom field name - galleryid
My template:

{exp:weblog:entries weblog="portfolio" limit="1"}

<h2>{title}</h2>

{description}

    {exp
:gallery:entries gallery="gallery" category={galleryid}  orderby="date" dynamic="off"}
    
<h3>Project Photos</h3>
    <
div id="photos">
    

    <
ul>
    
{entries}
    {row}
        
<li><a href="http://{image_url}" title="{caption}"><img src={thumb_url} width="{thumb_width}" height="{thumb_height}" alt="{title}" ></a></li>
    
{/row}
    {
/entries}
    
</ul>
    </
div>
    
{/exp:gallery:entries}

{
/exp:weblog:entries }

It doesn’t work. I mean, I can see the entry title and description but no images. Also I cannot see the <h3> header - so I think all the gallery tag doesn’t work in this case.

I’ve found out that the extension is pulling the gallery category id correctly:

{exp:weblog:entries weblog="portfolio"}
{title}
: {galleryid}<br/>
{/exp:weblog:entries}

Results in

Test Entry: 5

If I manually give this category number to the gallery tag - it works (displaying the needed images):

{exp:gallery:entries gallery="portfolio" category="5" orderby="date" dynamic="off"}

       
<div id="photos">
       <
h3>Project Photos</h3>

       <
ul>
       
{entries}
       {row}
           
<li><a href="http://{image_url}" title="{caption}"><img src={thumb_url} width="{thumb_width}" height="{thumb_height}" alt="{title}" ></a></li>
       
{/row}
       {
/entries}
       
</ul>
       </
div>

    
{/exp:gallery:entries}

If I remove the category=”{galleryid}” part from the gallery tag, I can see all the images from the gallery (not only those of the needed category).
I tried also removing the quotes and using category={galleryid} but it results in showing all the images from the gallery.

Any ideas anyone? Please!

 Signature 

Lyubov Berezina
http://www.retrobox.ru

Profile
 
 
Posted: 04 May 2008 12:12 AM   [ Ignore ]   [ # 47 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  671
Joined  06-29-2005

I’d recommend you start a separate thread for this question, as the original title concerns gallery relationship fields, not the gallery:entries tag.

Terry

 Signature 

Terry Leigh Britton
http://twitter.com/TerryBritton
http://twitter.com/Terr_ee

Search the web using Terry Leigh Britton to find all kinds of stuff I’m into!
Or use Yasni for Terry Leigh Britton

Profile
 
 
Posted: 04 May 2008 12:15 AM   [ Ignore ]   [ # 48 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  177
Joined  05-15-2004
tbritton - 04 May 2008 12:12 AM

I’d recommend you start a separate thread for this question, as the original title concerns gallery relationship fields, not the gallery:entries tag.

Terry

Oh well thanks for the recommendation, will try to post a new thread!

 Signature 

Lyubov Berezina
http://www.retrobox.ru

Profile
 
 
Posted: 11 July 2008 07:54 AM   [ Ignore ]   [ # 49 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  09-04-2006

Hi all,
does anybody know if there are problems with EE 1.6.4?

Extension is not working for me.

I’ve changed $alter_field to my field_id value.
I’ve changed the gallery_id to my gallery_id value (and I’ve tested the whole query right inside my phpmyadmin SQL tool, and it works great)

My custom weblog field is an empty drop-down list.

Categories in my Photo Gallery are structured as follows:

Categories      Total Entries
Ferrero            1
   |_Locandine            0
   |_Nutella            1

Incontri            0

Libri            0
   |_Conoscere il Cioccolato            0
   |_Giandujotto Mania            0
      |_Sarzana            4
   |_Nutella un mito italiano            0
   |_Passione Nutella            0
   |_Slowfood Revolution            1

I’ve these extension installed:
Tag Submit (v.2.0.7)
Sitemap Pinger (v.1.1)
Multi Relationship (v.1.0.6)
Hidden Weblogs (v.1.0.3)
Simple Translator (v.1.0.9)
Parse Rating Stats (v.1.0.0)

...and these extra modules:
Solspace Rating Module
Sitemap (from putyourlightson)
Solspace Tag Module

Any help would be much appreciated.
Carlos

SORTED
Looks like you don’t have to assign to a custom weblog field the type “drop-down-list”. I changed it to “Text input” and it worked out.

Profile
 
 
Posted: 11 July 2008 09:29 AM   [ Ignore ]   [ # 50 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2121
Joined  03-26-2006

For the record, I think I got my new Extension (called “Simple Relation”) to work with Galleries as well - and you don’t have to modify the core part of the extension, because you choose the gallery on the Custom field page, so this should work with multiple fields. (see attached pics)

SR is still at 1.0.2, but with a little more testing I’ll release 1.0.3 which should easily replace the old “manual” gallery relationship extension(s).

Image Attachments
simple_rel.jpgsimple_rel_weblog.jpg
Click thumbnail to see full-size image
 Signature 

ryan masuga
—————
Masuga Design (EE Pro) | devot:ee
MD Markitup | All Add-Ons
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 14 July 2008 05:27 AM   [ Ignore ]   [ # 51 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  09-04-2006

Looks interesting.
I’ll give it a try.

Thanks!
Carlo

Profile
 
 
Posted: 06 August 2008 10:39 PM   [ Ignore ]   [ # 52 ]  
Summer Student
Total Posts:  19
Joined  07-22-2008

alright, maybe im missing something.

i have a page of lets say 3 weblog entries, and i need different galleries per post.

when i try to get this going, it some what works. but all the post display the same picture. ive used different code from this page and other pages, the same thing happens every time. all the pictures are the same.

does this solution only work with 1 entry per page?

or, what am i doing wrong?

thanks.

Profile
 
 
Posted: 06 August 2008 10:47 PM   [ Ignore ]   [ # 53 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  671
Joined  06-29-2005

Please post the code that you are using which isn’t working for you, and that way folks can actually see what’s going on. At this point, you are only inviting speculation, not an actual working solution.

Terry

 Signature 

Terry Leigh Britton
http://twitter.com/TerryBritton
http://twitter.com/Terr_ee

Search the web using Terry Leigh Britton to find all kinds of stuff I’m into!
Or use Yasni for Terry Leigh Britton

Profile
 
 
Posted: 06 August 2008 10:58 PM   [ Ignore ]   [ # 54 ]  
Summer Student
Total Posts:  19
Joined  07-22-2008

yea i was going to do that. but this isnt the solution i was looking for.


this is only for single pages entries, i need something like this that displays for multiple page entries for every entry or specified entries.

thanks though.

Profile
 
 
   
3 of 4
3
 
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 1743, on December 02, 2009 02:47 PM
Total Registered Members: 119595 Total Logged-in Users: 97
Total Topics: 125822 Total Anonymous Users: 57
Total Replies: 662080 Total Guests: 473
Total Posts: 787902    
Members ( View Memberlist )