changing the title

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
trick

changing the title

Post by trick »

I'm working on a module and using moduleinterface.php, and it's pulling a template from the page that it comes from I guess, but I have a problem because the template that I use uses {title}, which is great on my normal pages, but on this page it's no good, and just gives me nothing. Is it possible for me to change the value of {title}?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: changing the title

Post by Ted »

Unfortunately, it really can't be done.  The problem is that {title} is not actually handled by smarty, it's parsed before hand.  I need to change how that works, now that I understand smarty a little more.

Trying to think of a quick workaround, and am turning up blank.  Lemme think about it.
trick

Re: changing the title

Post by trick »

Well, I could probaby make my own temporary workaround, just use a regexp on the output buffer, but it wouldn't be the *right* way to do it, and it wouldn't be portable or anything. I'll probably wait till you implement it properly.
Locked

Return to “Modules/Add-Ons”