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

Predefined doesn't render value in element index #91

Closed
engram-design opened this issue Sep 6, 2019 · 3 comments
Closed

Predefined doesn't render value in element index #91

engram-design opened this issue Sep 6, 2019 · 3 comments
Labels

Comments

@engram-design
Copy link

I'm trying to use the predefined field to generate a date. Please note that I'm not using the Predefined Date field for simplicities sake.

I get the following when editing an element, which is correct:
Screen Shot 2019-09-06 at 10 18 21 am

But when trying to show that value on the element's index, I get nothing:
Screen Shot 2019-09-06 at 10 18 37 am

@engram-design
Copy link
Author

Ah - I now see that I need to re-save all elements again for this value to be set, so its a slightly different issue, but related to #89

@BenParizek
Copy link
Member

@engram-design Added to our list to review.

While handy in some cases this field can sometimes feel like a bit of a hack as well. I'd caution to use it sparingly as the more specific scenarios that it tries to solve the more it may just make sense to create a custom field type for the specific need.

@engram-design
Copy link
Author

For what its worth, we ended up switching back to Preparse. We also noticed that at times the field was outputting the actual twig code, I suppose when a parsing error or something occurred?

I think this sort of field type is a pretty valid use-case, as opposed to a custom field every time you want a calculated value in a field. Having said this, first time I've used this field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants