ekino / ekino-wordpress-symfony

43 stars 13 forks source link

Page titles #18

Open christiancannata opened 7 years ago

christiancannata commented 7 years ago

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");

?><!DOCTYPE html> <html <?php language_attributes(); ?> >

<title variable from controller> `
daifma commented 7 years ago

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 ?