When an article have custom fields and Read More buttom, at Blog Layout those custom fields appear unexpectedly. I did not really expect this, I thought the fields would only appear when full article is shown.
http://migre.me/ww5jI
Article Custom Fields and Readmore
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Apprentice
- Posts: 32
- Joined: Mon Nov 05, 2012 12:47 pm
- ranwilli
- Joomla! Master
- Posts: 19203
- Joined: Sun Feb 19, 2006 6:47 pm
- Location: Toledo, OH
- Contact:
Re: Article Custom Fields and Readmore
Just make sure you place the fields AFTER the readmore page break...
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com
Stay ON the update path.
https://harpervance.com
-
- Joomla! Apprentice
- Posts: 32
- Joined: Mon Nov 05, 2012 12:47 pm
Re: Article Custom Fields and Readmore
Got it!ranwilli wrote:Just make sure you place the fields AFTER the readmore page break...
I'm not using the Article Editor to insert Custom Fields, i'm using the field option Automatic Display. When i disable the Automatic Display and insert the Custom Fields by Article Editor, that situation not occurs.
For me the Automatic Display is the best choice cause i have some articles that need a lot of Custom Fields and put one-by-one (about 45 items) with article editor is a pain.
-
- Joomla! Apprentice
- Posts: 32
- Joined: Mon Nov 05, 2012 12:47 pm
Re: Article Custom Fields and Readmore
I learn with my tests, on article editor, when we click at Field Button and list of fields are shown, we can click on Field Group and it makes all Fields of this Field Group to appear at article. This can solve my problem, but Automatic Display would be the best choice.
- tvoeten
- Joomla! Enthusiast
- Posts: 179
- Joined: Thu Aug 18, 2005 8:38 am
- Location: Eindhoven, Netherlands
Re: Article Custom Fields and Readmore
Same problem for me. I suggest a core enhancement placing fields in body article instead in intro text under "Read more" buttonAustre wrote: ↑Thu Apr 27, 2017 8:10 pm
I'm not using the Article Editor to insert Custom Fields, i'm using the field option Automatic Display. When i disable the Automatic Display and insert the Custom Fields by Article Editor, that situation not occurs.
For me the Automatic Display is the best choice cause i have some articles that need a lot of Custom Fields and put one-by-one (about 45 items) with article editor is a pain.
- DaveOzric
- Joomla! Ace
- Posts: 1591
- Joined: Sat May 22, 2010 10:29 pm
- Contact:
Re: Article Custom Fields and Readmore
Hello, I found a need to use these for my blog layout and only want the field to show on the blog page but not on the article page.
Is there any way to accomplish this? I was hoping to avoid the intro text method and just set it to show up. Perhaps this is not even an option with an override.
Any ideas?
Is there any way to accomplish this? I was hoping to avoid the intro text method and just set it to show up. Perhaps this is not even an option with an override.
Any ideas?
-
- Joomla! Hero
- Posts: 2906
- Joined: Fri Jul 05, 2013 10:35 am
- Location: Parts Unknown
Re: Article Custom Fields and Readmore
Disable automatic display. Create components/com_content/views/category/tmpl/blog_item.php override. Add this to the override:
Code: Select all
JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');
echo FieldsHelper::render('com_content.article', 'fields.render', array('context' => 'com_content.article', 'item' => $this->item));