Cool..thanks Robin - works like a champ.
Lomax - I wonder if you’re getting the right field number. Sometimes (if you’ve deleted a field or re-ordered fields etc) the number the EE interface tells you isn’t the ID actually used in the code/db. Go back to the field listing page, where you choose a field to edit or add a new one, and roll over the field you’ve created. Check the URL for what EE is actually using as the field_id.
I want to include several pictures from a gallery in a page. It seems that this extension gets me to the category, but how can I select an individual picture from within that cagegory?
e.g.
In my publish page I have these custom fields:
imageOne imageTwo … etc.
I want each custom field to be populated with the url of a specific photo (house.jpg, bedroom.jpg etc.). All the photos for each page are grouped within one category.
I guess what I would like is a drop-down list which displays all the images in a particular category. This would need to somehow be available to each of my custom fields (imageOne, imageTwo etc.) I tried ‘piping’ the variable ($alter_field = 32|33;), but only the last field (33) is altered.
The drop-down list would look like this:
Cat_name
………image_1
………image_2
………image_3
………image_4
I’m wondering though, even if this is possible, whether I want to actually do this! My original wish was to have images on a page that are links to larger versions of the image. I realise that this is an integral part of the gallery module, but I’m now not at all sure if I will gain this ability; it seems as though all I’m doing is making it simpler to select the images to include, not gaining the additional features, I would like The other part of the gallery that I wanted was automatic image-resizing, but again I don’t think I’ll be able to bring that functionality over.
You can create relationship fields that hold gallery entries- so I’m thinking that might be a better option than the extension in this case. Check the docs on ‘Relating Entries to Other Entries’ and see if it’s a better fit for what you want to do.
You can create relationship fields that hold gallery entries- so I’m thinking that might be a better option than the extension in this case.
The problem with that seems to be that all images in the entire gallery are shown in the drop-down list.
I am displaying photos of various properties (not real estate). I want to show a page on each property, with several photos. I have set up the images with categories. Each property name is a different category. Using the relationship fields, I have a very long list of every image in the gallery, which is not sorted by category.
Any ideas how to simplify this?
Thanks,
Coober
Hm- so on single pages, you want to show all(?) images in a given gallery category- and you want to associate weblog entries with a particular gallery category when you publish.
IF that’s right, then I might: 1. Use the extension to get the gallery id/name whatever in a dropdown so you can select it on publish; 2. On the single entry page, use a query to grab all of the images in the category- using the custom field that holds the category identifier into your query.
Does that sound like it’s in the ballpark of what you want to do?
Does that sound like it’s in the ballpark of what you want to do?
I think so!
Let me see if I understand you:
On publish, the extension would show me the various categories. I select one category from the list. Within my single page (for each property), the query selects all the images from that category and displays them on the page.
If this is correct, then so far, so good.
The aim is that each image will be a link to a larger version. Although I am not at all familiar with the gallery module, I’m assuming I only upload a single image and it is re-sized on the fly, for both the ‘normal’ image (on the single page) and for the larger ‘linked-to’ version.
Just to complicate matters, I only have a fixed width in which to display the images. There is a 90px column on the left, content in the centre and a 200px column on the right. As I will have a mixture of both portrait and landscape images, I need to be able to stipulate that images in the left column have a width of 90px, whilst those in the right column are 200px wide.
At present I have simply added the images manually in the publish page (where I have some custom fields: imageOne, imageTwo etc.), without the links to the larger images. Although I have to manually re-size each image and I don’t have the link capability, it is at least very simple.
Is any of this possible, or should I just stay with what I currently have?
Hm- well, it all looked pretty easy right up until:
Just to complicate matters, I only have a fixed width in which to display the images. There is a 90px column on the left, content in the centre and a 200px column on the right. As I will have a mixture of both portrait and landscape images, I need to be able to stipulate that images in the left column have a width of 90px, whilst those in the right column are 200px wide.
Given a strong desire, this could be done in pure php. With the gallery tags…. I’m not so sure. The rest looks easy- just use the extension- make the value be the name of the category. Then use the multi-entry gallery tag with the category parameter specified via the custom field and dynamic=”off”- and you’d have your gallery for that cat included on your single entry page. I think. It’s untested.
BUT- the specification of the image arrangement…. One of the css gurus could probably come up with a way to do it using styles- but a css guru I am not.
Hi,
New to EE (just purchased today)! Looking at the gallery extension and it’s working pretty well. I’m wonder however if someone would help me expand it slightly.
I need to use this Weblog entry > Gallery category relationship for a number of fields in various weblogs. Harcoding the field id therefore becomes a little tedious as I don’t want to install multiple extensions for each use of this. Secondly, I need a way to select the gallery ID as well. At the moment, it’s harded too.
For example, I have a weblog called “News articles”. When entering a new news article, I would like to be able to select from a list of categories within the “News article” gallery. Then, when entering a new “Project” entry (another weblog), I would like to select from a list of categories within the “Project” gallery.
Is this an easy mod to make? I know PHP pretty well but am not sure yet how the EE architecture and extensions quite work.
Thanks, Af.
Just thinking through this a little. Is it possible to create an extension for the CP itself? This way we can add a new relationship type, and have it prompt for the Gallery ID. It would already be tied to the field id so all should work pretty dynamically.
Is this at all possible?
Af.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.