Jump to content

Click here to lend your support to: Traq and make a donation at pledgie.com !

How can I change Traq title to 'Project Tracker' from 'Traq'

  • Please log in to reply
2 replies to this topic

#1 shazbell



  • Members
  • PipPip
  • 11 posts

Posted 09 May 2014 - 07:52 PM

I am trying to change the page header from 'Traq' to 'Project Tracker'. Following is the line from default.phtml, which I believe is the html page that renders the home page, project home page..


<h1><?php echo (isset($project)) ? HTML::link($project->name, $project->slug) : HTML::link(settings('title'), null); ?></h1>


I am not sure about the location of the settings file to change the 'title'. Anyone have any ideas?

Also, I see strings such as  HTML::link, View::render... any pointers as to how the links, pages are rendered using these functions? I am interested in knowing the files and/or functions that are invoked as a result of this command.







#2 Jack


    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 10 May 2014 - 12:38 AM

The title can be changed from the AdminCP -> Settings page.


The "HTML::link()" method is a helper to quickly create links, for example:


echo HTML::link('Delete', '/tickets/1/delete', array(
  'data-confirm' => "Are you sure you want to delete this ticket?",
  'class' => 'btn btn-danger'

// Will output:
// <a href="/tickets/1/delete" data-confirm="Are you sure you want to delete this ticket?" class="btn btn-danger">Delete</a>

The "View::render()" method is used to render views/templates into the current view/template. You pass the path (within the "views" directory) of the view and an array of variables accessible only to that view.

<?php View::render('tickets/show', array('ticket' => Ticket::find(1)); ?>

#3 shazbell



  • Members
  • PipPip
  • 11 posts

Posted 12 May 2014 - 04:51 PM

Thank you so much Jack! This helps a lot! 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users