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.


Blogs 'category' and 'archive' list

Login / Search

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

Community saint

I am working on getting a site up and running.   I want to separate the 'news' from 'blogs'.   So I set up a zone that is 'members blogs', and on the welcome page I have it set to show only news (I remember finding out how to do this a while back and see it is now included in the software)… and on the members blogs page it shows only blogs.   But I want to have the category and archive side bar on the blogs page that does not include the 'news'.   I can not seem to find a block that does this.   And the blocks that you would think would show this, only appear to show news.

Any ideas?

Thanks
Paul

Paul
Back to the top
 
Posted
Rating:
#77461
Avatar

Pretty sure the blocks have a 'blogs' or 'blog' parameter to control this kind of behaviour.


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

Community saint

The side blocks do not appear to, at least, not with the build in editing.  Not that I saw.   But I will take a look at the block code and see if it is in there and I just have to manally add the block without the built in block editor.

thanks

Paul
Back to the top
 
Posted
Rating:
#77469
Avatar

Let me know which block you're talking about and I'll check :).


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

Community saint

side_news_categories ..  it shows only the names of news categories that have items.  Does not show blogs.   What I am looking for is something like side_news_categories that shows a list of blogs available by user name (since that 'category' is users names for individual blogs), if that makes sense.

Paul
Back to the top
 
Posted
Rating:
#77471
Avatar

Ah, you're right there is no way to do that with a block.

To be honest though, if it's going into a block it's going to be a small amount of data so I'd think you could just put it in manually into a menu. If there's more than say 10 blogs, having it on the nav doesn't make sense anyway.


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

Community saint

I don not understand why if it says it is news/blogs, that it does not show blogs.   I guess I will have to spend a good bit of time figuring out how ocp does database access and just write my own block to do as I need.    I know I fiddled with the database stuff before and it was not all that clear, but I will figure it out, I hope.  thanks.

You can see what I am trying to achieve by looking here.  Just a list of most recent blog entries by members.

Paul
Back to the top
 
Posted
Rating:
#77473
Avatar

I don not understand why if it says it is news/blogs,

ah, bug, thanks.

There's no way I can immediately think of to do what that vBulletin thing is doing.
Even if you get the side_news_categories showing blogs (which actually is one liner code change), it's not sorted by last-post date or showing when the last posts were.


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

Community saint

Ok.   What line change would be needed to show blogs?  I can copy it from there and figure out the sql stuff and tables to get it to do that and make a custom block of it.

Thanks for all your input.

Paul
Back to the top
 
Posted
Rating:
#77481
Avatar

It's at the top of the block PHP file, it has array('nc_owner'=>NULL), meaning news categories (if nc_owner is set, it is a blog). You'll need to either just remove that (in which case you'll get news cats too), or you'll need to rewrite the line with a manual query that has a nc_owner IS NOT NULL in there (query_select can't do those kinds of clause).
Something like query('SELECT * FROM ocp_news_categories WHERE nc_owner IS NOT NULL');


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

Community saint

Cool, thanks for all your help.

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

Quick reply   Contract

Your name:
Your message: