修改Joomla后台管理,设置是否显示Subcategories

I think it's will be use full if we have parameter to config  Show/Hide  this
Text.


=====

#Open file config.xml for add new global parameter
at /administrator/components/com_content/

Add new field parameter before <field name="show_subcat_desc" at
line: 490

<field name="show_category_heading_title_text"
type="radio"
label="JGLOBAL_SHOW_CATEGORY_HEADING_TITLE_TEXT_LABEL"
description="JGLOBAL_SHOW_CATEGORY_HEADING_TITLE_TEXT_DESC"
default="1">

<option value="0">JHIDE</option>

<option value="1">JSHOW</option>

</field>


#Open file default.xml

at /components/com_content/views/category/tmpl/

Add new field parameter before <field name="show_subcat_desc" at
line: 89

<field name="show_category_heading_title"
type="list"
label="JGLOBAL_SHOW_CATEGORY_HEADING_TITLE_TEXT_LABEL"
description="JGLOBAL_SHOW_CATEGORY_HEADING_TITLE_TEXT_DESC">

<option value="">JGLOBAL_USE_GLOBAL</option>

<option value="0">JHIDE</option>

<option value="1">JSHOW</option>

</field>

#Open file default.php

Add new php get parameter check at line: 50 befor <h3> to under
</h3>

<?php if ($this->params->get('show_category_heading_title_text') ==
1) >

<h3>

<?php echo JTEXT::_('JGLOBAL_SUBCATEGORIES'); ?>

</h3>

<?php endif; ?>


#Open file en-GB.ini
at /administrator/language/en-GB

Add new line before line: 413
JGLOBAL_SHOW_CATEGORY_HEADING_TITLE_TEXT_LABEL="Show Subcategories
Text”"
JGLOBAL_SHOW_CATEGORY_HEADING_TITLE_TEXT_DESC="If Show, the
&quot;Subcategories&quot; will show as a subheading on the page. The
subheading is usually displayed inside the &quot;H3&quot; tag."

====end===

猜你喜欢

转载自leowzy.iteye.com/blog/1626460