Serghei Posted February 1, 2021 Share Posted February 1, 2021 Hello! How to add "Custom Field" on add video/albums page, as site users can use it on website , on admin panel when i add a video there it is custom fields, but from website there is not.. thank you Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 2, 2021 Share Posted February 2, 2021 Hello, you can refer block template example to see how to use different fields. You can find template example for every block in Website UI -> Page blocks overview -> block ID. For video_edit block it has the following code as an example of using custom fields: <div class="row"> <label for="video_edit_custom1">Custom 1</label> <input id="video_edit_custom1" type="text" name="custom1" value="{{$smarty.post.custom1}}" {{if $change_forbidden==1}}disabled{{/if}}/> <span class="field-error"></span> </div> 1 Quote Link to comment Share on other sites More sharing options...
Serghei Posted February 2, 2021 Author Share Posted February 2, 2021 3 hours ago, Tech Support said: Hello, you can refer block template example to see how to use different fields. You can find template example for every block in Website UI -> Page blocks overview -> block ID. For video_edit block it has the following code as an example of using custom fields: Thanks, but how to enable costum fields in the option list on video_edit as you can't select them... please see the screen shoots. thank you Quote Link to comment Share on other sites More sharing options...
Serghei Posted February 2, 2021 Author Share Posted February 2, 2021 I find where to add the code ,but the input field iths looks simple box, it's possible to make it look same like other fields on the edit video page? thank you <div class="row"> <label for="video_edit_custom1">Custom 1</label> <input id="video_edit_custom1" type="text" name="custom1" value="{{$smarty.post.custom1}}" {{if $change_forbidden==1}}disabled{{/if}}/> <span class="field-error"></span> </div> Quote Link to comment Share on other sites More sharing options...
Serghei Posted February 2, 2021 Author Share Posted February 2, 2021 Hello again. I resolved that.. I va replaced: "type="text" with: "class="textfield" and it's works. thank you. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 2, 2021 Share Posted February 2, 2021 The checkboxes cannot be enabled in Website UI -> Page blocks overview because this page is not for applying any settings. It just displays documentation for the block. All options can be edited when you put block to any page in Website UI -> Pages. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.