I am wondering how do I go about changing the title tag to match my custom widgets?
Custom Page titles from widgets in CMS
Collapse
X
-
-
Can you let us see your site so that we can see better what you're referring to? -
As you can see from the links below, each page has it's own content. I use a custom widget to display the content. I would like the <title> tag to match the content.
Thanks in advance
Comment
-
What have you got in the vbcms_page template for your <title> tags?Comment
-
I have not made any change to it. I was wondering if I can do something like
$vboptions['cmstitle'] = "New Page Name";
My widget content is displayed from a custom php page. I would like to be able to redefine $vboptions['cmstitle'] in my php page.
Will this or some other derivative work?Comment
-
I am using php_direct_execution, I have also created my own templates for these
Can I place some code like
Code:<title><vb:if condition="$vboptions['cmstitle']">{vb:raw vboptions.cmstitle}<vb:else />{vb:raw vboptions.bbtitle}</vb:if> - {vb:raw html_title}</title>
Comment
-
Given that it uses that on the direct evaluation page as it is (by default they use the vbcms_page template which uses the code you've posted above), you should be OK to use that in your own.Comment
-
Related Topics
Collapse
-
by CCCWA
- vBulletin Version 5.0.5
- PHP Version 5.3.28
Since our recent update to vb5, I can no longer update any of my users custom titles. As the forum is for a Club we use the titles for Committee...-
Channel: Support Issues & Questions
Mon 21 Apr '14, 5:48pm
Comment