Topic: All tags that can be used in new theme

Hi,
I have a problem and ask to You.
- How I can display my current's page title ?  ( I only found solution for displaying slug <?php echo Page::slug(); ?> ). I want user to see the name of current page in < h1 > in this case I need the code for the titile...
- Does anyone have all the functionality (api) for themes of such codes that can be used ?

Thanks

Re: All tags that can be used in new theme

@drakan88

Of course!

Outputs site title (page).

<?php echo Site::title(); ?>

if you want with <h1></h1> use like this:

<h1><?php echo Site::title(); ?></h1>

.

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: All tags that can be used in new theme

Thank You, I was thinking of using this code, but I thought it displays the main title of website that is defined inside dashboard main settings.
Once, I've noticed that someone put here on forum the whole code list... I think it was added to some template tutorial, but I can't find it anymore. Does anyone still have it?

4 (edited by drakan88 2015-02-06 10:42:05)

Re: All tags that can be used in new theme

- tell me please, what for is used this code ( <?php Action::run('theme_pre_content'); ?> ). I've noticed that everything works without it as with it.

Re: All tags that can be used in new theme

@drakan88

Sometimes i use that code <?php Action::run('theme_pre_content'); ?> but many times i dont use it. Monstra works at the same!

The tuturial i have for you in video i hope that helps:

https://www.youtube.com/watch?v=xBGOF96uqkU

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: All tags that can be used in new theme

Thank You, You're true friend.

Re: All tags that can be used in new theme

@drakan88

Glad to help you mate, if you can give a thank you on my reputation if you are happy with my help wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website