Ajuda _ Title Meta Descrition _ Resumo CGBlog

Community support in all Portuguese variants (pt_PT and pt_BR).

Moderator: Jo Morg

Locked
diegofsti
Forum Members
Forum Members
Posts: 31
Joined: Mon Feb 19, 2018 9:13 pm

Ajuda _ Title Meta Descrition _ Resumo CGBlog

Post 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.
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Post by Rolf »

I wrote a tutorial about automated meta tags. This might help you!
https://cmscanbesimple.org/blog/base-cm ... d-metatags

Grtz Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
diegofsti
Forum Members
Forum Members
Posts: 31
Joined: Mon Feb 19, 2018 9:13 pm

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Post 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.
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Post 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 >
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
diegofsti
Forum Members
Forum Members
Posts: 31
Joined: Mon Feb 19, 2018 9:13 pm

Re: Ajuda _ Title Meta Descrition _ Resumo CGBlog

Post 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]
Locked

Return to “Portuguese - Português”