Custom HTML Block in an app

So,
I made a new app (new information coming soon).
The point is that I wish the app to have a calendar on its workspace.
So I added a Custom HTML Block with an ‘iframe’ directing to the calendar doctype’s calendar view (easy, right?).

Now I have two issues:

  1. Where is the HTML block kept, so I can place hard coded into the app?

  2. Can I increase the height of the card in the workspace to see more of the calendar in the workspace?

1 Like

@abrefael Currently, Frappe does not allow hardcoded storage of HTML blocks in custom apps for workspaces. You can only add custom HTML code directly.

If you’re referring to Custom HTML block in workspace, its a DocType itself that can be exported as fixture through hooks.py.

You can query the DB like this:

select * from tabCustom HTML Block;

1 Like

That’s a very good solution.
What about the second question?
Is there a way for the block to be higher?

should this hook be before install or after… :thinking:

Do you mean block mean higher is larger one? You can control the size of the iframe through your html itself. Frappe will have no control over it. Look into this for hooks. Once the hook is defined, you need to execute bench --site xxx export-fixtures to export the content defined in hooks.py

1 Like

I get it!
I tried height: 100vh, and it didn’t work.
I also tried changing the div height.
I didn’t try the basic: setting px height for the ifram itself…
:person_facepalming:t4: