I have the idea that it is possible to make a quick image gallery using the Asset Listing module. Does anyone have any tips, or help on this one? I am kind of lost.
Or where does it talk about the Asset Listing Page in the documentation?
The Asset Listing page is documented in the CMS Package Manual.
You could also try reading the following article on the MySource Matrix site, “CMS Package Manual”, for more ideas.
Thanks, I am reading that now. It is a little hard to follow how to actually get the assets to list on a page. Am I missing something? I set up the asset list correctly, I think. Then, do I need to add a specific tag to the page? Not sure where to go from here. Anyone who has used the asset list funtion, I could use help.
So, when the get my image gallery working, is there a way to do a mass upload? Such as making a .tar file of images and uploading that to the media folder?
Look under <Matrix>/scripts/import for scripts to bulk upload many images at once.
When you set up an asset listing, did you
- put the %asset_listing% in the bodycopy.
- define a type format to print each line in the listing.
I added to %asset_listing% to the body of my page, right under the body design area. Is the correct? I am still not getting any assets to list on my page. Very strange, is this all it takes? Also, the images that I want to display, they should be in the media folder, correct?
%asset_listing% goes in the Page Contents bodycopy (located under the Asset Listing asset) and not in the parse file of your design.
As for where images go, it doesn't really matter. The media folder is provided for you as a place where you can put media and have it web accessible without you having to create a site or configure URLs. If you already have a site with a URL, you can simply create a folder in there called "Images" (or whatever you want) and place your images under that. On the Details screen of the asset listing, you set the root node to be the folder you created.
You also need to configure some more parts of the asset listing. Take a look in the manual for info on selecting asset types to list (you'll want IMAGE asset types) and configuring the Default Format bodycopy for the listing, which defines how each image should appear in the list. You may also want to check out column listings, thumbnails, and even image varieties.
Well, I have tried all those things. I have successfully gotten the tags added to my page. I can see a Previous and Next button. I can tell that 2 colums are being created. All permissions are set to public for the gallery and images. But no images! I have set the asset type to images, set the root node. What am I missing?! This is driving me crazy, hope I can get this working soon.
You also have to configure either the Default Format bodycopy, or the Image Format Bodycopy (if you've selected to customise it).
I suggest this code, if you're listing images:
[html]<img src="%asset_url%" alt="%asset_attribute_alt%" />[/html]
That will create the HTML to print an <img> tag with the image's details.
Finally got it to work. It is displaying one image from my gallery, and I have added the next and previous links. But they are just giving a blank href. Here is what I am using to have a gallery "slideshow"
[html]<p>%asset_listing%</p>
<p><a href="%previous_page_href%">%previous_page%</a> | <a href="%next_page_href%">%next_page%</a></p>[/html]
You probably only have one page. Try using %previous_page_link% and %next_page_link%, which prints the previous and next text items either linked or not linked depending on how many pages there are.
You only need to use the href keywords if you want to do something special.
Sorry to bring up dead topics, but question here…
I want to show image varieties on my photo gallery (asset listing page). What is the keyword to enter to show the image varieties? I know the manual says %asset_thumbnail_v_<variety name>% but that doesn't work. It seems to me that <variety name> is supposed to be replaced with something by me… however I'm just drawing a blank on what exactly is filled in there.
Can I get an example of the correct usage of displaying an image variety with the keyword? I think that would help me very much!
Thanks.
[quote]It seems to me that <variety name> is supposed to be replaced with something by me… however I’m just drawing a blank on what exactly is filled in there.
[right][post=“11639”]<{POST_SNAPBACK}>[/post][/right][/quote]
When you create an image variety, you have to name it. Whatever you name the variety is what you use here.
Yes I tried that but am maybe messing up on the syntax. For example, I have an original picture called picture.jpg. I now create an image variety called th_picture.jpg. The syntax would be %asset_thumbnail_v_th_picture.jpg%? I've tried that and it didn't work… perhaps the extra underscore is not appropiate?
However, my goal is for the asset listing to list out all V1 varieties. I can't put in the actual variety name as it would then just display the single variety image for all photos… I would think at least. The question really is, what is the keyword for variety_name so it can be dynamically created with the asset listing page.
Or am I supposed to use the thumbnail selection to choose the variety image in this case and then use %asset thumbnail% to display the variety image?
When you create the variety, you don't give it a new filename, you just give it a descriptive name for the variety itself.
So, on the Varieties screen, under the name field, you could put "thumbnail".
Then, you can refer to that variety as %image_v_thumbnail% or if its parent image is set as the thumbnail, %asset_thumbnail_v_thumbnail%.
This is so that you can have multiple varieties all with the same name (i.e. every image in your gallery has a variety named "thumbnail"). You can also use Triggers to automatically create the variety when the image is uploaded.
Hi
I'm basically trying to do the same thing but am really struggling to get it to work. I am trying to build a photo gallery that displays 6 thumbnails with links to larger images. I have created a variety for each image that makes a thumbnail. The problem comes in when I try to add the keyword (%image_v_thumbnail%) into the default format type body copy. Please can you let me know exactly what I am meant to put in there because I have tried different combinations of things and I just can't get it to work.
Thanks
Mike
Create an Image Bodycopy (i.e. customise the Bodycopy for the Image asset type) and put the keyword in there and see if it works. Though, it should also work in the Default bodycopy.
Are you sure your variety is named "thumbnail" – Matrix is oddly case-sensitive in some areas and this could be one of them. 