Quantcast
Channel: ActiveTopics
Viewing all 72689 articles
Browse latest View live

How to render grid layout widget into ucommerce cshtml view.

$
0
0

Hello Team, we have an issue with rendering grid layout widget into ucommerce view page

Do we have any helper method to display the grid as we have @Umbraco.Field("PropertyName") to display properties.

Or please guide us to get this done as this is one of the major requirement from our client.


Do we need a stock level on each variant or will it inherit from product?

$
0
0

Hey

Ive been googling around for an answer about how the stock datatype works with variants.

Because we have a customer where they only have a stock field on the "product" but not on each variant. But the stock didnt tick down, on purchases.

On the variant we have a "sku" and a "name", but I could on the specific variant they hadnt given a SKU, so im guessing that was why, since stock is stored on sku level.

I just got a bit confused, and couldnt find any doc :)

Bonus question the alias "sku" is something that is "hardcoded" like "umbracoNaviHide" and is not something we should set somewhere right?

Encoding of descriptions

$
0
0

Hi,

We are currently using SEO Checker 2.1.0 with Umbraco 7.10.4 and are experiencing some wierd encoding issues. The SEO Description is currently being HTML encoded while the SEO Title isn't.

That is pretty easy to fix with decoding of the value, but it gets a bit more difficult when the Twitter Description is using the SEO Description as fallback since this results in a double encoding of the value.

That makes it difficult to figure out how many times to decode, and it would be nice if none of the values were encoded when pulling them out in the Razor template using SEOChecker.Library.MetaData.Current.Description

Looking forward to hear from you :-)

Why does my code not work

$
0
0

I want to show all my project on one page. but it give me a null refence everytime i use the code to show all project. But when i add .Take(6) it works :D i dont get it. It worked earlier today. What do i do wrong ??

This one here it work with

 var selection = Model.Content.Site().FirstChild("projekter").Children().Where(x => x.IsVisible()).OrderByDescending(x => x.CreateDate).Take(6);

But this one her i dont. I get a nul reference

var blogItems = Model.Content.Children<Projekt>();

Here is the code i want to have to work :D

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;

@{
   var blogItems = Model.Content.Children<Projekt>();

}



<!-- Portfolio Grid -->
<section class="bg-light" id="portfolio">
    <div class="container">
        <div class="row">

            <div class="col-lg-12 text-center">
                <h2 class="section-heading text-uppercase">Projekter</h2>
                <h3 class="section-subheading text-muted">Vores projekter som vi er meget stolte af at vise dig.</h3>
            </div>
        </div>
        <div class="row">

            @foreach (var item in blogItems)
            {

                <div class="col-md-4 col-sm-6 portfolio-item">
                    <a class="portfolio-link" data-toggle="modal" href="@item.Url">
                        <div class="portfolio-hover">
                            <div class="portfolio-hover-content">
                                <i class="fas fa-plus fa-3x"></i>
                            </div>
                        </div>

                        <img src="@Umbraco.TypedMedia(item.GetPropertyValue<int>("billedeProjekt")).Url" style="width: 350px; height: 262px;" />


                    </a>
                    <div class="portfolio-caption">
                        <h4>@item.Name</h4>
                        <p class="text-muted">@Umbraco.Field("navnPaaProjekt")</p>
                    </div>
                </div>

            }
        </div>


    </div>
</section>

Create a template in Umbraco

$
0
0

Hi,

I am new for Umbraco. I have simple question. that is how to create a Umbraco template for the existing view(MVC application), and how do attach this?

Thanks T

Previews don't load when page is unpublished

$
0
0

Hi,

The stacked content backoffice previews I've created work fine when the document is published. However when I unpublish a document the previews no longer work. Instead I get the following error come up in the overlay on the right hand side:

Unhandled controller exception occurred System.UriFormatException: Invalid URI: The format of the URI could not be determined.

enter image description here

Is anyone else able to replicate this issue?

Cheers, Gavin

Permanent redirect (301) in a Tamplate logic working too slow on live

$
0
0

Hello, Umbracians.

Once apon a time, to make a quick solution of homepage redirect to first child node, I implemented a permanent redirect right within template logic like this:

