Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm using Contao CMS 3.5.x, I have successfully added an "enclosure" on the backend (DCA). Now I need my frontend user (member) to upload a doc from the frontend (and save it in the same db field). How can I do this from a frontend point of view?
Thanks
You could create a form via the form generator that writes into your desired table. However, Contao only stores the relative file path of uploaded files into the database - but you probably want an UUID there.
You can use fritzmg/contao-store-uuid to automatically store the UUID for file fields.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to know the way to use my multiple homepage design in Laravel. And User can switch homepage design from site settings like wordpress. Can anyone help me to find the way to make laravel website with multiple home page system?
The question is quite general so I'll share my personal approach:
I create several template folders in my view directory with the same blade file structure inside.
Then from the Controller, I just change the call to the view according to the requested template:
return view($template_name . '.index');
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Normal, I usually define like this to create multiple languages for my site.
Like this:
en-en.php
define("HOMEPAGE", "Home Page");
vi-vi.php
define("HOMEPAGE", "Trang chủ");
Current, I load this menu from my database.
Has anything to create multiple language sites when load data from the database?
Thank you very much.
I would use Google's website translator
It's a simple plugin that allows you to convert any page to 100+ different languages live.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Background
I'm creating a website where the user can store an article as a file in the database and than upload the file's content into a page in the website using a form. The file may only contain text or image or both.
Question
Can anyone walk me through this?
I would suggest you to create a database table having fields having the userId, and path of the file.
The file uploaded should be saved in the Web Server, and its path need to be saved in the database.
The vice-versa should be done while retrieving the file content.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can anyone tell me how to Dynamically generate a new php file? Like generate it and then set it's code. Say that there was a user who created an account. When he created that account I would like it to generate his profile page.
Thanks!
You can do this using file_put_contents, but it's bad practice. It's much easier/better to just have one PHP file, profile.php for example, which takes a GET parameter for the user ID, then dynamically displays the correct information based on the user ID.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm new to moodle. I need your suggestions to create plugin which will add a custom field on Add/edit courses page and will also store the input value in mdl_course table.
As of now Moodle does not allow you to add custom fields to a course from the web interface.
However there is a patch available for v1.9 in the Moodle Tracker(MDL-18319).
Please be aware that the patch is for Moodle-1.9 and applying it directly may corrupt your source code if you are using Moodle version > 1.9