131 comments found.
Does SSR (SEO friendly) work in this template by simply changing the mode mode: ‘universal’
Or does it need more code changes?
HI, to enable SSR you just need to set mode property to universal. No additional changes needed.
In Scutum v2.4.0 there is no mode property (deprecated), please use ssr: true to enable universal mode. Please check https://nuxtjs.org/guides/configuration-glossary/configuration-mode and https://nuxtjs.org/guides/configuration-glossary/configuration-ssr
Tomek, hi again,
thanks for the great admin template! Just wondering, is it possible to get npm dependencies upgraded to get rid of 21 deprecated warnings (node 12.18.4)?
Thanks, Ruslan
Hi, thank you for your message. I’ll try to sort this out in next update. I’m not sure if it’s possible to get rid of all this warnings but I’ll do my best.
Hi Tomek,
just found that Scutum uses a deprecated laravel-nuxt, and the author recommends switching to Sanctum and avoid this library. Do you have a plan to get Scutum upgraded regarding this, or?
Thanks, Ruslan
~~ laravel-nuxt was created to offer some sugar when working locally with Laravel+Nuxt, solving some cookie problems in the process. Today, it isn’t necessary anymore. ~~
Thank you for the info. I’ll look into Laravel Sanctum and probably I’ll include sample integration with Scutum after next update.
Awesome, Tomek, looking forward for the update. Thanks.
Hi Tomek, happy New year for you and yours! Hope you’re fine. Just wondering are there any updates planned for this month (Sanctum, Vue3 etc.), or? Thanks.
Hi Ruslan, Happy New Year.
Before end of January I’ll try to release new update with the following features: Laravel Sanctum Integration, Sidebar swipe gestures (open/close), new fancy mobile footers, invoice print functionality, new calendar plugin, few other minor improvements and bug fixes.
Scutum Vue version is build with the Nuxt.js framework. Nuxt.js is not working with the Vue3 at the moment, there is a plan to release an alpha version in Q1 2021. I’m not sure yet that I’ll update Scutum to vue3 but I have it on my todo list.
Sounds good, Tomak, thanks for the details about the forthcoming update!
Hi Tomek, hope you’re well, just checking in to see how it’s going with the new release? Thanks.
Hi, update is almost ready, I need 2-3 more days to finish/test new features.
Awesome, thanks for the update!
Hi, sorry for the delay, new version is almost ready. I’ll release it in next monday.
Hi Tomek, sounds good, thanks for the update.
Hi, sorry for the delay. Update is Queued for Review on Themeforest. Should be ready to download shortly.
Awesome, thanks for the update, Tomek!
Hi Tomek, when using dynamic fields and an entry is removed is there a way to get the field counter / index of the removed item in the removeCallback? Thanks.
In scutum.forms.common.dynamicFields function when removing fields, callback is called after item is removed so reference to that field is gone
.on('click', '.sc-js-section-remove', function (e) {
...
$(this).closest('.sc-form-section').next('hr').remove().end().remove();
if (typeof removeCallback !== 'undefined' && typeof removeCallback === 'function') {
removeCallback();
}
...
});
Try this way1. Open scutum_common.js, find scutum.forms.common.dynamicFields function, and add
.on('click', '.sc-js-section-remove', function (e) {
...
// this is the reference to dynamic field that will be removed
var $el = $(this).closest('[data-field-index]')
scutum.$win.dynamicFieldsLastRemoved = {
index: $el.attr('data-field-index'),
el: $el
}
...
});
2. Open forms-dynamic_fields.html, and add data-field-index="{{ index }}" to .sc-form-section
<script id="fields-template" type="text/x-handlebars-template">
<div class="uk-card-body sc-form-section{{#if_even index}} md-bg-grey-100{{/if_even}}" data-field-index="{{ index }}">
</div>
</script>
3. open assets/js/views/forms/dynamic-fields.js, and replace all content with the following code
scutum.dynamicFields = {};
scutum.dynamicFields.init = function () {
// dynamic fields
scutum.forms.common.dynamicFields(null, true, false, null, scutum.dynamicFields.removeCallback);
};
scutum.dynamicFields.removeCallback = function () {
console.log(scutum.$win.dynamicFieldsLastRemoved)
}
Now in scutum.$win.dynamicFieldsLastRemoved you will have the index and the DOM element of the removed item.
Thanks and this is brilliant! How we looking on the release with RTL?
Hi, update should be ready for download shortly. It’s now queued for review.
Hi, 3 days ago I send you an email. Still waiting your answer. Thanks
Sorry for the delay. Please check your email.
A very nice ui but i am facing a lot of difficulties while using it with laravel. I means it is very complex and difficult to understand project. Can we use it without nuxt and and we use it like traditional laravel+vue method? if yes then how we can.
Hi, unfortunatelly, it’s not possible. Scutum has been built using the nuxt framework and it’s using all the features that nuxt provides (ssr, vuex, page based routing etc.). Please send me message through support page https://themeforest.net/item/scutum-professional-material-design-uikit-admin-template/23542323/support I’ll help to understand this integration and how to use it.
hey there
really nice UI components – does it include any sort of nice looking search bar?
Hi, thank you for your kind words
Scutum Admin is based on the UIkit framework so you can use any component from that framework.
Please check https://getuikit.com/docs/search
Hi Tomek, thanks for the update and still loving the theme, so keep up the great work! Any plans / timeline on adding RTL support for Scutum?
Hi, sorry for the late reply. I think that the RTL support will be available before end of August.
Great, thanks!
Hi Tomek, any update on RTL? Thanks!
Hi, I need few more days to finish this update. I think it will be reready next week. Sorry for the delay.
Hi, is it possible to have a card toggled closed by default?
Hi, it’s not possible at the moment but I’ll add it in next release. New version should be ready before end of this week. I’m working on it right now.
Thanks Tomek, looking forward to seeing what you conjure up in the next update!
Hi Tomek, when is update anticipated? Thanks!
Hi, I’m really sorry for the delay. I’ve just uploaded new version to themeforest, should be ready for download shortly.
Hi, I want to know Why you use nuxt inside of Laravel and not outside.
Hi, please check the motivation behind this integration here https://dev.to/skyrpex/create-a-spa-with-laravel-and-nuxt--54k
If you like you can use separate instances of nuxt and laravel.
This integration is only in laravel-nuxt/ folder, you can use src/ folder if you want separate instance.
Looking forward to the next release. Is it possible to add support to close the top drop down menus (mail, bell, account, etc.) on click? Thanks!
<ul class="uk-nav uk-nav-navbar">
<li><a href="pages-user_profile.html" class="sc-uk-dropdown-close">Profile</a></li>
<li><a href="pages-settings.html" class="sc-uk-dropdown-close">Settings</a></li>
<li><a href="login_page.html" class="sc-uk-dropdown-close">Log Out</a></li>
</ul>
Update should be ready before end of this week.
I have generated the using generate command and placed the scutum-spa folder inside wamp www folder but its not loading. because the files included in index.html not being loaded.
Hi, please check your email.
Is there a component like SideBar for creating a new fixed “sheet” on the right side. I’m trying to get content on the right side of the screen that doesn’t scroll with the main page content, similar to Facebook/Twitter/Nextdoor’s main pages. These would be hidden on smaller screens.
The theme and layout are fantastic otherwise. Thanks.
Please check https://scutum-html.tzdthemes.com/pages-mailbox.html
You can move #sc-page-aside after #sc-page-content, that way aside/sidebar will be on the right side, to hide it on small screens you can use .uk-hidden@sm class
<template>
<div id="sc-page-wrapper" class="uk-flex uk-flex-column">
<div id="sc-page-wrapper-inner" class="uk-flex">
<div id="sc-page-content" class="sc-padding-remove uk-height-1-1">
<Newsfeed></Newsfeed>
</div>
<div id="sc-page-aside" class="uk-visible@s">
<div class="sc-page-aside-body">
<RightSidebar></RightSidebar>
</div>
</div>
</div>
</div>
</template>
Can you tell me what I’m missing to keep the output of RightSidebar fixed, but the Newsfeed able to scroll?
Thanks again.
mounted () {
// set fixed page
this.$store.commit('setPageFixed', true);
},
beforeDestroy () {
// unset fixed page
this.$store.commit('setPageFixed', false);
},
<div id="sc-page-top-bar" class="sc-top-bar" hidden="" />between the sc-page-wrapper and sc-page-wrapper-inner divs.
Sadly I won’t be using this method as it breaks good UX practices by using it’s own scroll bar down the center of the page and not the browsers scroll-bar on the right. The bootstrap style “affix” is what I was after. As a future enhancement I’d love to see something like that.
Thanks for the help.
Hi, what would be the best approach in Scutum to change the raty star icons to something else (I want to use bullets)?
.star-off-png:before {
content: "\f765";
}
.star-on-png:before {
content: "\f764";
}
hello, are you plannig to do make more plugins for this theme?
Hi, yes, I’m still supporting this template.
If you have any suggestions/requests please let me know.
vue.js 1. x-editable 2. ecommerce pages
Thank you for the suggestions, I’ll add them to todo list.
I’m using Ajax to load my pages; what would be the best way to close the side-menu on small devices?
UIkit.offcanvas(scutum.$sidebarMain).hide()
Works great, thanks!
I’m using cards within an expanded header page and all works well (with aforementioned scrolling adjustments), however if one of the card allows full screen (sc-js-card-fullscreen) it only expands to the main content. Is there a way for it to expand to the whole screen as per non-expanded header page?
BTW I can achieve this with my own JS as I move the card outside of the expanded header content before full screen and then insert it back to the placeholder before collapse, but ideally I’d like to use built-in functions.
<html class="sc-page-fixed sc-header-expanded">
<head>
...
</head>
<body>
...
<div id="sc-page-wrapper" class="uk-height-1-1">
<div id="sc-page-content" class="uk-height-1-1 uk-overflow-auto">
<div class="uk-child-width-1-3@l uk-child-width-1-2@s uk-grid" data-uk-grid>
<div>
<div class="uk-card">
<div class="uk-card-header">
<div class="uk-flex uk-flex-middle">
<div class="uk-flex-1">
<h3 class="uk-card-title uk-margin-remove-bottom">Title</h3>
<p class="uk-text-meta"><time datetime="2019-01-01">Jan 01, 2019</time></p>
</div>
<div class="sc-actions">
<a href="#" class="sc-actions-icon mdi mdi-fullscreen sc-js-card-fullscreen"></a>
</div>
</div>
</div>
<div class="sc-card-content">
<hr class="uk-margin-remove">
<div class="sc-padding-medium">
Lorem ipsum dolor...
</div>
<div class="sc-card-content-more">
<hr>
<div class="sc-padding-medium">
<strong>Content visible when card is in fullscreen mode.</strong><br>
Lorem ipsum dolor sit amet...
</div>
</div>
</div>
</div>
</div>
<div>
...
</div>
<div>
...
</div>
</div>
</div>
</div>
</body>
</html>
What I meant was take pages-blank_header_expanded.html and put the card in the main uk-card-body and then it doesn’t fill the page.
<div id="sc-page-wrapper">
<div id="sc-page-content" class="uk-height-1-1 uk-flex uk-flex-center sc-page-over-header">
<div class="uk-width-5-6@m">
<div class="uk-card uk-height-1-1 uk-flex uk-flex-column">
<div class="uk-card-header">
<h3 class="uk-card-title">Expanded header</h3>
</div>
<hr class="uk-margin-remove">
<div class="uk-card-body sc-padding-remove uk-flex-1" data-sc-scrollbar>
<div class="sc-padding">
<div class="uk-card uk-margin">
<div class="uk-card-header">
<div class="uk-flex uk-flex-middle">
<div class="uk-flex-1">
<h3 class="uk-card-title uk-margin-remove-bottom">Title</h3>
<p class="uk-text-meta"><time datetime="2019-01-01">Jan 01, 2019</time></p>
</div>
<div class="sc-actions">
<a href="#" class="sc-actions-icon mdi mdi-fullscreen sc-js-card-fullscreen"></a>
</div>
</div>
</div>
<div class="sc-card-content">
<hr class="uk-margin-remove">
<div class="sc-padding-medium">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad aliquid amet animi atque aut consectetur dolor doloremque eaque eius error esse exercitationem expedita fugiat id ipsa, itaque iusto laudantium maiores modi molestiae nam nesciunt nobis non nostrum numquam obcaecati perferendis provident qui suscipit tempora tempore ut voluptates voluptatum! Ad aut excepturi, fugit harum ipsum quia reiciendis reprehenderit? Aliquam animi consectetur debitis, delectus deleniti doloribus eos eum explicabo facilis hic laudantium maxime molestias, nemo quia quisquam rerum, sapiente sunt. Accusantium, at autem consequatur dolor earum inventore ipsa ipsum, labore nam neque numquam quam quod totam ullam veritatis. Fugit modi molestias quae.
</div>
<div class="sc-card-content-more">
<hr>
<div class="sc-padding-medium">
<strong>Content visible when card is in fullscreen mode.</strong><br>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet aperiam at debitis inventore itaque labore nostrum? Aspernatur, consequuntur, rerum. Esse explicabo fugit illo in ipsam iusto laborum, magnam minima non odio, perspiciatis placeat possimus praesentium quidem saepe similique vel voluptatum! Aliquam aspernatur corporis deserunt doloremque est eum fugit illum ipsa maxime minus molestias numquam, obcaecati possimus quas reiciendis sint unde voluptatum? Adipisci corporis culpa delectus, dolore eaque esse hic, ipsam laboriosam, nobis quasi quod ratione repellat repellendus ullam voluptate? Ab amet, atque corporis cupiditate deleniti eaque eius est eum eveniet ex excepturi fugiat in laboriosam minima necessitatibus nemo nisi nulla odio perferendis placeat porro praesentium quae quas quibusdam repellat, rerum sint soluta vitae, voluptatem voluptatum! Consectetur culpa cupiditate, eius maxime neque nobis odit possimus qui reiciendis repellat, sed tempore tenetur veritatis! Aliquam at blanditiis distinctio doloremque eos incidunt iste perspiciatis provident quos rem, repellendus reprehenderit rerum suscipit tempora ullam vero, voluptates? Aliquid blanditiis delectus deleniti, dolor doloribus eum explicabo iste laboriosam nisi nostrum odio odit possimus quidem repellat voluptas? Ab aliquam animi architecto blanditiis delectus dicta dolor doloribus earum, eveniet excepturi expedita inventore maxime minus molestiae nesciunt nihil nisi nulla officia optio provident quasi quis quod rem repellendus soluta veniam.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
How to hide card element when card is full screen? Altair had a class.
There in such class in Scutum Admin but I’ll add it in next release.
How to pass hintList, etc. to Raty through element data as the below doesn’t work?
Actually I think I might have the syntax wrong, I think it’s hints: [], sorry for bothering you.
No problem, I’m glad you figured it out.