News Post Template re-arrange
Permalink Browser Info Environment
Hello guys, ive been trying to play around with EasyNews and pagetypes to try to get default's to work with easynews posts by submitting them into a certain block when creating them through the dashboard.
E.g. click onto link which takes you to new page with the news requested inside a preformated block with a bckground or something.
At the moment, regardless of what page type i choose, easynews removes all formatting and just places the news into the main section, bald.
goto:http://garyclancy.idsi.com.au/postcards/... and check between the different posts. Thanks guys
E.g. click onto link which takes you to new page with the news requested inside a preformated block with a bckground or something.
At the moment, regardless of what page type i choose, easynews removes all formatting and just places the news into the main section, bald.
goto:http://garyclancy.idsi.com.au/postcards/... and check between the different posts. Thanks guys
Type: | Discussion |
---|---|
Status: | New |
yeh i did some searching in the controller.php and found that and tried to editing. but dont know what coding i should use to make it insert it to a block with a certain class. Would be great if someone could code a lil demo i can edit towards my purpose.
Try putting
under
where SOMETHING is the name of a custom template edited by you from view.php.
Can this be a good solution for you?
$bt->setCustomTemplate('SOMETHING');
under
$p->addBlock($bt, 'Main', $data);
where SOMETHING is the name of a custom template edited by you from view.php.
Can this be a good solution for you?
Actually Easy News removes all existing Main blocks and add a new content block to main section containing the news.
This behaviour is the one suggested by FAQ package example for developers.
If you want to avoid this behaviour, edit
easy_news/controllers/dashboard/easy_news/controller.php
to change block name, or type.
Hope it helps.