ekino-wordpress-symfony icon indicating copy to clipboard operation
ekino-wordpress-symfony copied to clipboard

Page titles

Open christiancannata opened this issue 8 years ago • 1 comments

Hi, How can I manage dynamic titles with ekino?

This is my base template symfony:

{{ wp_get_header() }}

{% block body %}{% endblock %}

{% block javascripts %}{% endblock %} {{ wp_get_footer() }}

this is my header.php wordpress and I would passa title variable from controller -> twig template -> wordpress header

`<?php $securityContext=\symfony('security.token_storage'); $user = $securityContext->getToken()->getUser(); $userLogged=symfony('security.authorization_checker')->isGranted('IS_AUTHENTICATED_FULLY'); $isAdmin=symfony('security.authorization_checker')->isGranted('ROLE_ADMIN'); $twig=symfony("templating");

?> >

<title variable from controller> `

christiancannata avatar Feb 04 '17 18:02 christiancannata

I have the same issue I always have 'Page not found' as Title. Is there any way to set the title page of custom page from symfony routes ?

daifma avatar Apr 17 '17 16:04 daifma