-
AuthorPosts
-
May 13, 2016 at 7:44 am #930250
I have a problem with adding new extra fields for articles in my portfolio. I don’t need the fields like: "Type", "Version", "Modified date". I want to post the following fields (in Polish): "Autor", "Tytuł", "Przekład", "Opracowanie", "Ilustracje", "ISBN", "Rok wydania", "Oprawa", "Format", "Liczba stron". I remade all the possibilities described on: https://www.joomlart.com/documentation/joomla-templates/ja-jason-template/configuring-ja-jason-template#article-extrafield – but I get only some of new fields in my back-end, not in the front-page. I also did new extra fields file .xml according to the instruction from: http://www.t3-framework.org/documentation/extend-com-content#add-extra-fields – but it doesn’t work too. The template can’t see this file. Could you help me?
May 13, 2016 at 11:10 am #930347Hello, is anybody there?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 16, 2016 at 4:30 am #930942Hi
You can update the Admin & FTP account of your site so I will have a look.
Also tell me the article you’re trying to add extra fields.
May 16, 2016 at 7:08 am #930973Hello,
example of article: http://oficyna21.pl/index.php/ksiazki/proza/3-chrystus-wyladowal-w-grodnie
But I’m afraid I don’t understand your response. What should I do? Do you want to look in my ftp? Is that necessary? No other way? Maybe you could just steer me?May 17, 2016 at 7:21 am #931446Hello,
can you answer me?May 18, 2016 at 9:25 am #931918I really need your support…
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 18, 2016 at 9:41 am #931927@oficyna21: You can give me the admin login backend of your site and set as private reply. I will help you to check the configuration directly on your site.
May 18, 2016 at 9:46 am #931930This reply has been marked as private.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 19, 2016 at 3:28 pm #932354In this case, you have to change the extra field from templates/ja_jason/etc/extrafields/portfolio.xml and set the configuration under category as my screenshot.
May 20, 2016 at 7:39 am #932558I did it but it does not work. I can get only some of new fields in my back-end, not in the front-page. I wrote about this 7 days ago. Please read my previous entries.
May 20, 2016 at 7:44 am #932562What should I change in this data:
<field
name="jcontent_author"
type="text"
label="TPL_CONTENT_AUTHOR_LABEL"
description="TPL_CONTENT_AUTHOR_DESC"
/>
to receive the fields that I want to get?Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 20, 2016 at 10:05 am #932620After changing that code above from portfolio.xml file, you need to customize both files below
- Open templates/ja_jason/templateHelper.php file
if($data instanceof JRegistry) { return array( 'jcontent_type' =>$data->get('jcontent_type', ''), 'jcontent_updateon' =>$data->get('jcontent_updateon', ''), 'jcontent_version' =>$data->get('jcontent_version', ''), 'jcontent_author' =>$data->get('jcontent_author', ''), 'jcontent_carousel' =>$data->get('jcontent_carousel', '') ); } return array ( 'jcontent_type' => '', 'jcontent_updateon' => '', 'jcontent_version' =>'', 'jcontent_author' =>'', 'jcontent_carousel' =>'' );
- Open templates/ja_jason/html/com_content/article/porfolio.php file
<?php if($extrafieldsexist || $params->get('show_category')): ?> <ul class="extrafield-list"> <?php if($extrafieldsexist): ?> <?php if($extrafields['jcontent_type']) : ?> <li class="info"> <span><?php echo JText::_('TPL_CONTENT_TYPE_LABEL'); ?></span> <?php echo $extrafields['jcontent_type'] ?> </li> <?php endif; ?> <?php if($extrafields['jcontent_updateon']) : ?> <li class="info"> <span><?php echo JText::_('TPL_CONTENT_UPDATEON_LABEL'); ?></span> <?php echo $extrafields['jcontent_updateon'] ?> </li> <?php endif; ?> <?php if($extrafields['jcontent_version']) : ?> <li class="info"> <span><?php echo JText::_('TPL_CONTENT_VERSION_LABEL'); ?></span> <?php echo $extrafields['jcontent_version'] ?> </li> <?php endif; ?> <?php if($extrafields['jcontent_author']) : ?> <li class="info"> <span><?php echo JText::_('TPL_CONTENT_AUTHOR_LABEL'); ?></span> <?php echo $extrafields['jcontent_author'] ?> </li> <?php endif; ?> <?php endif; ?>
May 21, 2016 at 11:26 am #932972Ok, I’ll try.
AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 12 replies, has 3 voices, and was last updated by oficyna21 8 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Problem with extra fields for articles
Viewing 13 posts - 1 through 13 (of 13 total)