easy news addon
Permalink
Hi I have use the easy news addon, and i do the customization in that,
i have customize the /easy_news/single_pages/dashboard/easy_news/view.php
her i have add the form tag for the image browse
/easy_news/controllers/dashboard/easy_news/controller.php
here i have do some editing.
But not working any thing.
Is there any more modification there, like .xml file or etc.
i have customize the /easy_news/single_pages/dashboard/easy_news/view.php
her i have add the form tag for the image browse
/easy_news/controllers/dashboard/easy_news/controller.php
here i have do some editing.
But not working any thing.
Is there any more modification there, like .xml file or etc.
thanks for your reply
there is one more issue
in view.php i have use the code
and in controller.php
i have use
but this show the fatal error, when i edit any entery
Fatal error: Call to undefined method Page::getCollectionImage() in C:\wamp\www\concrete5\packages\easy_news\single_pages\dashboard\easy_news\view.php on line 14
there is one more issue
in view.php i have use the code
$newsImage = $news->getCollectionImage();
and in controller.php
i have use
$data = array('ctID' =>$ct->getCollectionTypeID(),'cImage' => $this->post('newsImage'), 'cDescription' => $this->post('newsDescription'), 'cName' => $this->post('newsTitle'), 'cDatePublic' => Loader::helper('form/date_time')->translate('newsDate'));
but this show the fatal error, when i edit any entery
Fatal error: Call to undefined method Page::getCollectionImage() in C:\wamp\www\concrete5\packages\easy_news\single_pages\dashboard\easy_news\view.php on line 14
Sure it throws a fatal error since getCollectionImage() is not a Page object method. There is getCollectionIcon but im fairly sure that's not what you're looking for.
So what exactly are you trying to achieve here?
So what exactly are you trying to achieve here?
Nope, all the dashboard functionality is held on controller.php and view.php. Note if you edited the database (db.xml) you need to refresh (reinstall) the package.
If you're editing the existing forms remember to add enctype to forms in order to get the files in.