Skip to main content

Joomla 5 & 6 compatible - built and supported by experts

Minor template tweaks

1.3K Views
0 Replies
2 min read
I would like to suggest you a couple template tweaks. They are pretty minor, but will make your components a bit more neat.

1. For example, you have a bunch of collapsible blocks with down chevron icon. This icon remains, even if block is collapsed, however it became a standard behavior, when collapsed block changes chevron to the left one.

<i class="icon-chevron-down"></i> - expanded
<i class="icon-chevron-right"></i> - collapsed

The only thing you need is change one class to another on click. That's all. Could easily do it myself, but don't wanna mess with core files or add extra event check in template.

2. When you edit a question or create a new one, there's always Ask Question button. When you edit question, you'd better have Save Question. Here's a code, which I added to form_content.php file:

<button type="button" class="btn btn-primary btn-submit-form">
<?php if ($this->question->id == 0) { ?>
<?php echo JText::_('LBL_ASK_QUESTION');?>
<?php } else { ?>
<?php echo JText::_('LBL_SAVE');?>
<?php } ?>
</button>


3. Please, add an option to hide Leaderboard link in menu. Not everybody needs it for sure.

More to come :-)

0 Replies

No Replies Yet

Topic Author

M

monkeyman

@monkeyman

Topic Stats

Created Friday, 28 March 2014 17:08
Last Updated Friday, 28 March 2014 17:08
Replies 0
Views 1.3K
Likes 0

Share This Topic