Back to ProBlog Support

paulgrafx
paulgrafx

The following needs adding to the 'tags', 'categories' and 'series' - 'columns.yaml' files.

models/tag/columns.yaml

# ===================================
#  Column Definitions
# ===================================

columns:
    name:
        label: radiantweb.problog::lang.backend.tag.columns.name
        searchable: true
    slug:
        label: radiantweb.problog::lang.backend.tag.columns.slug
        searchable: true

models/category/columns.yaml

# ===================================
#  Column Definitions
# ===================================

columns:
    name:
        label: radiantweb.problog::lang.backend.category.columns.name
        searchable: true
    slug:
        label: radiantweb.problog::lang.backend.category.columns.slug
        searchable: true

models/series/columns.yaml

# ===================================
#  Column Definitions
# ===================================

columns:
    name:
        label: radiantweb.problog::lang.backend.series.columns.name
        searchable: true
    slug:
        label: radiantweb.problog::lang.backend.series.columns.slug
        searchable: true

Last updated

paulgrafx
paulgrafx

I have managed to implement these fixes without changing the master ProBlog plugin. So for anybody else who needs a fix. Solution based on you already having a custom plugin created... so in the plugin.php file.

use Radiantweb\Problog\Controllers\Tags as BlogTagsController;
use Radiantweb\Problog\Controllers\Series as BlogSeriesController;
use Radiantweb\Problog\Controllers\Categories as BlogCategoriesController;
public function boot()
{
        BlogTagsController::extend(function($controller) {
            $controller->listConfig = $controller->mergeConfig($controller->listConfig, ['list' => '$/your/problogcustomplugin/tag/columns.yaml']);
        });

        BlogCategoriesController::extend(function($controller) {
            $controller->listConfig = $controller->mergeConfig($controller->listConfig, ['list' => '$/your/problogcustomplugin/category/columns.yaml']);
        });

        BlogSeriesController::extend(function($controller) {
            $controller->listConfig = $controller->mergeConfig($controller->listConfig, ['list' => '$/your/problogcustomplugin/series/columns.yaml']);
        });
}   

Use the original posts code in the relevant columns.yaml files above.

Also I can't take full credit, I had help from LukeTowers who pointed in me in the right direction.

Last updated

1-2 of 2