Results 1 to 8 of 8

Thread: (solved) MM frontend editing and member linking

  1. #1
    User
    Join Date
    04-01-10.
    Posts
    213

    Default (solved) MM frontend editing and member linking

    Hi everyone,

    2 questions for one same goal. I'm using MM_bundle_all with Composer.

    1. How does frontend editing work ?

    2. Is it possible to link a MM record to one member for :
    - only this member can edit this record and
    - this member can edit only this record ?

    Thanks.
    Last edited by charled; 10/24/2016 at 18:29. Reason: (solved)

  2. #2
    User
    Join Date
    04-01-10.
    Posts
    213

    Default

    Trouvé la réponse sur le forum DE : il faut télécharger la branche feature-frontend-editing.

  3. #3

    Default

    Although this thread is relative old. May be somebody is still looking for more information. I have set up a demo website with MetaModels Frontend-editing function, hope you may find it useful. http://tinyurl.com/zr869x3
    OM MANI PEME HUNG! how many has to die for freedom and dignity. Save this world

  4. #4
    User
    Join Date
    04-01-10.
    Posts
    213

    Default

    Thanks Tsarma for it.

    Just a question : for the pages "Your company list" and "Add a company", why do you protect both the pages and the MM list modules in the articles ?

  5. #5

    Default

    Quote Originally Posted by charled View Post
    Thanks Tsarma for it.

    Just a question : for the pages "Your company list" and "Add a company", why do you protect both the pages and the MM list modules in the articles ?
    Just protecting the pages should be enough, as you might have thought of.
    OM MANI PEME HUNG! how many has to die for freedom and dignity. Save this world

  6. #6
    User
    Join Date
    04-01-10.
    Posts
    213

    Default

    Ok. Just wanted to be sure. Thanks.

  7. #7
    New user
    Join Date
    09-24-15.
    Posts
    4

    Default MM frontend editing and member linking

    Quote Originally Posted by tsarma View Post
    Although this thread is relative old. May be somebody is still looking for more information. I have set up a demo website with MetaModels Frontend-editing function, hope you may find it useful. http://tinyurl.com/zr869x3
    Hi tsarma

    Auf deiner Demoseite funktioniert die Erstellung eines Metamodels-Datensatzes leider nicht. Fehler nach Login:
    Code:
    Fatal error: Uncaught exception ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException with message Widget was not build for property mm_company::logo. thrown in composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/WidgetManager.php on line 103
    
    #0 composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/WidgetManager.php(126): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\WidgetManager->getWidget('logo', NULL)
    #1 composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/EditMask.php(385): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\WidgetManager->renderWidget('logo', false, NULL)
    #2 composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/EditMask.php(179): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\EditMask->buildFieldSet(Object(ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\WidgetManager), Object(ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Palette), NULL)
    #3 composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/ActionHandler/CreateHandler.php(59): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\EditMask->execute()
    #4 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/View/ActionHandler/AbstractHandler.php(54): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\ActionHandler\CreateHandler->process()
    #5 system/modules/dc-general-contao-frontend/config/event_listeners.php(52): ContaoCommunityAlliance\DcGeneral\View\ActionHandler\AbstractHandler->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #6 [internal function]: ContaoCommunityAlliance\Contao\EventDispatcher\EventDispatcherInitializer->{closure}(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
    #7 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Object(Closure), Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
    #8 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #9 composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/FrontendEditor.php(78): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #10 composer/vendor/metamodels/contao-frontend-editing/src/FrontendEditHybrid.php(64): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\FrontendEditor->editFor('mm_company', 'create')
    #11 system/modules/core/classes/Hybrid.php(239): MetaModels\Contao\FrontendEditing\FrontendEditHybrid->compile()
    #12 composer/vendor/metamodels/core/src/MetaModels/FrontendIntegration/MetaModelHybrid.php(107): Contao\Hybrid->generate()
    #13 system/modules/core/library/Contao/Controller.php(484): MetaModels\FrontendIntegration\MetaModelHybrid->generate()
    #14 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
    #15 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
    #16 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
    #17 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
    #18 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
    #19 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
    #20 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
    #21 index.php(20): Contao\FrontendIndex->run()
    #22 {main}
    Frage: Wie kann man das feature "frontend editing für MetaModels" installieren?

    Nick

  8. #8

    Default

    It works now.
    Why not download the installation provided and try it your self
    OM MANI PEME HUNG! how many has to die for freedom and dignity. Save this world

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •