English 中文(简体)
Using Joomla 1.7 普通类职能
原标题:Using Joomla 1.7 generic categories functions

自2006年以来 1.6 我认为,在你自己创造的部件中使用类别是一种通用的方法。 违约的Joomla部分也使用了这一方法。 例如:联系、新闻和网络链接等组成部分都利用通用术语表功能实现分类内容。

目前,Im创建了一个也具有类别的内容,因此,我愿意利用通用的Joomla类功能来做到这一点。

www.un.org/Depts/DGACM/index_spanish.htm The status: present I ve got to the following:

  1. I ve got a submenu categories in my component which links to the generic categories component which some extra options. The options are there so the page will be redirected back to my component on save. This was pretty easy! But..

<<>My problem: 现在我要在我的类别中增加具体领域,我要说:主持人类别。

因此,我走到了计算法和以下档案管理员编组中。 . . . . . .

// Looking first in the component models/forms folder
$path = JPath::clean(JPATH_ADMINISTRATOR."/components/$component/models/forms/$name.xml");

因此,各构成部分(就我而言)在文件夹中研究:具体组成部分信息的管理者/合伙人/竞争者/模型/格式/类别。

现在,在违约类别中,按类别分类的xml中,有关于ed屏的信息,例如:

<field
    name="title"
    type="text"
    label="JGLOBAL_TITLE"
    description="JFIELD_TITLE_DESC"
    class="inputbox"
    size="40"
    required="true"/>

因此,显然需要这一类别的名称。

So I thought I add a line to this file:

<field
    name="moderator"
    type="text"
    label="JGLOBAL_MODERATOR"
    description="JFIELD_MODERATOR_DESC"
    class="inputbox"
    size="40"
    required="true"/>

Except that s not enough to add the input.. So I ve looked in the administrator/components/com_categories/views/category/edit.php template for hints, how to achieve this. But there s no code to add specific inputs for my component (or I m wrong ;))..

增加了一些领域,如:

<li><?php echo $this->form->getLabel( title ); ?>
<?php echo $this->form->getInput( title ); ?></li>

我也想到,我是否能够战胜ed。 php有点,但不幸的是,我发现它。

www.un.org/Depts/DGACM/index_spanish.htm 任何人都知道如何将通用领域添加到编辑网页上?

问题回答

你们可以通过使用假象来做到这一点(例如:/plugins/user/profile)。 但是,如果你想增加一个“理论主持人”,我认为你可以利用《欧洲常规武装力量》做到这一点。





相关问题
cross platform issues in webpages

I am developing some basic html pages, i am setting colors of text usimg color code #e7eddf it seems fine in windows but seems different in mac. Can you explain me why its happening and also ...

How to create breadcumb for custom component in Joomla?

I have a custom component in which I want to have a breadcumb to help the user navigate the previous page visits. The basic feature in my component is to show our product releases. The workflow is: ...

Preloading images

i ve a navigation bar like the one below..for each it changes the background color on mouseover and mouseout and there is a lag to load those images which looks awful :( i wanna know how to preload ...

Joomla conditional menu item

I d like to create a menu item in Joomla that points to one article when the user is logged out, and a different article when the user is logged in. I tried creating two menu items, and make them ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

How can you test if you re on the homepage in Joomla?

I m working on a Joomla site, and I need the front page to look slightly different from the rest of the pages, but not enough to warrant the use of two themes (it s a pain to have to update two ...

How to get the current Joomla username?

I m trying to get the current Joomla username. I was able to get it by using $user =& JFactory::getUser(); echo $user->username; But now I ve installed Joomla on my local server and it doesn ...

热门标签