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.


Something like main_cc_embed for multiple categories

Login / Search

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

Community saint

Is it possible to have a block like main_cc_embed that spend multiple categories (basically, display the images from all the image catalogues on a single page)?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#75925
Avatar

main_cc_embed can do it.

Give a 'param' parameter of some valid category in the catalogue.

Then use ocFilter with the 'select' parameter. E.g. if '3' is a category and you want everything beneath it…

param="3" filter="3*"

i.e. filter is intelligent enough to support sub-tree queries and other stuff you specify even if it's not in the main category.


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:
#75928
Avatar

Community saint

Does this work if I want all the galleries below gallery home?

Bob
Back to the top
 
Posted
Rating:
#75930
Avatar

If you really do mean it's all in one catalogue, that's fine, yet you can find the root category ID like in the above example.

If you mean you're actually using/will-be using the galleries module (which actually seems likely) then the catalogue block's not going to work. But I think with main_gallery_embed you can do param="root*" to get a similar effect.


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:
#75931
Avatar

Community saint

Chris-

Yes, I have my images in a single catalog with multiple categories (at least for now - I may revisit that decision after 7.2 comes out).

y client wants a page that just shows all the images from all the image catalog categories. I really need main_cc_embed using the catalogue root as and including al categories.

Bob
Back to the top
 
Posted
Rating:
#76945
Avatar

Community saint

I'm finally getting back to this. It seems that main_cc_embed displays only 30 entries. Is there a parameter to set the number of entries to display?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#76946
Avatar

Think you need &max=10000 (i.e. big number) in URL of actual page. I know that's not ideal. You can also fudge the block's code, 30 is defined in sources/blocks/main_cc_embed.php.


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:
#76973
Avatar

Community saint

I'm sure I am doing something wrong but when I add the &max parameter , I get a 404 error. This is the URL I am using:

Code

http://www.domain.com/xxxxxxxxxx.htm&max=10000

Thanks for anyone who can set me straight.

Bob


Last edit: by BobS
Back to the top
 
Posted
Rating:
#77002
Avatar

Community saint

BobS said

I'm sure I am doing something wrong but when I add the &max parameter , I get a 404 error. This is the URL I am using:

Code

http://www.example.com/xxxxxxxxxx.htm&max=10000

Thanks for anyone who can set me straight.

Bob
When adding parameters the first parameter must always start with ? not &. The &'s are use for 2nd parameter and onwards.


Last edit: by temp1024

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#77004
Avatar

If the inventors of HTTP had made it a single character instead of either ? or & depending on context (there is no technical reason why it could not be a single character, if HTTP was designed like that), it would make these explanations so much easier for us all.


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:
#77016
Avatar

Community saint

Agree. It boggles the mind sometime seeing what get into technical specs. Its almost like they go out of their way to make things unnecessarily convoluted.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#77051
Avatar

Community saint

Chris Graham said

…  it would make these explanations so much easier for us all.

temp1024 said

Agree … Its almost like they go out of their way to make things unnecessarily convoluted.
ROTFLMAO

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#77061
Avatar

Community saint

Thanks, temp.

I actually knew that but just didn't suss it out because Chris is never wrong ;)

And, of course, that works perfectly. Now onto creating my new template. This should be fun.  :shake:

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

Quick reply   Contract

Your name:
Your message: