Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • diofou Friend
    #207523

    Hello,

    When you try to edit one of the articles in the event category you have a tab that stay event info (see 1.png) with some custom fields like speaker or sponsor and then when you go on a particular event page you see a right column with with those custom fields see (2.png). My question is how do i add other field and make them appear on the right side of the event page. Thank you very much.

    Also it seems that when i try to create a new article in the category event the event info tab does not come with the new article, i’m guessing i’m not doing something right. I know i cant simply copy the content that come with the quickstart but i want to know how to do it.

    Thank you


    1. 1
    2. 2
    Saguaros Moderator
    #574565

    Hi

    To add new fields article Event type, you will need to customise the com_content to achieve that.

    And if you want to add a new article for this Event type, please use the button ‘Add New‘ , not the default ‘New‘ button of Joomla: http://prntscr.com/7iblm7

    diofou Friend
    #574606

    Thank you Saguaros, if you don’t mind me asking, where do i permanently remove the numbers on top of the menu items, the previous forum tread about was not clear on where to find the css file to remove it from, i did it in asset but they came back for some reason.

    Thank you.

    Saguaros Moderator
    #574615

    ‘asset’ folder holds the optimized css/js files only, pls DON’T add your custom code there.

    You can create a new css file called custom.css in this directory: root/templates/ja_charity (your default template)/css/ and add your custom css code into this new file.

    diofou Friend
    #574622

    Hello,

    Now that i had time to look into com_content, i still don’t know how to achieve the initial question, you answer is not very detailed about it, custumise com_content ok but how? where? don’t know where to start, i was able to find the xml file for event so i can add the section in the admin area but how do i make it appaer when the event is opened?

    tks.

    Saguaros Moderator
    #574762

    For example, I try to add a new field called Director for event article.

    Try this way:
    – Go to file: /root/templates/ja_charity/contenttype/types/event.xml
    Add a new field:


    <field name="ctm_director"
    type="text"
    default=""
    label="PLG_JACONTENT_TYPE_DIRECTOR_LABEL"
    description="PLG_JACONTENT_TYPE_DIRECTOR_DESC"/>

    http://prntscr.com/7iq02h

    – Go to file: /root/templates/ja_charity/html/layouts/joomla/content/item/event.php
    Load the new added field in the right side of event by adding this snippet of code:


    <div class="t3-module module director">
    <div class="module-inner">
    <div class="module-ct">
    <strong><?php echo JText::_('Director: '); ?> <i><?php echo $item->params->get('ctm_director'); ?></i></strong>
    </div>
    </div>
    </div>

    http://prntscr.com/7iq088

    Saguaros Moderator
    #641106

    For example, I try to add a new field called Director for event article.

    Try this way:
    – Go to file: /root/templates/ja_charity/contenttype/types/event.xml
    Add a new field:


    <field name="ctm_director"
    type="text"
    default=""
    label="PLG_JACONTENT_TYPE_DIRECTOR_LABEL"
    description="PLG_JACONTENT_TYPE_DIRECTOR_DESC"/>

    http://prntscr.com/7iq02h

    – Go to file: /root/templates/ja_charity/html/layouts/joomla/content/item/event.php
    Load the new added field in the right side of event by adding this snippet of code:


    <div class="t3-module module director">
    <div class="module-inner">
    <div class="module-ct">
    <strong><?php echo JText::_('Director: '); ?> <i><?php echo $item->params->get('ctm_director'); ?></i></strong>
    </div>
    </div>
    </div>

    http://prntscr.com/7iq088

    Saguaros Moderator
    #739770

    For example, I try to add a new field called Director for event article.

    Try this way:
    – Go to file: /root/templates/ja_charity/contenttype/types/event.xml
    Add a new field:


    <field name="ctm_director"
    type="text"
    default=""
    label="PLG_JACONTENT_TYPE_DIRECTOR_LABEL"
    description="PLG_JACONTENT_TYPE_DIRECTOR_DESC"/>

    http://prntscr.com/7iq02h

    – Go to file: /root/templates/ja_charity/html/layouts/joomla/content/item/event.php
    Load the new added field in the right side of event by adding this snippet of code:


    <div class="t3-module module director">
    <div class="module-inner">
    <div class="module-ct">
    <strong><?php echo JText::_('Director: '); ?> <i><?php echo $item->params->get('ctm_director'); ?></i></strong>
    </div>
    </div>
    </div>

    http://prntscr.com/7iq088

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  Saguaros 9 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum