Hello.
How i can redeclare {title}, {description}, {metadata} in my personal module?
How redeclare {title} from module
Re: How redeclare {title} from module
1. Use seotools2 or,
2. Assign each to a smarty var, then in the head section,
2. Assign each to a smarty var, then in the head section,
Code: Select all
{if !empty($mymodtitle)}{$mymodtitle}{else}{title}{/if}
Re: How redeclare {title} from module
You don't understand my question.
I want redeclare {title}, {description}, {metadata} without cheating in smarty. I want redeclare this variables in php code inside module.
I want redeclare {title}, {description}, {metadata} without cheating in smarty. I want redeclare this variables in php code inside module.
Re: How redeclare {title} from module
Example for Title http://docs.cmsmadesimple.org/tags/user ... page-title
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: How redeclare {title} from module
Thank you, but it's not what i need. Your example get title from content page. I need redeclare {title} from module without page content (like News, Products, CGBlog etc.).
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: How redeclare {title} from module
You cannot. You can't re-declare existing plugins.
Only thing you can do is come up with other plugins with different names that do the same task.
Only thing you can do is come up with other plugins with different names that do the same task.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: How redeclare {title} from module
Using Smarty templates creatively is not 'cheating'. It's what they're for so that developers do not have to overwrite/override the php in core functions, modules or plugins.
As Calguy said, if the standard plugins and/or Smarty vars don't give you what you want, write your own then call them in the templates using Smarty.
As Calguy said, if the standard plugins and/or Smarty vars don't give you what you want, write your own then call them in the templates using Smarty.
Re: How redeclare {title} from module
To psy, I already understand what calguy1000 said.
I just wanted to know how to override {title} from module. calguy1000 said, "You cannot". Ok. I understand.
I just wanted to know how to override {title} from module. calguy1000 said, "You cannot". Ok. I understand.