Topic: Add functions?
Is it possible to implement 2 new functions?
- website name
- website slogan
It could be interesting to add these possibilities when there's a new Wolf install...
http://wolfcms.office-web.net/
You are not logged in. Please login or register.
Is it possible to implement 2 new functions?
- website name
- website slogan
It could be interesting to add these possibilities when there's a new Wolf install...
Why use functions for this? Why not just use a snippet, page part (on the Home Page) or even just put them in the Layout?
Since these are items that would not change (or not much?) once a site is built, my sense too is that they don't need a "function".
But having said that, at least you could use the "Admin site title" field in Administration > Settings for this ... if you wanted to! IF the {title in your admin} == {title of your site}, then
<?php echo Setting::get('admin_title'); ?>can be used to put it anywhere you want in the frontend, too.
FWIW!
Why use functions for this? Why not just use a snippet, page part (on the Home Page) or even just put them in the Layout?
For new users it could be interesting to add this in layouts/templates (automated copyrights...). So, peoples who made new templates can add these variables...
Since these are items that would not change (or not much?) once a site is built, my sense too is that they don't need a "function".
But having said that, at least you could use the "Admin site title" field in Administration > Settings for this ... if you wanted to! IF the {title in your admin} == {title of your site}, then
<?php echo Setting::get('admin_title'); ?>can be used to put it anywhere you want in the frontend, too.
FWIW!
I'll test that!
<?php echo Setting::get('admin_title'); ?>works well...
Is there something like that for the administrator email?
Found...
<?php echo Setting::get('admin_email'); ?>Last edited by oweb (2010-03-01 14:35)
Posts [ 5 ]