andante
  1. Article::add_extension("FulltextSearchable('Content1,Content2')");
andante

MyObject::add_extension("FulltextSearchable('MySearchableField,MyOtherField')"); in _config.php

wmk

@kinglozzer how can one easily add db fields to FulltextSearchable?

misagh90

@wmk no i extend a page from blogpost and add HtmlText field to my extended Page and now i want that when i search in front end show in my results

  1. <?php
  2. class Article extends BlogPost{
  3. private static $db = array(
  4. 'Content1' => 'HTMLText',
  5. 'Content2' => 'HTMLText',
  6.  
  7. );
  8.  
  9. public function getCMSFields(){
  10. $fields = parent::getCMSFields();
  11. $fields->addFieldToTab('Root.Main', HtmlEditorField::create('Content1','First Content'));
  12. $fields->addFieldToTab('Root.Main', HtmlEditorField::create('Content2','Second Content'));
  13.  
  14. return $fields;
  15. }
  16. }
  17.  
  18. class Article_Controller extends BlogPost_Controller{
  19.  
  20. }
misagh90

@jack you can remove divided by 2 from GDBackend_WatermarkExtension.php on Case center if you want a full frame watermarking attention that you have upload a Square watermark Image

wmk

@misagh90 in other words: what do you want to acchieve?

wmk

@misagh90 do you need that other pages beside Blog and BlogPost, or do you just want to change some fields to HTMLText, or do you need new HTMLText fields?