ivandoric / Making-Websites-With-October-CMS

This is a repository for video tutorial series about making websites with October CMS. You can check out the series here: https://goo.gl/eW32CM
160 stars 52 forks source link

Making-Websites-With-October-CMS #3

Open arthurrc03 opened 7 years ago

arthurrc03 commented 7 years ago

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.

    ivandoric commented 7 years ago

    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.

    arthurrc03 commented 7 years ago

    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

    ivandoric commented 7 years ago

    What dialog box?

    arthurrc03 commented 7 years ago

    Good morning,

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

    Regards.

    ivandoric commented 7 years ago

    Did you check out the video till the end?

    arthurrc03 commented 7 years ago

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

    ivandoric commented 7 years ago

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

    arthurrc03 commented 7 years ago

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

    ivandoric commented 7 years ago

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

    arthurrc03 commented 7 years ago

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

    andrehol commented 7 years ago

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

    ivandoric commented 7 years ago

    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

    cocodrino commented 6 years ago

    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

    /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!!!
    ivandoric commented 6 years ago

    @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.

    marcomessa commented 6 years ago

    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

    LostArk2018 commented 5 years ago

    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