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.


ocPortal 'BLOCK' walls I need to get over

Login / Search

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

Community saint

ocPortal 'BLOCK' walls I need to get over

I am looking for ways to display image content on my website. I know there are various ways but I am having questions and running into 'block' walls.

So first a question about IOTD:

Is it possible to run 2 or more IOTD type blocks at the same time on the same page where each one would have different content and different titles? Has anyone done this? I have tried having two IOTD's on the same page but they display the same image even when the parameter is set on random.

Let me move on to the next thing I have considered:

Using the MAIN_CONTENT block, I find it will display a selected image which is good for me - although I would like the option of displaying more than one image of my choosing and not necessarily from the same gallery source

My big problem with this is it is presented in a double box which I find distracting and inconsistent with the sites theme also I am not able to display text in the block although I can name the outer block's title. I don't know if there are any more options with this block?

Next, I am looking into something I have already used but find it has some difficulties too. I have used the MAIN_GALLERY_EMBED block and surrounded it with the BOX block. This block can be configured to display multiple images from a particular gallery. Using the BOX block I can drop text in it. A parameter of this block will display a selected number of images. …but I have failed at being able to select PARTICULAR images within a gallery - I can however get it to display a chosen number of images in order starting from the first image in the gallery.

I would be really excited to find a way to select particular images from even the same gallery - although I would like a wider freedom to select from anywhere in the site. I have tried to use the image id as shown on the address bar in the SELECT parameter - but this doesn't do anything here even though I have found it does affect the MAIN_CONTENT block's display.

Maybe I will just need to use the BOX block and do a bunch of hand coding to get it to do what I want?

It just seems like there should be more flexibility with these blocks that should allow a fuller capacity to display content on the site.

I don't want anyone to think I am making undue complaints about this super CMS because I am really impressed with ocPortal and it's capabilities! I think it is in my lack of ocPortal 'how-to' knowledge with the tools available that is creating the 'block' walls I have mentioned above. I am really thankful for all the ocPortal wizards on the forum and am looking forward to your insight.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#59896
Avatar

I have tried having two IOTD's on the same page but they display the same image even when the parameter is set on random.

Cacheing will do this. In 4.4 it will be possible to turn off cacheing for individual blocks.

Using the MAIN_CONTENT block, I find it will display a selected image which is good for me - although I would like the option of displaying more than one image of my choosing and not necessarily from the same gallery source

The parameter that specifies the category is actually an ocFilter, so you can do any filter string. There's a tutorial on ocFilter.
The same cacheing issue might happen, I'm not sure. If it does you could probably fudge it by making the parameters very slightly (trivially) different. In fact you could probably do the same thing to solve the IOTD problem, e.g. put a space on the end of the title of one of them.

I have tried to use the image id as shown on the address bar in the SELECT parameter - but this doesn't do anything here even though I have found it does affect the MAIN_CONTENT block's display.

I don't think main_gallery_embed has a select parameter.



I agree about adding more control. Also though the one thing ocPortal is criticised for most is that it's flexibility makes things too confusing for people, so at the moment our priority is on usability of the features we have already.


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

Community saint

Chris Graham said

I don't think main_gallery_embed has a select parameter.
I believe it does give the ability to SELECT images from a particular gallery but so far with this I have only figured out how to display images FROM THE SAME GALLERY and limit how many to show. …I have had a dickens of a time wrapping my head around ocPortal's filter system to select particular images from the selected gallery with the MAIN_GALLERY_EMBED block.

I have slightly more success with the filter using the MAIN_CONTENT block. The filter seems to allow me to use a word, like Tyrannosaurus, to select and image but in trying to pin down a particular image by an ID has also been confusing to me.

Where will I find the 'ID' for an image. I was thinking it is in the URL and so when I get a URL of http://prehistoricsillustrated.com/site/index.php?page=galleries&type=image&id=semihtmlh2_396 I am thinking the ID must be 396 -> but when I use it I get a completely different image http://prehistoricsillustrated.com/site/index.php?page=galleries&type=image&id=semihtmlh2_279

This has baffled me a while. So where else would I find it? …in the database? I have explored but haven't found it yet.

Also with the MAIN_CONTENT block is it possible to select more than one image? I have only been able to select ONE image at a time.

Well with all this said, I find it exciting to see that Multi_categorisation included as something for ocPortal to consider/include at some future time:
0000063: Multi-categorisation - ocPortal feature tracker

I am hoping that this will be a great expansion of the already powerful ocPortal's horizon. Though I fear it will be some time before we reach that horizion.

Thanks again Chris and the ocPortal team for you ambition to grow ocPortal and make it ever better.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#60370
Avatar

Hi :),

Very quick reply from me as I'm stretched for time…

main_content does just one item

you can find ID's in edit URLs


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

Community saint

OK, thanks Chris.

…edit URLs? –> not a function of ocPortal?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#60380
Avatar

Community saint

Not sure if you're asking where it is… but for those curious…

It's in Control Functions at bottom of the image's page. You can just roll your mouse over and take a peak at the status bar at the bottom of your browser.



 :offtopic: - I am still enjoying my visits to your site, friendly. So much info to absorb that it cannot be done all at once.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#60381
Avatar

Community saint

Eric said

roll your mouse over and take a peak
Thank, you, thank you, thank you. I should have looked down instead of up!

Eric said

I am still enjoying my visits to your site
…so your the one!


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#60382
Avatar

Community saint

 :offtopic: - "the one"?  :lol: I doubt I am the only one. I did register tho.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: