The plugin features various attributes to display your photos on your website to your needs. Although the attributes discussed in this article are demonstrated using sets, the attributes are valid for displaying all supported selections of photos, including:
Supported attribute values might differ amongst the photo selection types described above. The plugin comes with an attribute overview which shows which values are supported for each photo selection type. In this article the following features are discussed:
You can display one photo on your website which links to a set in the image viewer by using the photo attribute in addition to the set (user, group, tage, gallery etc) attribute. All the options for displaying single photos (controlling size, alignment, vspace and hspace) are available for the photo being displayed on the website in this combination of attributes. The photo attribute supports the following values for this:
Example: Using the photo attribute using the values described above
[flickr set=72157627383502935 photo=primary align=center size=thumbnail] |
| display | <<photo id>> | random |
|
|
|
Notice that the slideshows from both photos start at the beginning of the slideshow. You can change this to have the slideshow start from the photo displayed on the website by changing a plugin setting.
Next to one photo on the website you can have a selected amount of photos on the website by using the photo attribute in addition to the set (user, group, tage, gallery etc) attribute. Any number under 500 can be used.
Example: Display 6 photos on the website, while the rest of the set is displayed in the image viewer
[flickr set=72157627383502935 photo=6] |
For more flexibility there are 2 additional attributes related to this option:
Both options are demonstrated below:
Example: Displaying 6 photos on the website starting with the 2nd photo on the website using expression
[flickr set=72157627383502935 photo=6 shift=2] |
Example: Displaying 6 random photos on the website using expression:
[flickr set=72157627383502935 photo=6 order=random] |
Notice that again the slideshows start at the beginning of the slideshow. You can change this to have the slideshow start from the photo displayed on the website by changing a plugin setting.
|
Note: Although the plugin supports pagination, there is a downside to using it. For each expression , the plugin has to fetch results from flickr. As the flickr API is not the fastest, this option can significantly slow down your site! If you wish to use pagination on a larger scale, or want to organise larger quantities of photos, we highly recommend using the Flickr Suite Component in combination with the plugin. |
The default amount of photos displayed on your website can be set in the admin interface of Joomla. However, the plugin also alows you to set the maximum amount of photos to display in each expression. Simply add limit=xxx (where xxx is replaxed by the maximum amount of photos you want to display).
For the following examples we will use photos from the set displayed directly below:
Example: Display only the first two photos of a photoset on the website and in the image viewer
[flickr set=72157627383502935 limit=2] |
Furthermore, we can select a range of photos by adding the section argument. In combination with the limit attribute and page breaks, this allows you to paginate your set.
Example: Display the second section of 2 photos from the set displayed above
[flickr set=72157627383502935 limit=2 section=2] |
Example: Display the third section of 2 photos from the set displayed above
[flickr set=72157627383502935 limit=2 section=3] |