Quantcast
Channel: Dynamic page titles in Symfony 1.4 - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by user9081752 for Dynamic page titles in Symfony 1.4

$i18n = $this->getContext()->getI18N();$this->getResponse()->setTitle('Your title' . ' | ' . $i18n->__('your module name'));

View Article



Answer by Populus for Dynamic page titles in Symfony 1.4

I personally like using the yml files, it separates 'configuration' from codeTo deal with dynamic titles I do the follow:in apps/frontend/config/app.ymlall: title_separator: ' - ' title_default:...

View Article

Answer by NiKo for Dynamic page titles in Symfony 1.4

You should use slots.In your layout <head> tag:<title><?php echo get_slot('page_title', __('Default page title here')) ?></title>And in an action template:<?php...

View Article

Answer by zergu for Dynamic page titles in Symfony 1.4

I think writing separate titles in every action is OK. But if you want to add some global prefix you can use something like this in layout:<title>SITE NAME —<?= $sf_response->getTitle()...

View Article

Dynamic page titles in Symfony 1.4

I'm wondering if anyone's got any good advice/experience regarding setting dynamic meta titles in Symfony?Currently, the solution I'm aware of would be to use the following code to set a title...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images