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.


Sponsorship for feature tracker item #301 (Provide a grid layout option for main_cc_embed)

Login / Search

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

Community saint

I will provide one hour (6 credits) for this project or one-third the total cost.
0000301: Provide a grid layout option for main_cc_embed - ocPortal feature tracker

This project has at least two other members interested so, hopefully, they can each make the commitment for 6 points (just over US$50) which would fully fund these project.

Bob
Back to the top
 
Posted
Rating:
#78573
Avatar

Community saint

Thanks for your generous sponsorship of 6 support credits, Fletch. We're only 6 more credits away from having a great new presentation format that will not need to be built by every user and then kept up-to-date through each upgrade.

To all community members: Please consider sponsoring this or other projects in the feature tracker. Each of these improvements makes ocPortal a better product and makes our lives as site developers that much easier.

Bob


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

Community saint

BobS said

Thanks for your generous sponsorship of 6 support credits, Fletch. We're only 6 more credits away from having a great new presentation format that will not need to be built by every user and then kept up-to-date through each upgrade.
Bob, what can I say? Your enthusiasm got the better of me!

Several years ago, whilst serving with NATO in Belgium, on one of my regular trips to Brussels city centre I emerged from a Metro (underground train system) station exit to be assailed by an horrendous noise above my head that eventually turned out to be something in the region of 100 Honda Gold Wings being revved up in unison.

Honda Gold Wing and a couple of 'wrinklies'
I was thrilled by the sheer raw power on display, but equally perplexed by the fact that not a single owner appeared to be under the age of FIFTY. When I asked about this phenomenom I was casually informed that these guys-'n'-gals were all long-term enthusiasts, but that they were only able to indulge their luxury purchase after many years of saving carefully to realise their dream!

What the hell has this got to do with 0000301: ocPortal feature tracker? Well, it is my convoluted way of pointing out that many of us more mature users find ourselves in the enviable position of being able to indulge ourselves. So, digging into our hip pocket to fund a 'nice-to-have' feature is sometimes a no-brainer.

Others may not find the feature as appealing, and they probably also have much more important things to do with their hard earned cash. I fully understand that, especially when a large majority of discerning site builders who use ocPortal are non-profit enthusiasts.

But I will join you in making a plea to those who can afford to fund these Tracker Features, to take another look at what is on offer and perhaps sponsor something, even partially, with a few 'credits'. Ultimately, your satisfaction is knowing that you've helped move your favourite CMS, ocPortal, forward!

Go on, you know you want to … !!

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

Community saint

When I saw that picture I thought for sure you accidentally posted here something meant for another site. But thanks for reminding me of how fortunate I am.

I am by no means wealthy and my decision to sponsor some projects here involves some sacrifice - I will not be buying the DSLR I had planned to this year. I am consoling myself by reminding myself that I have so much work to do on the site that I wouldn't have time to shoot anyway. And I do realize that many others are not so fortunate.

But I think what you said is so true. ocPortal has made possible sites that we might not otherwise be able to build and, if possible, it's nice to give a little back. It needn't be much - even small contributions add up if many get involved.

Thanks for the entertaining story.

Bob
Back to the top
 
Posted
Rating:
#79014
Avatar

Community saint

Only 6 more support credits needed to complete sponsorship of this great feature which will implement a format that many create individually and then must maintain during upgrades. Having this standardized display option available will be good for ocPortal and its users.

Please consider completing the sponsorship for this feature if you can.

Bob
Back to the top
 
Posted
Rating:
#79034
Avatar

Community saint

Bob and Fletch, you convinced me to join you in this excellent feature sponsorship.

Although I'm not yet retired as you two:cool:, I'm increasingly looking forward to it if I can just stop accepting new work contracts and get on with the rest of my life as a retiree. The present world economic situation forces me to be prudent, but fortunately I can choose my working involvement. Presently, it has much to do with job-related continuing technical education for adults, helping workers master essential skills needed for today's better paying careers. I have chosen to use ocPortal CMS as the backbone of my course on Computer Information Technology and the Importance of  quickly acquiring Social Networking skills using the right tools. During the third level of this course, all students are trained to install ocPortal, administer, apply some basic design changes and use it on their own sub-domain.

I have a close interest in participating in ocPortal's evolution into the leading CSM of our times. I applaud your own commitment and I'm happy to add my own small contributions to support this program that has brought me so much joy to use and to teach to others.:)
Back to the top
 
