1 2015-02-25 19:45:16

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

2 2015-02-26 00:16:21 (edited by wormsunited 2015-02-26 00:19:31)

Re: Mostra add image to post

@toshinori

You mean admin view? and Front view? Same image or each image for each post?

Please describe more your project thanks in advance wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

3 2015-02-26 01:09:17

Re: Mostra add image to post

/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 smile

Re: Mostra add image to post

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.