latest News addon
Permalink
Hi i want a latest news addon, i have use the page list addon and make the custom template, but in latest news i also add some images, but i don't know how this to be done.
for example please check the attachment
for example please check the attachment
or just spend $20? lol several of these available in the marketplace to save you time and money.
ChadStrat
ChadStrat
Yeah, that's also an option. I just copied that above from what I've previously done.
Maybe you can point out an add-on for him that could be used?
Maybe you can point out an add-on for him that could be used?
well ProNews is great and has a nice dashboard interface for your clients to manage news. There's easy news, but it's doesn't offer quite as much feature wise. And then there's simple news, which is cheaper, and is simply a blocks tool. I don't know much about Huntman news except to say the developer is a really good guy with strong C5 knowledge, so odds are it's a great product as well.
http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...
ChadStrat
http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...
ChadStrat
I think he was mainly looking for a template for Page List block? Those would probably just offer their own blocks to print out the news or am I correct?
I think concrete5 built-in composer is quite powerful tool now for news/blog publishing and concrete5 already comes with it pre-installed.
But, don't know, he might also just look for any solution but what I got is that he wanted to do this with Page List block...
Antti
I think concrete5 built-in composer is quite powerful tool now for news/blog publishing and concrete5 already comes with it pre-installed.
But, don't know, he might also just look for any solution but what I got is that he wanted to do this with Page List block...
Antti
Hi Antti,
You have send me the code for the image attribut
Quyestion is that where i have place this code in my own cousom template page or somewhere else
You have send me the code for the image attribut
$imgfile = $cobj->getAttribute('news_pic'); if ($imgfile) { $imgHelper = Loader::helper("image"); $title = $cobj->getCollectionName(); echo $imgHelper->output($imgfile, $title, true); }
Quyestion is that where i have place this code in my own cousom template page or somewhere else
If you're using the "Page List" block, you can either override its template or create a new template.
For overriding the default template copy this file:
here:
Then the copied file is where you would place the code.
If you want to create a new template of it, just where you'd copy the view.php, create a new folder named "templates" and paste it there with a different name, e.g. "news_tpl.php".
Although this guide is aimed at creating a new block, you can learn a lot about the block type structure and where to place files etc. from it. I'd really suggest reading it if you want to learn more about these things:
http://www.concrete5.org/documentation/developers/blocks/understand...
Antti
For overriding the default template copy this file:
/concrete/blocks/page_list/view.php
here:
/blocks/page_list/view.php
Then the copied file is where you would place the code.
If you want to create a new template of it, just where you'd copy the view.php, create a new folder named "templates" and paste it there with a different name, e.g. "news_tpl.php".
Although this guide is aimed at creating a new block, you can learn a lot about the block type structure and where to place files etc. from it. I'd really suggest reading it if you want to learn more about these things:
http://www.concrete5.org/documentation/developers/blocks/understand...
Antti
I have problem regarding how to add news item with an image in a page.I have already done in other pages but not in home page..please any body help me..
When parsing through the pages in the page list, you can get the image like this:
Or if you want to print out thumbnail of some bigger image:
Br,
Antti / Mainio