-
AuthorPosts
-
diofou Friend
diofou
- Join date:
- October 2013
- Posts:
- 53
- Downloads:
- 20
- Uploads:
- 15
- Thanks:
- 18
- Thanked:
- 2 times in 1 posts
June 17, 2015 at 7:22 pm #207523Hello,
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
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 18, 2015 at 7:37 am #574565Hi
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
1 user says Thank You to Saguaros for this useful post
diofou Frienddiofou
- Join date:
- October 2013
- Posts:
- 53
- Downloads:
- 20
- Uploads:
- 15
- Thanks:
- 18
- Thanked:
- 2 times in 1 posts
June 18, 2015 at 9:41 am #574606Thank 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 18, 2015 at 10:35 am #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.
1 user says Thank You to Saguaros for this useful post
diofou Frienddiofou
- Join date:
- October 2013
- Posts:
- 53
- Downloads:
- 20
- Uploads:
- 15
- Thanks:
- 18
- Thanked:
- 2 times in 1 posts
June 18, 2015 at 12:11 pm #574622Hello,
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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 19, 2015 at 7:38 am #574762For 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/7iq0881 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 19, 2015 at 7:38 am #641106For 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/7iq0881 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 19, 2015 at 7:38 am #739770For 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/7iq0881 user says Thank You to Saguaros for this useful post
-
AuthorPosts
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, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum