Closed iMuMz closed 3 years ago
Yes this is posible with the normal nova feature ->alwaysShow()
https://nova.laravel.com/docs/1.0/resources/fields.html#textarea-field
On Wed, Jun 3, 2020 at 4:21 AM Chad notifications@github.com wrote:
Hi,
Is it possible to show the content by default on the detail view of a resource?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/emilianotisato/nova-tinymce/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEN4C57TSHM6WTLN572SE23RUYI2TANCNFSM4NRPPX3A .
-- Emiliano Tisato Cloud Computing & API integration Specialist Google Partner & Analytics Guru Certified (+52) 044 56 1125 9499 emiliano@thormaweb.com
I tried the default Nova feature ->alwaysShow()
but the method does not exist with the nova-tinymce package.
As a work around, I use the Nova text field and return the content as html :
Text::make('Content', function () {})->onlyOnDetail()->asHtml()
Sorry, do you still have this issue? Can you tell witch nova version you are using?
@iMuMz Does this problem persist on your project? Did you manage to solve it?
@emilianotisato Yes I still have this issue but I will use the workaround until I update :
Text::make('Content', function () { return $this->content; })->onlyOnDetail()->asHtml()
Laravel : 6.16.0 Nova: 2.10.1
Hi,
Is it possible to show the content by default on the detail view of a resource?