HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Gallery (catalog) contact sheet

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#76386 (In Topic #15764)
Avatar

Community saint

My image galleries are stored in a catalog. I want to display a gallery contact sheet with images from all the catalog categories. I thought this would be simple: Some header text at the top followed by a main_cc_embed block but I can't seem to get the embed block to work.

My Image Gallery catalog has an id=13 and the catalog categories range from 15-23 plus 26.

This is my current block that does not display any images:

Code

[block param="13" select="15,16,17,18,19,20,21,22,23,26" display_type="0"]main_cc_embed[/block]

I've also tried

Code

[block="13]
without the filter for the categories.

Neither of these seem to work. What have I overlooked?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#76387
Avatar

Community saint

Well, I got this to work for one image catalog category using the following:

Code

[block="15" display_type="0"]main_cc_embed[/block]

Now how can I get all the images from all the catalog categories to display on this page? Is it possible to choose the catalog id and that would list all images from all that catalog's categories?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#76390
Avatar

Try:

Code

[block param="13" select="15*,16*,17*,18*,19*,20*,21*,22*,23*,26*" display_type="0"]main_cc_embed[/block]

The '*' indicates category, otherwise it is matching entries.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76410
Avatar

Community saint

Thanks, Chris.

That got images pulled from other categories but only 30 images are displayed. What do I need to do to get all the images displayed? I don't see any settings to limit the number in the Block construction Assistant and there are no pagination  controls on the page.

Bob
Back to the top
 
Posted
Rating:
#76412
Avatar

I think you actually need to open up the URL with &max=1000 (for instance). So make sure your menu link includes that. If it's the front page that'd be an issue, you'd have to fudge the block's code.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76418
Avatar

Community saint

Thanks, Chris.

I haven't linked the page to a menu yet as I am still working on it. So I just append the &max=1000 in the link field?

The above two fixes reinforce my belief that ocPortal is certainly the most flexible CMS I have ever used.

I do think you should update the docs and the Block Contruction Assistant to note the need for the '*' wildcard for catalogs v. entries.

Bob
Back to the top
 
Posted
Rating:
#76421
Avatar

The ocfilter tutorial should help. Would be nice for us to make a video tutorial that gives lots of practical examples.

If it's a page link, use ":max=1000" on the end.

Chris


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76423
Avatar

Community saint

How dumb. I didn't think of looking there.

Video tutorials would be a godsend for some of the more complicated areas of ocPortal. The platform is so extensive and comprehensive that there is a lot hidden in the shadows of the most common use cases.

Another idea would be to link from the various block settings to the docs in the Block Construction Assistant. You could just add these over time.

Thanks again for your help.

Bob
Back to the top
 
Posted
Rating:
#76426
Avatar

Community saint

For this gallery contact sheet, I want the items shown on a grid in a normalized size with the item's name below. It looks like the main_cc_embed block supports using your own template. I'm just wondering if anyone can point to a good starting point to achieve this since I am not that handy with coding.

I seem to remember that main_galleries_embed does display on a grid. Would this be a good stating point and just substitute the content source?

I really think that a display grid should be added as one of the standard choices for display format. This is a pretty typical presentation format for things like products as well as images which are all likely to be found in catalogs.

Bob
Back to the top
 
Posted
Rating:
#76428
Avatar

Yes, you'd set the 'template_set' parameter on the block. Let's say you set it to 'foo'. You'd copy CATALOGUE*DEFAULT*.tpl to CATALOGUE*foo*.tpl, and start customising for them. The closest display type is the maps type, so set the 'display_type' parameter as '0'.

Regarding a default grid layout, worth adding to tracker.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76431
Avatar

Community saint

I've added the feature request to the tracker.

Thanks for the tips on how to do this. We'll see how much hair loss this adventure takes.

Bob
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: