By Steve Mayes on Wednesday, 12 December 2018
Posted in General Issues
Replies 8
Likes 0
Views 519
Votes 0
Is it possible to have different Heading Description and Heading Title to every different category? Or some sort of workaround?

Thank you
Hey Steve,

Are you referring to the heading at the top above the toolbar, http://take.ms/nvImA ? It's not currently possible but with a slight template hack, it would be possible.

What you could do is to create a template override for the template file /components/com_easydiscuss/themes/wireframe/toolbar/default.php and replace the lines below with the id of a category that is being accessed,

[gist]
<h2 class="ed-head__title"><?php echo $headers->title;?></h2>
<div class="ed-head__desp"><?php echo $headers->desc;?></div>
[/gist]
·
Wednesday, 12 December 2018 23:06
·
0 Likes
·
0 Votes
·
0 Comments
·
HI,
I don't get it

"the id of a category that is being accessed"

Where do i need to put ID?
For example, my category ID is 151 and 166
·
Thursday, 13 December 2018 02:50
·
0 Likes
·
0 Votes
·
0 Comments
·
This is what i did so far

I put the default.php file inside

templates/mytemplate/html/com_easydiscuss/themes/wireframe/toolbar

I'm using zinc theme
·
Thursday, 13 December 2018 02:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Steve,

Kindly find my response for your inquiries below:
I don't get it
"the id of a category that is being accessed"
Where do i need to put ID?
For example, my category ID is 151 and 166

You need to get the category id that is accessed, you can do it by get it like shown below as example:
[gist type="php"]
$jinput = JFactory::getApplication()->input;
$catId = $jinput->get('category_id');
[/gist]
By here you can do the checking in the section as my colleague show you above http://take.ms/tVTGw

I put the default.php file inside
templates/mytemplate/html/com_easydiscuss/themes/wireframe/toolbar
I'm using zinc theme

Actually for the toolbar it will always fallback to use the default toolbar which is from wireframe theme.
If you want to make template override for this, you need to copy file from:
.../components/com_easydiscuss/themes/wireframe/toolbar/default.php
to
.../templates/yourtemplate/html/com_easydiscuss/toolbar/default.php
now you can do the customization in the file under the template folder.

The advantage you doing this, once you update easydiscuss your custom code will not overridden

Hope this help
·
Thursday, 13 December 2018 11:10
·
0 Likes
·
0 Votes
·
0 Comments
·
This is my code:


<h2 class="ed-head__title"><?php $jinput = JFactory::getApplication()->input;?>SOME TEXT</h2>
<div class="ed-head__desp"><?php $catId = $jinput->get('category_id');?></div>


Where do i need to put my category ID's? They are 151 and 166

Thank you
·
Thursday, 13 December 2018 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Steve,

You need to do the checking as example here: http://take.ms/dW8PM
·
Thursday, 13 December 2018 16:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post