How to change the value of title tag in Banshee?
Ian
8 January 2015, 22:48
Hi Hugo,
I have tried reading all about Banshee PHP documentation, to understand how to set the xslt title tag. but I didn't find how to do so.
how can it be done?
Thanks.
Hiawatha version: 9.7
Operating System: ArchLinux
Hugo Leisink
8 January 2015, 22:49
What title tag are you talking about?
Ian
8 January 2015, 22:51
It's about the title of the banshee/views/banshee/page.xslt HTML page which is generated by index.php.
Hugo Leisink
8 January 2015, 22:53
You have to set it in the Page administration module. It is passed on to the view in controllers/banshee/page.php.
Ian
8 January 2015, 22:56
well, can you tell me how can I do it programatically?
Ian
8 January 2015, 23:10
can you give me an example how can I do it inside index.php?
I need some help.
Hugo Leisink
8 January 2015, 23:11
What is it you want to achieve?
Ian
8 January 2015, 23:21
I just want to know what a function can I use, and how to use it for setting tags' values such as the title.
Hugo Leisink
8 January 2015, 23:23
Don't change index.php. In a page controller, you can set $this->output->title to change the title. See other controllers for an example.
Ian
8 January 2015, 23:36
I just tested it, and it works now!
I was really doing a big mistake with index.php.
Thank you Hugo.
This topic has been closed.