Posted
Rating:
#79040
Avatar

Community saint

Jean-

Thanks so much for adding your support and completing sponsorship of this feature that I think many will find very useful. I think it's great that members can take their individual small sponsorships and work together to build a better ocPortal and a stronger community.

I've seen few so committed as you, Jean, who not only relies on ocPortal for his own sites but also is training potential new users who will understand the power and capabilities of this great CMS.

Bob


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

Community saint

… I'm not yet retired as you two:cool:, I'm increasingly looking forward to it if I can just stop accepting new work contracts and get on with the rest of my life as a retiree … this program that has brought me so much joy to use and to teach to others.:)
Don't even consider retiring if you are getting so much pleasure from 'sharing' with others - especially youth.

Perhaps some day you can decide that 'enough-is-enough' and you can return to your beloved Canada to put your feet up.

Perhaps, some day …

 :thumbs:

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

Community saint

Fletch said

Don't even consider retiring if you are getting so much pleasure from 'sharing' with others - especially youth.

Perhaps some day you can decide that 'enough-is-enough' and you can return to your beloved Canada to put your feet up.

Perhaps, some day …

 :thumbs:
I agree.

I often fear that i will just get lazy without having deadlines and such and so I tend to create my own (often unrealistic) deadlines for projects.

But at other times it's nice to know that my day can be just as I want it to be and it is nice to be able to spend time with my parents as they get older and while they are still vital and active.

Bob
Back to the top
 
Posted
Rating:
#79060
Avatar

Community saint

Thank you guys!:)

I enjoy what I do, but find myself missing the snow storms of Canada and the smells of Lumberjack food typical of the small region of the Laurentian mountains I grew up in.

I find it also rewarding in many ways to be part of this great project that is ocPortal!
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#84024
Avatar

Community saint

Well, Chris knocked this one out. I am assuming that it will work with 8RC6 so I might give it a try on my test site later today.

So we have one more in the hopper already fully-sponsored: 0000309: Allow dynamic user filtering of catalog and gallery display - ocPortal feature tracker. This should be a very useful addition although I am anxious to see what Chris actually conjures up.

To complete what I call the "presentation pack", we need to fund one more feature: 0000063: Multi-categorisation - ocPortal feature tracker

The multi-categorization should be very useful to many types of sites that have content which should be included into multiple categories as indicated by the fact that it has the most votes. This might be especially useful if you conduct e-commerce on your site. The ability for members to find an item browsing through multiple paths is pretty much standard fare for e-commerce software.

You can now purchase as little as one support credit, but consider sponsoring 3 or 6 credits – whatever you can afford – to bring this needed feature to life. I believe that many of you and your members will delight in having this great new flexibility in terms of finding and presenting items.

Bob
Back to the top
 
Posted
Rating:
#84037
Avatar

Community saint

I don't see any option for a grid layout in the block assistant for main_cc_embed.

no_grid_option_for_main_cc_embed - BobS702's library

Bob

Back to the top
 
Posted
Rating:
#84066
Avatar

I think I probably forgot to encode this properly. When I'm done with v8 fixes I'll switch back into v9 (working number ;)) and update the patch.

Also I didn't note that in the issue you mentioned a title under the image. The default look I've cded up is the normal kind of ocPortal standard box with a title, surrounding the image.

However this would be trivial to change in the CATALOGUE_DEFAULT_GRID_ENTRY_WRAP.tpl template.

To me the fact that the templates now have saner names, and a more logical structure, does more for you than the actual issue here. It's now much more intuitive to customise.


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

Community saint

Chris Graham said

I think I probably forgot to encode this properly. When I'm done with v8 fixes I'll switch back into v9 (working number ;)) and update the patch.

Also I didn't note that in the issue you mentioned a title under the image. The default look I've cded up is the normal kind of ocPortal standard box with a title, surrounding the image.

However this would be trivial to change in the CATALOGUE_DEFAULT_GRID_ENTRY_WRAP.tpl template.

To me the fact that the templates now have saner names, and a more logical structure, does more for you than the actual issue here. It's now much more intuitive to customise.
The template names are certainly easier to make sense of.

Since the grid is not available for the main_cc_embed block (unless I can manually enter the format), the name issue will not be an issue at all for the time being.

