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

How to use custom fields on a page? #1067

Open
sr13579 opened this issue Apr 4, 2024 · 4 comments
Open

How to use custom fields on a page? #1067

sr13579 opened this issue Apr 4, 2024 · 4 comments

Comments

@sr13579
Copy link

sr13579 commented Apr 4, 2024

After searching a long time I found no implementations of Custom fields. I can add them, but how to use them in front end?

@peter-mw
Copy link
Member

peter-mw commented Apr 4, 2024

They are only used inside modules and for searches, etc. for example products filtering.

There is currently no use for them in pages, only for post and products

Can you give example how you would like to use them ?

@sr13579
Copy link
Author

sr13579 commented Apr 4, 2024

They are only used inside modules and for searches, etc. for example products filtering.

There is currently no use for them in pages, only for post and products

Can you give example how you would like to use them ?

I want to make a custom field and use it like Processwire Does it.

@ajitbhandari
Copy link

@peter-mw do we have any way to show custom fields on post or product pages visually ?

@peter-mw
Copy link
Member

peter-mw commented May 3, 2024

@ajitbhandari yes

you can do with <module type="custom_fields" content-id="<?php print content_id() ?>" />

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

No branches or pull requests

3 participants