Missing options in settings page in Voyager Laravel admin panel - laravel

I just installed Voyager in my Laravel Project. Now in my admin panel in Voyager in settings page I am unable to get options like changing Logo, Title etc. from my admin panel.
Here is the snips of my admin panel.
I am missing options for changing basic stuffs in my panel
I am getting this in my title bar.
My page title is null I am getting only ' - '.
Laravel Version: 5.4
Voyager: 0.11.14
php: 7.x
mysql: 5.7

It's just because, you haven't created any setting variables in the setting menu of voyager, so all you have to do is to create certain settings in the admin panel like admin_title (field type text), admin_description (field type text area),
once you have created these setting voyager will pick them for its admin title and admin description.
if you want any such other setting(s) create our own custom field and you can use them anywhere in your project like :
Voyager::setting('your_custom_field_settings')
you can also use some nice cheatsheet for voyager at here. i hope this helps.

Related

how do I add '/en' or '/fr' after all the base url in laravel 5.8 routes

I created a project in Laravel 5.8. I just started working on adding multiple languages in my website. How do I make it so if I click on the language button to choose french the website will load every page as /fr/<rest of the url
Like this
when selecting english language
when selecting bangla language
When the button is clicked you should set the desired locale, this can be done using App::setLocale($locale)
The documentation of Laravel explains how you could do this, for your exact use case:
Laravel Configuring The Locale

How to migrate the custom laravel admin panel code in laravel voyager?

i' facing the problem to merge the code in laravel voyager. i've created the admin panel, client panel, publisher panel section in laravel. but due to some reason, i'm migrating the all code in laravel voyager. laravel voyager is a admin panel to provide CRUD, BREAD. is it possible ? how i can implement this ? Below i attached the screenshot of directory structure. Thanks in advance.

How to show Laravel voyager sidebar like (Add Post) for custom Bread builder

I'm new in Laravel Voyager. At Voyager admin section I see there is a sidebar section on right side for Post image, SEO contents.
But When I create any custom Bread for example "Products". There is no right sidebar like Add Page/Add Post.
My question is how can I create a right sidebar section like that?
Regards
You can achieve this by creating overrides for views for default Voyager add-edit blade, read this documentations here :
https://docs.laravelvoyager.com/customization/overriding-files#overriding-bread-views
by default voyager uses bootstrap 3, you can break the form in rows and column as per your choice.
I hope this will help.

set a theme for a user in Moodle

Within a Moodle, I've set up, I receive new users via a single sign on, these users should get a specific theme set for them. This theme is not the default theme, other users can sign up for the site (they are not coming in via the SSO) and should not get this theme, so I can't set it as the default theme.
How can I set a theme as the prefered or default theme for a user when he logs in via the SSO?
I would think that this setting is stored in the database but I can't find it there.
I found a column theme in the user table but setting the theme there does nothing.
I've also looked in the table user_preferences but didn't find any record about the theme after I changed it for a specific user.
Does anybody know where in the database this is stored or how I can set a default theme for a specific user?
UPDATE:
Users can change their own theme.
I store the themename in the column in the database (clean, NOT theme_clean).
You probably need to enable user themes - allowuserthemes
Go to site admin -> appearance -> themes -> theme settings
or direct to /admin/settings.php?section=themesettings
UPDATE:
How are you storing the name in the theme column? It should be mytheme rather than theme_mytheme.
If that's correct, then try changing the theme order : in config.php add
$CFG->themeorder = array('user', 'course', 'category', 'session', 'site');
You'll need to log out and log in for the themeorder to be updated.
If none of the above works, then I would either do a var_dump($USER) after a login to see if theme is updated correctly. Or start a debugger and step through function resolve_theme() in /lib/pagelib.php

Magento - Print category attribute on category page?

I followed the below tutorial to add a custom attribute to my Magento categories:
http://www.atwix.com/magento/add-category-attribute/
It seems to have worked as the text field shows in the backend and I can see the attribute in the database (eav_attribute).
The problem is I can't get the attribute to display in the frontend. I have added the code suggested in the tutorial to view.phtml but it didn't work.
I have also tried
if($_category->getCustomAttribute()) {
echo $_category->getCustomAttribute();
}
Any ideas for getting this to display in Magento 1.7?
Try doing a reindex in admin
In Admin -> System -> Index Management

Resources