jDownloadsownloads.com



Author Topic: Remove the word "Category:" from the {subheader_title}  (Read 4423 times)

0 Members and 1 Guest are viewing this topic.

Offline travel_gurl

  • Newbie
  • *
  • Posts: 6
I noticed that the tag: {subheader_title} shows:

Category: My_Category_Title

Where can I remove the "Category:" part and just show My_Category_Title. 

I'm happy to edit a PHP file but I could not find which one.

Thanks in advance!

Offline Arno

  • Administrator
  • ***
  • Posts: 12.178
    • jDownloads.com
Re: Remove the word "Category:" from the {subheader_title}
« Reply #1 on: 25.07.2012 11:21:53 »
Hi.
Please try it in the jD layout manager.
« Last Edit: 25.07.2012 11:23:18 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline travel_gurl

  • Newbie
  • *
  • Posts: 6
Re: Remove the word "Category:" from the {subheader_title}
« Reply #2 on: 27.07.2012 16:50:13 »
thanks for your response.  I have customized it in the Layouts section.  The issue is that "Category:" seems to be hard coded as part of the {subheader_title} variable.  See screenshot.

This code:

<a href="/~martur5/index.php/en/press/viewcategory/3-press">Press : {subheader_title}</a>

is displaying as:

<a href="/~martur5/index.php/en/press/viewcategory/3-press">Press : Category: My Category</a>

instead of:

<a href="/~martur5/index.php/en/press/viewcategory/3-press">Press : My Category</a>

I would like the header to display as the latter without "Category:" as part of the {subheader_title}.

Can you help?

Offline travel_gurl

  • Newbie
  • *
  • Posts: 6
Resolved.

In case folks had the same issue, I found where to modify this in the jdownloads.php file.

Search for:  "COM_JDOWNLOADS_FRONTEND_SUBTITLE_OVER_ONE_CAT" and modify the variable: $subheader around line 1779 and 1785.

Offline moonswolf

  • Newbie
  • *
  • Posts: 28
Re: Remove the word "Category:" from the {subheader_title}
« Reply #4 on: 26.05.2014 10:39:53 »
Hi, thankyou for your suggest: could you tell me how should i edit the variable? And what of the variable with the name $subheader ?

Thankyou :)