How to build new functionality?

Permalink
So, I have an issue. I am very new to concrete5 and am still trying to get the hang of everything. I was wondering if anyone could help point me in the right direction. Here is a quick overview of what I am trying to accomplish.

I want to build in the functionality of news posts. So I figure this is a new page type (easy enough). The problem lies in additional functionality of creating a block(s) to read a excerpt of this content and show it on the home page.

My thought on the page type is it would have by default a content block on it that would hold the title of the news piece and a piece of content for the actual news post.

My block then would need to be able to pull the last n number of news posts, show their title and link to them? Again the block is where I get stuck.

Any insight would be appreciated and thank you in advance.

 
Remo replied on at Permalink Reply
Remo
this is what page list is for!

check it out, it does exactly what you want.. no need to build a block on your own.
zwigby replied on at Permalink Reply
ok so that is there but I need my title and description that i enter on my news item page to actually be displayed on that page, any thoughts on how to do that?
frz replied on at Permalink Reply
frz
if you set the page name and short description on your new page to the article name and synopsis, that's what the page list block will use.

it is certainly possible to build a block that looks to specific block areas in child pages and pulls that content back - but i think that might be overkill for what you're trying to do...

it also sounds like a custom PHP gig that might take someone familiar with c5... since you're looking for data contained in child page objects, i'd be concerned about performance...

short answer: its quite doable, but probably not a one line answer here.