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.


[solved] Blogs away from News?

Login / Search

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

Community saint

Just curious, I'm playing with oc Portal trying to figure it all out.

But I was thinking of a system where there was news, as news is, and each member can have a blog, but it seems the two are connected, so a users blog post can push down the news.   Is there a way to remove blogs from news, and have a separate blog page showing recent additions, and possibly a list of members with blogs to view as a sidebar?

Paul


Last edit: by Arbo

Paul
Back to the top
 
Posted
Rating:
#73482
Avatar

Community saint

Let's make a couple of assumptions:
  • 'News' will originate on-site (not a feed, but inserted by Admin or nominated members) and will carry an ID of '1'
  • 'Blogs', allocated to all, several or selected users will carry ID's of '8', '9', '10', '11', '12', '13', '14' and '15'

Substituting the following for the default 'News' block ……

Code

[block="0" title="News" fallback_full="3" fallback_archive="0" filter="1"]main_news[/block]<br />
[block="0" title="Blogs" fallback_full="1" fallback_archive="0" filter="8,9,10,11,12,13,14,15"]main_news[/block]
…… will give you two distinct boxes in which the first will only display 'News' items, filtered by calling the ID '1', and the second will display 'Blog' items, filtered by the other ID's allocated to individuals.

More detailed explanation can be given for the other elements used in the block, but try and work it out for yourself, and you shouldn't come up short when you see something similar elsewhere.

Does that nail it for you?


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

Community saint

I'll try to make sense of that.  As of now, I made a 'members blogs' zone.

I modified the main site page by adding a blogs="0" to the main news block.  That get's rid of the blogs according to what I found in the documentation.   Though unforutnately, the only options are 0 or -1, and -1 shows both.   Why there is not a '1' or some other option that shows blogs but not news is a wonder.

Thanks for the info, I'll work on figuring it out, as this whole system is very different than anything I've worked with in the past.   Not sure I get where the ID comes from.

Paul
Back to the top
 
Posted
Rating:
#73484
Avatar

Community saint

update:   I searched to find the 'blocks' php code, and found that if you set blogs to '1' in the options, it shows blogs, not news.

You don't get the nice block around it like you do if it's news, but I'll figure that out as well.

Paul
Back to the top
 
Posted
Rating:
#73493
Avatar

Fan in training

You can find IDs from Site Tree Editor for instance.
Home » Admin Zone » Pages » Site Tree editor

ID-s are quite useful in choosing which categories of content are being shown in a specific box.
Back to the top
 
Posted
Rating:
#73509
Avatar

Community saint

Ah, I see, the problem is each new user with a blog creates a new id, and each new news category is a new id.   So just using the 0, 1 or -1 'blog' option for main_news (or whatever it is called) seems a much easier solution.


Paul
Back to the top
 
Posted
Rating:
#73533
Avatar

Community saint

Fletch said

Let's make a couple of assumptions:
  • 'News' will originate on-site (not a feed, but inserted by Admin or nominated members) and will carry an ID of '1'
  • 'Blogs', allocated to all, several or selected users will carry ID's of '8', '9', '10', '11', '12', '13', '14' and '15'

Substituting the following for the default 'News' block ……

Code

[block="0" title="News" fallback_full="3" fallback_archive="0" filter="1"]main_news[/block]<br />
[block="0" title="Blogs" fallback_full="1" fallback_archive="0" filter="8,9,10,11,12,13,14,15"]main_news[/block]
…… will give you two distinct boxes in which the first will only display 'News' items, filtered by calling the ID '1', and the second will display 'Blog' items, filtered by the other ID's allocated to individuals.

More detailed explanation can be given for the other elements used in the block, but try and work it out for yourself, and you shouldn't come up short when you see something similar elsewhere.

Does that nail it for you?


Thanks Fletch, That nailed it for me!
That's very clever and something I definitely need to implement on my site. :thumbs:
Back to the top
 
Posted
Rating:
#73535
Avatar

Community saint

Perfect perfect… Thanks Fletch  :thumbs:


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#73536
Avatar

Community saint

Though if you want to display blogs, and have a lot, it's easier to use the 'blogs' tag, now that it's known the option is there just to show blogs.

Seems figuring out the ID for potentially hundreds of different peoples blogs is the long road to take.

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

Quick reply   Contract

Your name:
Your message: