silverstripe / silverstripe-blog

Blog module for Silverstripe CMS
http://silverstripe.org/blog-module
BSD 2-Clause "Simplified" License
103 stars 169 forks source link

BlogModule Customization #501

Closed AnonymousWebHunter closed 6 years ago

AnonymousWebHunter commented 6 years ago

Hello,

I have created 2 Blog extensions ( News and Events, there is supposed to be one single difference between them: the filtering

Is there a way I can create separate filters for these two ? If not, how can I edit BlogFilter.php so I can achive this ? Where is the part of code where the update should come:

if ($stage == 'Live' || !Permission::check('VIEW_DRAFT_CONTENT')) {
           $query->addWhere(sprintf('"PublishDate" < \'%s\'', Convert::raw2sql(SS_Datetime::now())));

        }
dhensby commented 6 years ago

Hi, thanks for taking the time to post to our issue tracker.

The issue tracker is reserved for reporting bugs and we don't provide support via the issue tracker. There are great community support options where you can get help including Stack Overflow (remember to tag as silverstripe) and even IRC or Slack.

Sorry we can't be of more help and good luck resolving your problem!