Is there a way to customize the Resource class name in the outputted documentation?

6 views
Skip to first unread message

andrea.s...@gmail.com

unread,
May 19, 2016, 9:48:11 AM5/19/16
to praxis-support
I have a resource named BusinessUnit, which models a building in which some guests are hosted.

The standard Praxis document generator create a menu on the left side of the window with as many resources as there are.

However, the name given to the resources is exactly the class name.

I've seen that I can customize the standard name with the display_name class method, that's rigth, but this statement is not reflected in the H1.page-header of the documentation.

Let's say that I set:

class V1::Resources::BusinessUnit
include Praxis::ResourceDefinition

# italian for BusinessUnit: BTW, is there a "Praxis way" to localize documentation and things like this?
display_name 'Strutture'
...
end

On the menu I correctly see "Strutture" as menu item, but if I clic on it, the header of the landing page is titled "BusinessUnit".
The header then returns correctly "Strutture" if I click on an action.

It's like the header value of the main resource page does not read the value from display_value...

Any ideas?

Thank you,
--
Andrea Salicetti

Josep Blanquer

unread,
May 20, 2016, 2:30:58 PM5/20/16
to andrea.s...@gmail.com, praxis-support
That is certainly a bug.

It's solved in this PR I've opened:

As soon as @gampleman approves it'll be merged to master.

Thank you Andrea for the feedback!

 Josep M.



--
You received this message because you are subscribed to the Google Groups "praxis-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to praxis-suppor...@googlegroups.com.
To post to this group, send email to praxis-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/praxis-support/06506ce9-ea55-42e8-8211-d0ffefc0241a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages