initbiz / seostorm-plugin

SEO Storm - ultimate SEO tool for OctoberCMS
MIT License
25 stars 14 forks source link

Values not showing for model #38

Closed adamo closed 2 years ago

adamo commented 2 years ago

Hi. I'm using your plugin in portfolio model. I've included the fields

public function registerStormedModels()
    {
        return [
            '\Depcore\Portfolio\Models\PortfolioItem' => [
                'placement' => 'tabs',
            ],
        ];
    }

The problem is that on the portfolio item page the page description and title is always the one from the main page, I've tried adding the dynamic properties as {{ model.seo_options.meta_description }} {{ PortfolioItem.seo_options.meta_description }} {{ portfolio_item.seo_options.meta_description }} and so on but still get an empty title and description

seo

Example for a different model Service with the same problem.

tomaszstrojny commented 2 years ago

Hi, thanks for using our plugin.

Are you sure you have the variables accessible on the page? Using Twig you have to be sure that these variables are available. It's acting the same way as you would use the variable in partial or page.

Regards,

Tomasz Strojny

adamo commented 2 years ago

Got it. Everything is ok now - thank you.

Banditman74 commented 2 years ago

Thank you!

bojko91 commented 2 years ago

Got it. Everything is ok now - thank you. @adamo How did you fix this? Have the same issue... when type in page the twig shows, but on SEO module is empty.

adamo commented 2 years ago

@bojko91 This is an example fot the blog post page image

bojko91 commented 2 years ago

@adamo Thanks, do you have problem with translation? Because when I try to translate fields everything stay in main language.