This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 20 August 2017 04:15 EEST
 Hi Yannis,


I have this website that I'd like to add a custom field to. And by custom field I mean the new Joomla fields feature for articles.
Can you tell me how cn I add it to the minitek template?

I already have an overwrite up and running for the Masonry - Columns.

I really appreciate any help possible.


Thank you,
Paulo
Paulo
Joomla! Extensions - Professional Subscription
Sunday, 20 August 2017 15:50 EEST
Hi Paulo,

At the moment this is not possible. I will look into it for future versions.

If you want to investigate this more:
https://docs.joomla.org/J3.x:Adding_custom_fields/Implement_into_your_component#Public_helper_classes_and_API
https://joomla.digital-peak.com/images/blog/JDD16%20Custom%20fields%20in%20Joomla%20for%20developers.pdf

These 2 links will give you an idea on how to get started.

You can find more info at:
https://www.google.gr/search?q=joomla+custom+fields+api&oq=joomla+custom+fields+api&aqs=chrome..69i57j69i64.5728j0j7&sourceid=chrome&ie=UTF-8
Yannis
Support Team
Sunday, 20 August 2017 18:20 EEST
Hi Yannis,


Thank you for getting back to me on a weekend.
I have to be honest, I'm not seeing how to just call the value to any frontend module.. or say, an article.

Should I be able to just to something like this?

$input = JFactory::getApplication()->input;
$id = $input->getInt('id');
$article = JTable::getInstance('content');
$article->load($id);
$article_title = $article->get('title');
echo $article_title;

.... I know this is off topic to your support desk.


Regards
Paulo


Paulo
Joomla! Extensions - Professional Subscription
Tuesday, 22 August 2017 21:57 EEST
Unfortunately I am not familiar with the custom fields API at the moment. I will look into it for future versions.
Yannis
Support Team

This website uses cookies so that we can provide you with the best user experience. By clicking "continue" you agree to cookies being used in accordance with our Cookies Policy.

Search