Topic: Mostra add image to post
Hello,
Can someone help me add option to monstra admin page?
I nead add image (thumbnail) to every page in edit page view.
And then view this image in blog view template.
Please Help
Pages 1
Hello,
Can someone help me add option to monstra admin page?
I nead add image (thumbnail) to every page in edit page view.
And then view this image in blog view template.
Please Help
@toshinori
You mean admin view? and Front view? Same image or each image for each post?
Please describe more your project thanks in advance
/plugins/box/pages/views/backend/add.view.php
/plugins/box/pages/views/backend/edit.view.php
echo (
Form::label('page_thumb', __('ikona', 'pages')).
Form::input('page_thumb', $post_thumb, array('class' => 'form-control'))
);
at
/plugins/box/pages/pages.admin.php
in case "add_page":
I added new entry [ 'thumb' => Request::post('thumb'), ] and so on. Similar to other entries.
Do I nead some more modifications ? When I select ADD NEW PAGE I have - Undefined variable: post_thumb
What is the logic of that CMS? Model View Controller or similar. Which files?
Im Not saying that Im skilled programmer / help
Thumb image in every post. By selecting input in edit post. Adding string to input text is not a problem, but
I added input box in view, and everywhere in pages.admin.php Everythink works OK. Adding new page works. XML is updated with new entry page with page_thub string like others. But editing existing page make string [page_thumb] blank. I nead to debug [Request] thtats my problem. I cannot see where variables are clered. What happening after clicking "save and exit". Debuging strategy would be help.
Pages 1