Making-Websites-With-October-CMS icon indicating copy to clipboard operation
Making-Websites-With-October-CMS copied to clipboard

Making-Websites-With-October-CMS

Open arthurrc03 opened this issue 8 years ago • 16 comments

Hi,

I neep help you...

How can display row, when create plugin with builder plugin.

this is displayColum. I would like to do this by showing all the columns in a row.

{% for record in records %}

  • {{ attribute(record, displayColumn) }}
  • {% endfor %}

    Regards.

    arthurrc03 avatar Feb 09 '17 14:02 arthurrc03

    Please check this episode out: https://www.youtube.com/watch?v=Ukcf8tgQUXc it will make it much easier to display data then using a component.

    ivandoric avatar Feb 12 '17 08:02 ivandoric

    Hi,

    thanks you for your response.

    How to avoid the dialog box, which is generated when you press submit on the form? (October cms ajax validation 25)

    regards

    arthurrc03 avatar Feb 13 '17 16:02 arthurrc03

    What dialog box?

    ivandoric avatar Feb 14 '17 07:02 ivandoric

    Good morning,

    episode 25 in the minute 6:30 appears one additional dialogs. how to avoid this, for the clients when submit form.

    Regards.

    arthurrc03 avatar Feb 14 '17 08:02 arthurrc03

    Did you check out the video till the end?

    ivandoric avatar Feb 14 '17 08:02 ivandoric

    Yes, I can't detected the error. Sorry!

    arthurrc03 avatar Feb 14 '17 08:02 arthurrc03

    What I'm trying to say is that the final product doesn't have any dialog boxes. At least for Ajax validation.

    ivandoric avatar Feb 14 '17 08:02 ivandoric

    additional dialog ('the name filed is required'). Can only be disabled with the checkbox?

    arthurrc03 avatar Feb 14 '17 08:02 arthurrc03

    There is no additional dialog. Watch the video to the end. The thing on 6:30 was just an example.

    ivandoric avatar Feb 14 '17 08:02 ivandoric

    Is there any form to reset the form after sending with ajax?

    arthurrc03 avatar Feb 14 '17 09:02 arthurrc03

    In the video Making Websites With October CMS - Part 13 - I have get this issue: The partial '_field_actorbox.htm' is not found.

    andrehol avatar May 09 '17 22:05 andrehol

    Stupid question, but is there a file called _field_actorbox.htm :) in your install? If there is, is it in the right place? If the answer to both this questions is yes, then try to download files from that episode and see if that works: https://github.com/ivandoric/Making-Websites-With-October-CMS/releases/tag/13

    ivandoric avatar May 15 '17 10:05 ivandoric

    I'm getting the same error as @andrehol, I created the form widget using artisan

     php artisan create:formwidget yo.movies ActorBox
    

    this created a partial in the following path <my_installation>/plugins/yo/movies/formwidgets/actorbox/partials/_actorbox.htm

    I've tried renaming the file _actorbox.htm to _field_actorbox.htm but this doesnt works neither

    running xdebug I notice something interesting, I put a breakpoint in the line 87 of ViewMaker.php

      $partialPath = $this->getViewPath($partial);
    

    In the others loading partials this $partialPath takes the absolute path

     "/opt/lampp/htdocs/october1/install-master/modules/backend/widgets/form/partials/_form.htm"
     "/opt/lampp/htdocs/october1/install-master/modules/backend/widgets/form/partials/_form_fields.htm"
    

    and so one...but with this partial the $partialPath is "_field_actorbox.htm"...so this just include the name file, not the path

    and the full error is

     Uncaught October\Rain\Exception\SystemException: The partial '_field_actorbox.htm' is not found. in /opt/lampp/htdocs/october1/install-master/modules/system/traits/ViewMaker.php:94 Stack trace: #0 /opt/lampp/htdocs/october1/install-master/modules/backend/widgets/Form.php(273): Backend\Classes\WidgetBase->makePartial('_field_actorbox...', Array) #1 /opt/lampp/htdocs/october1/install-master/modules/backend/widgets/form/partials/_field.htm(22): Backend\Widgets\Form->renderFieldElement(Object(Backend\Classes\FormField)) #2 /opt/lampp/htdocs/october1/install-master/modules/system/traits/ViewMaker.php(247): include('/opt/lampp/htdo...') #3 /opt/lampp/htdocs/october1/install-master/modules/system/traits/ViewMaker.php(101): Backend\Classes\WidgetBase->makeFileContents('/opt/lampp/htdo...', Array) #4 /opt/lampp/htdocs/october1/install-master/modules/backend/widgets/form/partials/_field-container.htm(8): Backend\Classes\WidgetBase->makePartial('_field.htm', Array) #5 /opt/lampp/htdocs/october1/install-master/modules/sy 
    

    @ivandoric hope than you can know a possible solution for this...thank you!!!

    cocodrino avatar Sep 25 '17 00:09 cocodrino

    @cocodrino Did you try to download the files for that lesson from github, and then work from there? Honestly these problems are usually because of some syntax error, or you missed somethng etc. try downloading my code and see if that works for you.

    ivandoric avatar Oct 02 '17 09:10 ivandoric

    Same problem here, tried also with your files but no luck. I solved it adding this in fields.yaml

    actors: label: Actors span: left type: Mmes\Movies\FormWidgets\Actorbox

    Found this here https://github.com/octobercms/october/issues/1211

    marcomessa avatar Oct 06 '17 19:10 marcomessa

    In the video Making Websites With October CMS - Part 13 - I have get this issue: The partial '_field_actorbox.htm' is not found.

    In my case, problem was caused by incorrect directory for file Actorbox.php. It was placed here: formwidgets/actorbox/Actorbox.php while it should be here: formwidgets/Actorbox.php

    LostArk2018 avatar Nov 11 '18 12:11 LostArk2018