Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use twig templates? #57

Closed
bojko91 opened this issue Aug 31, 2022 · 1 comment
Closed

How to use twig templates? #57

bojko91 opened this issue Aug 31, 2022 · 1 comment

Comments

@bojko91
Copy link

bojko91 commented Aug 31, 2022

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
Copy link
Author

bojko91 commented Aug 31, 2022

Fixed..... 👍

@bojko91 bojko91 closed this as completed Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant