Jump to content

Custom Field on add video/albums page


Serghei
 Share

Recommended Posts

  • Tech Support changed the title to Custom Field on add video/albums page

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>

 

  • Thanks 1
Link to comment
Share on other sites

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

Screenshot_2.jpg

Screenshot_1.jpg

Link to comment
Share on other sites

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>

Screenshot_3.jpg

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...