0
Welcome Guest! Login
0 items Join Now

SOLVED: In what file do I change Article List header titles?

  • SOLVED: In what file do I change Article List header titles?

    Posted 13 years 3 weeks ago
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: SOLVED: In what file do I change Article List header titles?

    Posted 13 years 3 weeks ago
    • Hi, which type of menu item are you using for this page? That will help you track down the right file, all of the content layouts are in the template folder -> html -> com_content. Where you go from there depends on the layout you are using, the file you are after is inside one of the folders in that directory. Let me know if you need more help.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: SOLVED: In what file do I change Article List header titles?

    Posted 13 years 3 weeks ago
    • Menu item = Articles >> Category List.

      I've looked through all the files in com_content and still can't find what I seek.
      Can you help further?
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: SOLVED: In what file do I change Article List header titles?

    Posted 13 years 3 weeks ago
    • Hi, this turned out to be a lot more complicated than I thought, but here is what you do. Find: Joomla root -> components -> com_content -> views -> category -> tmpl -> default_articles.php - Copy that file to your template -> html -> com_content -> category folder. This creates an override so you don't need to make changes to the core files, which you should never do. Open the file you copied to your template directory.

      In that file, around line 63, you'll see this:
      <th class="list-title" id="tableOrdering">
           <?php  echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder) ; ?>
           </th>
      Change JGLOBAL_TITLE to what ever text you wish to have in place of the title - be sure it has the single quotes around the text.

      To change the created date text, find this, line 69:
      <?php if ($date == "created") : ?>
                <?php echo JHtml::_('grid.sort', 'COM_CONTENT_'.$date.'_DATE', 'a.created', $listDirn, $listOrder); ?>
      Replace COM_CONTENT_'.$date.'_DATE with your text.

      Any other headings you might come across will be in this file also, the second parameter in the JHtml arguments is the text. Be aware that any changes you make here will affect all "List Layouts" on the site. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: SOLVED: In what file do I change Article List header titles?

    Posted 13 years 2 weeks ago
    • It does.
      Yoda says: Brilliant, you are.

      Thank you Cliff!
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: SOLVED: In what file do I change Article List header titles?

    Posted 13 years 2 weeks ago
    • Glad to help :D
    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.083 seconds