How to build new functionality?
PermalinkI 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.
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.
check it out, it does exactly what you want.. no need to build a block on your own.