To preview html design template inside laravel framework [closed] - php

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 last year.
Improve this question
I am creating a website that will contain free web design templates for downloading will be most likely same https://htmlcodex.com, the idea is to upload the full template .zip through the admin panel and then extract it in the laravel project public folder to be previewed as live demo for the template, but i do not know how to access the whole assets that will be inside the template and it should not be written with asset('css/style.css'), please help if you had done some project similar.
I already can display pages, but can not access the assets.

I have solved it, by putting all templates folder in the laravel public path directly.

Related

Laravel Website multiple homepage. User can change [closed]

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');

Contao CMS adding files from the frontend [closed]

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.

Laravel 5 build with Sximo [closed]

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
Helou, I'm frontend developer and my PHP knowledge is on begginers level. I have Laravel Site build with Sximo by other developer. I need to add a new .css and .js files for backend platform, but I don't know where. I added to public folder these files, but don't know how to call them. Can anyone help me?
P. S. No, I can't add it manuel, it's not for frontend page. :)
You need to add all .js and .css files into a public directory inside of your Laravel project directory:
public/css/my.css
public/js/mybig.js
Please read here how to add them to a view (recipe valid for Laravel 4 apps and Laravel 5 apps with Laravel Collective installed):
http://laravel-recipes.com/recipes/184/generating-a-link-to-a-css-file
Also, I think you'd want to learn about how Blade Template system works.

Overriding *.tpl.php in different directory [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How to override tpl files and keep them in separate sub-directory ? Some templates like core bartik keeps tpl files in template subdir. How to accomplish the same for custom own template ?
You can put all of your templates files (*.tpl.php) in different subdirectories of your choice as long as they are in the "templates" directory of your theme. Drupal will find them without doing anything more, but you may need to flush caches for him to detect the new templates files.

Yii2 advanced structure(need another application like frontend/backend) [closed]

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
I've started recently working with yii2.Using the basic app is easy but what I need to do now is to create an advanced template which has more that frontend and backend.I need it to also have midend and one more compoenent(same as frontend/backend folders).I have been trying to search on the internet but I did not find anything usefull.
I would be grateful if any of you guys can help me out here.
Best regards,
Marius
Copy the backend folder to a new folder, search for "backend" in the project and replace / add a link to the new folder you have created.
There are not so many places, there is one in common/config/bootstrap.php and the rest I believe are in the new "backend" folder. Remember to change the namespaces of controllers / models etc.
I have made this recently, it is easier then you think.

Categories