-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SetTitle always append defaults #94
Comments
I don't know what exactly you are trying to achieve here. Do you want to disable/remove the default title on entire site or just for your controller/controller method? |
Yes, in a certain way, i want disable/remove the default title for my controller/controller method. |
As the docs says to set the default title to false if you do not want it, so the simple way of doing that is to override it in your controller. /** Display the specified resource. **/
public function show(Request $request){
config(['seotools.meta.defaults.title' => false]);
$this->seo()->setTitle("Your title");
return view('your.view');
} Update |
Problem solved, thank you! |
If I may make a suggestion - the way this is explain in the docs is not very clear. "default" usually means the value that's used when none is explicitly set. The fact that it's appended to a value unless explicitly disabled is a little strange. Great plugin though! |
Hi and thanks for the great work.
I don't know why but whenever i set new title in my controller, for example with
SEO::setTitle('test');
orSEO::setTitle('test',false);
the defaults value of title on seotools.php is appendend. That means the final title of the page will be 'test+defaults_title'. How can i override the value on seotools.php or disable the append of the default title?here is the seotools.php
`<?php
return [
'meta' => [
/*
* The default configurations to be used by the meta generator.
*/
];
`
The text was updated successfully, but these errors were encountered: