Page 1 of 1

Ajuda _ Title Meta Descrition _ Resumo CGBlog

Posted: Mon Jul 30, 2018 8:40 pm
by diegofsti
Boa tarde.

Preciso muito desta ajuda.

To revirando os devs forums googles, mas não to conseguindo fazer o que eu preciso.

Talvez pelo titulo já fique auto explicativo.
Mas destrinchando:

No CGBlog, ao inserir um novo artigo se insere os campos.
Title -> Resume -> Content

A pretty URL, já está configurada. Só que eu preciso colocar o "Resume" dentro da description da tag meta

Code: Select all

<head>
<meta charset='UTF-8' />
<meta name='description' content='{CGBlog resume=resume|truncate:160:"...":true}' />
Eu já usei até o print_r:1 dentro dos modelos em "Design Manager", para tentar transferir em código puro,, e os "Extra Page Attribute 1-2-3" não aceitam os códigos smarty

Eu to brigando o mês inteiro atrás desta situação e não estou conseguindo resolver.

Desculpa o pedido de ajuda,, mas não estou mais sabendo o que fazer,, embora não tenha desistido,, sei que existe algum meio de fazer por isso o medido de ajuda,, para esclarecimentos..

Att Diego Fernandes.

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Posted: Mon Jul 30, 2018 8:46 pm
by Rolf
I wrote a tutorial about automated meta tags. This might help you!
https://cmscanbesimple.org/blog/base-cm ... d-metatags

Grtz Rolf

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Posted: Tue Jul 31, 2018 2:09 am
by diegofsti
So my friend.
That's exactly what I need, so much so that I had already seen this code.

I can not get the operation right.


It does not work in the "General Settings", "Page Specific Metadata" (within the content), nor in the "Core :: Page".

If I insert the code "{$page_description = $entry->summary|default:$entry->content|strip_tags:false|strip|truncate:300 scope=global}"

it works by inserting {$page_description} into the page content, but out of content it does not display anything.

Sorry for the lack of grammar, if any, it's because I use Google / Translate.

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Posted: Tue Jul 31, 2018 8:28 am
by Rolf
This part about the content block in the template is important! It is often forgotten

Code: Select all

{$content = "{content}" scope=global}
< html >
  < head >
  < /head >
  < body >
    ...
    {$content}
    ...
  < /body >
< /html >

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Posted: Sat Aug 04, 2018 2:42 am
by diegofsti
Dude, forgive me for the delay.
I did not forget you.
Thank you very much, I got the blog.
We really set aside the important things.
And worst of all, I had already struggled a lot with my blog because of it.

Now you're going to develop some modules.
I'm thinking of a boleto bancário and the theme AdminLte.

Thank you very much Mr. Rolf.

[Origin]
Cara, me perdoa pela demora.
Eu não te esqueci.
Muito obrigado, consegui arrumar o blog.
Nós realmente deixamos de lado as coisas importantes.
E o pior de tudo, eu já tinha lutado muito com o meu blog por causa disso.

Agora você vou desenvolver algunsmódulos.
Estou pensando em um boleto bancário e no tema AdminLte.

Muito obrigado Sr. Rolf.
[origin]