initbiz / seostorm-plugin

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

How to use twig templates? #57

Closed bojko91 closed 1 year ago

bojko91 commented 1 year ago

Hello,

I've add a custom model to one of plugins that we use on our site.

public function registerStormedModels() { return [ 'Fytinnovations\Careers\Models\Job' => [ 'placement' => 'tabs', ], ]; }

Everything is ok on backend, but cant figure out how to extract (show) the thing that I wrote inside meta TAB (page title and description) like Dynamic meta tags ... Tryed with {{this.page.meta_title}} and {{seoModel.meta_title}}, {{job.seo_options.meta_title}} but nothing show....

|Eddit: When I put {{job.seo_options.meta_title}} directly in page

{% set job = jobDetails.job %}

<section class="single-page-header" style="background-image: url('{{ 'assets/images/about/rabotodateli.png'|theme }}') !important;">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h1>{{ this.page.title }}</h1>

            </div>
        </div>
    </div>
</section>

<section class="services" id="services">
    <div class="container">
        {{job.seo_options.meta_title}}
        <p>{% component 'jobDetails' %}</p>

    </div> <!-- End container -->
</section> <!-- End section -->

it's show exactly what I type inside META TAB But when put in Seo Storm it's blank

image

Could you help me?

bojko91 commented 1 year ago

Fixed..... 👍