Beispiel #1
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendItemForm(Form $form)
 {
     $form->addFields(['master_object_id' => ['label' => 'Page', 'comment' => 'Select the page you wish to link to.', 'type' => 'dropdown', 'options' => DropDownHelper::instance()->pages(), 'tab' => 'Item'], 'data[params]' => ['label' => 'Slug Parameters', 'comment' => 'If a slug uses a parameter such as :slug, enter a value for it here. Enter valid JSON - for example {"slug":"my-page-slug"}', 'type' => 'text', 'options' => DropDownHelper::instance()->pages(), 'tab' => 'Item']], 'primary');
 }
Beispiel #2
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendSettingsForm(Form $form)
 {
     $form->addFields(['blog_post_page' => ['tab' => 'Blog', 'label' => 'Blog Post Page', 'comment' => 'Select the page your blog posts are displayed on', 'type' => 'dropdown', 'options' => DropDownHelper::instance()->pages()]], 'primary');
 }
Beispiel #3
0
 /**
  * Add fields to the MenuItem form
  *
  * @param  Form   $form
  *
  * @return void
  */
 public function extendItemForm(Form $form)
 {
     $form->addFields(['master_object_id' => ['label' => 'Partial', 'comment' => 'Select the partial you wish to render.', 'type' => 'dropdown', 'options' => DropDownHelper::instance()->partials()]], 'primary');
 }