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

Adding Pages to 4.3.1 #229

Open
Lee-ATSPM opened this issue Feb 15, 2024 · 2 comments
Open

Adding Pages to 4.3.1 #229

Lee-ATSPM opened this issue Feb 15, 2024 · 2 comments

Comments

@Lee-ATSPM
Copy link

I want to add a page to my system. Adding the entry using the Menu Configuration works perfectly but when i add my chtml document to what i think is the right location (views>home folder) is gives a 404 error. Is there another place i need to reference in the new document or another place it should be stored?

@dloweAvenueConsultants
Copy link
Collaborator

It depends on the controller and action you chose. Everything is name based. So, if your document is called doc1 and you put it in the home directory you need to add a function called doc1 to the home controller. Then in the menu you would add the controller of home and the action of doc1.

@Lee-ATSPM
Copy link
Author

I see. I think that's the part I am missing. How do i add a function to the home controller?

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

2 participants