0
Welcome Guest! Login
0 items Join Now

Making branding.php dynamic

  • Making branding.php dynamic

    Posted 10 years 2 months ago
    • templates\gantry_template\features\branding.php
      How can I change the following line so that it will read $sitename and $live_site variables from configuration.php?
      Line 22
      <a href="http://www.rockettheme.com/" title="RocketTheme" class="rt-powered-by"></a>
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Making branding.php dynamic

    Posted 10 years 2 months ago
    • 1. you shouldn't change any of our original template files as updates will overwrite them again. Instead you should be creating your own custom HTML module assigned to that position and putting your code in that. To write php code in a customhtml module use something like "sourcerer" from "NoNumber". The php required to access the site name is:
      $config = JFactory::getConfig();
      echo 'Site name is ' . $config->get( 'sitename' );

      You should be able to use the above to figure out how to achieve what you asked.

      Regards, Mark.
    • The following users have thanked you: Seniha Meliha

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.102 seconds