@inherits Umbraco.Web.Mvc.UmbracoViewPage<RedirectionPage>
if(Model.RedirectionOverride != null)
{
    Response.RedirectPermanent(Model.RedirectionOverride.Url); 
}

RedirectionPage is root node in my case.

And, for some reason, it works very slow on a live hosting, about 3-7 seconds sometimes.

I guess, because it needs time to handle default routing before execute the template logic with redirects of it. It is not good anyway, but I didn't expect it take so much time.

Are there ways to solve the problem with standart Umbraco methods?

I wanted to use umbracoInternalRedirectId, but it just rewrites the url without 301 redirection.

What a best practice to give to content manager posibility to manage 301 redirects right into page tabs?

Thank you

FALM housekeeping

$
0
0

Has anyone successfully managed to get FALM fully working when using DI in Umbraco 7?

We use Autofac in our build and I registered the API / Controllers for FALM but it doesnt quite do the job.

The versions table doesnt populate and I don't know what else I can register?

builder.RegisterControllers(typeof(falmHKCacheCleanupController).Assembly);
        builder.RegisterControllers(typeof(falmHKRecycleBinsCleanupController).Assembly);
        builder.RegisterApiControllers(typeof(HkCacheApiController).Assembly);
        builder.RegisterApiControllers(typeof(HkLogsApiController).Assembly);
        builder.RegisterApiControllers(typeof(HkMediaApiController).Assembly);
        builder.RegisterApiControllers(typeof(HkRecycleBinApiController).Assembly);
        builder.RegisterApiControllers(typeof(HkTempApiController).Assembly);
        builder.RegisterApiControllers(typeof(HkUsersApiController).Assembly);
        builder.RegisterApiControllers(typeof(HkVersionsApiController).Assembly);

enter image description here


Logout member when another person is logged in with same credentials

$
0
0

I would like to ask if it's possible to logout member when another person is logged in with same credentials.

I'm working on a website, where 1 or 3 people can be logged in with same credentials, depending on license type. Is it possible?

using category tags in a nav bar on landing page

$
0
0

I have build a landing page to show case recipes using the product and products document types from Umbraco starter kit.

On the single recipes I put some category tags for the purpose to make them appear in a nav bar on the landing page.

I would like to use some code similar to this

 <nav class="nav-bar nav-bar--center nav-bar--air-bottom">
            <a class="nav-link nav-link--black nav-link--active" href="">All</a>
            <a class="nav-link nav-link--black" href="">Vorspeisen</a>
            <a class="nav-link nav-link--black" href="">Suppen</a>
            <a class="nav-link nav-link--black" href="">Eintoepfe</a>
            <a class="nav-link nav-link--black" href="">Hauptgerichte</a>
            <a class="nav-link nav-link--black" href="">Deserts</a>
        </nav>

I am sure that the above code won't work as it is right now. I have some basic experience with HTML but have no real clue about Razor and how to use the Umbraco Aliases etc.

How can I fetch the category tags for the nav bar

Would really appreciate some help as I am no developer

Upgrade from 6 to 7

$
0
0

We have to migrate all our sites onto a new server and want to take the opportunity to upgrade from Umbraco 6.1.6 to at least 7

Are there any quick ways to do so or will it be better to do a rebuild of each one.

Thanks

Andrew

Plumber compatibility and upgrade

$
0
0