Bob
Back to the top
 
Posted
Item has a rating of 5 (Liked by Brian Hay)  
Rating:
#84180
Avatar

Okay, sorted now. A few things to go over.

Whilst the tracker is about the main_cc_embed block, really this is done across the whole catalogue system. So it is also a catalogue setting. In the proces of doing it correctly, I forgot to also check what the issue talked about :lol:.


The template is CATALOGUE_DEFAULT_GRID_ENTRY_WRAP.tpl. As discussed, it uses standard boxes, as per convention.

If you want to have titles underneath, it's a really trivial change…

Code

{+START,SET,TOOLTIP}
   <table summary="{!MAP_TABLE}" class="solidborder">
      <tbody>
         {FIELDS_GRID}
      </tbody>
   </table>
{+END}

{+START,IF_NON_EMPTY,{FIELD_1_THUMB}}
   <div class="entry_box_thumbnail">
      <a onmouseout="if (typeof window.deactivateTooltip!='undefined') deactivateTooltip(this,event);" onmousemove="if (typeof window.activateTooltip!='undefined') repositionTooltip(this,event);" onmouseover="if (typeof window.activateTooltip!='undefined') activateTooltip(this,event,'{$GET^;*,TOOLTIP}','500px');" href="{VIEW_URL*}">{FIELD_1_THUMB}</a>
   </div>
{+END}

{+START,IF_EMPTY,{FIELD_1_THUMB}}
   <a title="{$STRIP_TAGS,{FIELD_0}}" href="{VIEW_URL*}">{!VIEW}</a>
{+END}

<div class="ratings">
   {RATING}
</div>

<p>
   <span class="name">{FIELD_0}</span>
</p>


Regarding the main_cc_embed (and main_recent_cc_entries) display_type parameter. I have updated it now so the grid option is in the UI. I have also allowed the parameters to have textual names rather than numbers. So if you look at the Comcode you'll see e.g. 'GRID' instead of '3' (saying display_type="3" would still work though).


I am updating the tracker with a new tar in a moment.


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

Community saint

Thanks for this, Chris. I'll try to get my test site updated this evening and then take this for a spin.

I hope this feature proves useful for many.

Bob
Back to the top
 
Posted
Rating:
#84183
Avatar

Community saint

This is awesome, thanks guys!!

I took it for a run on a test site first, worked flawlessly.

Now I am implementing it on a live ecommerce site (in custom folders for now) that I did for a friend and it is going to make a world of difference for the look of it.

It looks kinda goofy at the moment because his images are all different sizes so they are messing up the layout. But I just got started on it so I will be testing and exploring deeper and if I make changes worth sharing of course I will.
Back to the top
 
Posted
Rating:
#84185
Avatar

Ah, I'd better put a min-height in there for that.


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
Item has a rating of 5 (Liked by Brian Hay)  
Rating:
#84196
Avatar

You might have already done something like this Brian, but for the sake of everyone…

In catalogues.css change

Code

.display_type_GRID .entry_box_thumbnail {
}
to:

Code

.display_type_GRID .entry_box_thumbnail {
   min-height: {$CONFIG_OPTION,thumb_width}px;
}

That'll force the thumbnail wrappers to pad out short images.

We'll include this change.


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
Item has a rating of 5 (Liked by FletchLiked by Chris GrahamLiked by Jean)  
Rating:
#84207
Avatar

Community saint

I had set the max-height to 210px, his tallest thumbnail.


That worked great but I like your idea better in case in the future we change thumbnail size in the configuration.

That worked good but things still did not quite line up since his tallest was 10px more than the thumbnail width set in configuration.



So I set a max-height in the same way as well which brought me back to the same effect as setting it to 210px. Which looked ok but I was still not happy because they are different widths, n part because some of his titles are so long. And also the thumbnails look funny not centered.



So I centered them and set a max width too. And also set a max width and height for the title. This is what I came up with.

Code

.display_type_GRID .entry_box_thumbnail { min-height: {$CONFIG_OPTION,thumb_width}px; max-height: {$CONFIG_OPTION,thumb_width}px; min-width: {$CONFIG_OPTION,thumb_width}px; max-width: {$CONFIG_OPTION,thumb_width}px; text-align: center; }

Code

h3 { max-width: 225px; max-height: 15px; overflow: hidden; }

Which produced this.

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

Quick reply   Expand