hello guys, I created a personalized menu where I would like to click on one of the buttons to display a New Post frame, I tried to get the method specified in the "New Post" block but it doesn't work, can you give me a way to make it work?
This function only opens the details if I leave the Post block as visible. The Post block is not visible or active on the page, I would like to click on the button and he would open the post block. imagine a blank page with a "create new post" button and when you click it, the "Create Post" block appears
Ok, in css I can hide the block, so I thought of creating a function in JS so that when I click on the button it changes the CSS property and the block appears, but I don't know where to put the JS code, I'm using Lucid, you know me tell where I put my JS?
Hello Renato !
Do you mean the function like return oBxDolCreatePost.getForm('bx_posts', 'posts', this)?
R
This function only opens the details if I leave the Post block as visible. The Post block is not visible or active on the page, I would like to click on the button and he would open the post block. imagine a blank page with a "create new post" button and when you click it, the "Create Post" block appears
You may place the block with this form and then hide it via CSS, then your function will just make it visible. I guess it is easier.
R
Ok, in css I can hide the block, so I thought of creating a function in JS so that when I click on the button it changes the CSS property and the block appears, but I don't know where to put the JS code, I'm using Lucid, you know me tell where I put my JS?
You may place it to:
1) Studio->Designer->Injections->Head section ("global" mode)
2) Place your code into RAW block in the Studio->Pages App, the necessary Module and page area.