Hi - can anyone confirm by direct experience that Plumber v 1.1.4 is compatible with Umbraco v 7.13.2? (as the package compatibility report section on the website hasn't been updated...)

Also, it is possible to upgrade Plumber incrementally from early versions eg: v 0.7.5 to a release version ie: v 1.1.4?

Or does it have to be uninstalled, and then the latest version reinstalled?

thanks D

Frontpage spot deleted by accident

$
0
0

by accident deleted a frontpage spot - now site messed up - how to fix?

True/False missing

Vorto RelatedLinks: Object reference not set to an instance of an object

$
0
0

I have Vorto setup with 3 languages.

Using related links if I setup links for all three languages I have no issues.

If I setup links for only one language I get 'Object reference not set to an instance of an object.' on the following line of code:

RelatedLinks footerNavigation = navigation.GetVortoValue<RelatedLinks>("footerNavigation");

Anyone know why this would fail?

Cheers,

Marc


Instagram propertyvalue always null

$
0
0

Hello Team, Our requirement is to show the latest images from our instagram account here are the steps i followed

  1. Installed the package Skybrud.Social.Umbraco
  2. Created a Datatype whose property editor is Skybrud.Social-Instagram OAuth, and added our clientId, clientsecret and Urk and also selected the scopes
  3. Under Document Types, Added this as property for root content
  4. Added this instagram Property in content homepage layout.

5 . Added a instagram.cshtml under Partial Views in settings and following is the sample code that i have used in this cshtml

@{

// Get the OAuth information stored in the property
    var currentContent = Umbraco.TypedContent(UmbracoContext.PageId.Value);
    var rootNode = currentContent.AncestorOrSelf(1);
    var instagram = rootNode.GetPropertyValue<InstagramOAuthData>("instagram");

    <p>hello1</p>
        // Check whether the OAuth data is valid
       if (instagram != null) {
      <p>hello2</p>
       }

} 6. added @Html.Partial("instagram") in the page where i want instagram to be shown

Result : hello2 is never displayed which means instagram property is null always

Please help me fix this issue as this is one of the important requirements from our client

Thankyou

'Value cannot be null. Parameter name:refresher' error while publishing content

$
0
0

I have created the Umbraco site as virtual directory application and kept it as main site also for using admin panel. While publishing the content, I am getting an error, 'Value cannot be null. Parameter name:refresher'.

Any help is appreciated.

Thanks in advance, Suma

Help diagnosing Azure App Service outages

$
0
0

Hi all,

I run an Umbraco 7.5.2 site in Azure App Service and for the last several weeks we are receiving seemingly random outages on Azure which last around 5-15 minutes.

I've been trying to diagnose what's causing the issue, the Umbraco logs don't indicate that the hosting environment is being shut down or restarted and just start getting filled up with:

System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Umbraco.Web.Scheduling.KeepAlive.<PerformRunAsync>d__4.MoveNext()
 2017-01-20 16:37:27,082 [P1988/D3/T57] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - Failed (at "https://<omitted domain>/umbraco").

Does this mean Umbraco is still running under the hood but Azure unable to route the requests?

When I look at the failure history on Azure it shows container health at 100% and organic health at 0% during the outage.

There's nothing interesting before or after the logs, no exceptions that I can see that would be causing the app pool to get recycled.

We're hosting on the S2 App service plan with an S0 database, when it's available it's generally pretty quick.

As a side-note we did look at Umbraco Cloud as a solution to minimize the operational headaches but the fact we can't integrate it with Azure Active Directory means we can't really go down this route unfortunately.

Does anyone have any experience or pointers to help debug issues like this? Any help would be appreciated.

[£50 Bounty] Moved Umbraco site to new server, now login system isnt working

$
0
0

I really want this issue gone, so £50 to the person who resolves it

I Built a site as title suggests, all OK, using the default database that Umbraco creates for you so everything is self contained, ive since moved the site now to a new server but im facing an issue where using:

var loginStatusModel = Members.GetCurrentLoginStatus();

and then later:

@if (loginStatusModel.IsLoggedIn)
{ 

}
else {

}

Trouble is its always hitting my else case, so the member system is effectively not working since moving the site over. Any ideas? Thanks Using umbraco 7.11.1

I have in the logs reporting this;

 2019-01-30 14:34:37,920 [P5684/D3/T4] INFO  Umbraco.Core.Security.UmbracoMembershipProviderBase - Login attempt succeeded for username masterreview from IP address

Implying the member is logged in, but the page still hits the else.

The site works perfectly on the server it was developed on & locally when I use IIS Express, but not when I move it, no code changes take place.

I believe it's an environmental issue which is tricky to guess I know, but if you can think of anything like in IIS change X to false just say it, ill try it, and if that's it, you get the bounty.

Issues with file upload

$
0
0

I have an issue where, I bulk uploading files, which works fine. But if I try to update a file, I remove the file and add a new one, it fails. I'm not sure why one would work and not the other. In the console I'm seeing a 500 error on the postSave method.

Has anyone else had this issue and found a solution?

Viewing all 72689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>