Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`{multi_field}` not working with "new" fields #140

Closed
jmathias opened this Issue Feb 28, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@jmathias
Copy link
Contributor

jmathias commented Feb 28, 2019

Description of the problem
{multi_field} is not working with fields created after the DB schema change. Fields created prior to the schema change (legacy fields) output as expected. Any field created after the schema changes is not output as expected.

How To Reproduce
Note: You'll need an upgraded install, that has existing legacy fields.

  1. Create 1 or more new fields
  2. Create a template that uses {multi_field} to output paginated page spanning entries.
{exp:channel:entries channel='CHANNEL_NAME' paginate_type='field'}
	<h1>{title}</h1>
	{multi_field="legacy_field_1|legacy_field_2|new_field_1|new_field_2|new_field_3"}
	<p>Last updated on {edit_date format='%M %d, %Y'}</p>

	{paginate}
		Page {current_page} of {total_pages} pages for this article<br>
		{pagination_links}
	{/paginate}
{/exp:channel:entries}
  1. View template in browser
  2. Make note of new_fields_[n] not showing, and pagination not increasing.

Error Messages
No error messages occur, it just results in a blank area where the content should show.

screen shot 2019-02-28 at 1 56 04 pm

Content should appear between the title and the last updated line.

Environment Details:

  • Version: 5.1.3
  • PHP Version 7.2.1
  • MySQL Version 5.6.38
  • OS: MacOS
  • Web Server: Apache via MAMP

Possible Solution
No suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.