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

Examine search categorized.

$
0
0

Hello, so I'm wondering if there is a way of categorizing the search?

So if i want to have all the products at the top of the search result in a section, after (below) products i want all the blog post in a section.

  • Products Product one Product Two
  • Blogs Blog one Blog Two

If there is a way (at least i think there is), can someone guide me or just get me in the right way.

Kind regards / Emil


Extend Umbraco Forms with custom datasource

$
0
0

Does anyone have an example of a custom Umbraco Forms Datasourcetype (FormDataSourceType). I want to implement my own so i can use an Rest Api.

Creating my first template

BackOffice Label aren't displaying the correct text.

$
0
0

Hi Team,

I started on getting our starter kit running on Umbraco 8, it was going OK until the 8.1 update where I no longer get the BackOffice text labels to show the text they should.

This is all throughout the backoffice.

Not sure if I broke something, or even know where to start looking at getting these labels and buttons back to what they should be showing. Updating to 8.1.1 also went well, but I still have the labels showing as pictured.

Any help greatly appreciated.

Web.Config error in UmbracoMemberProfileProvider when deploy to production server

$
0
0

Hi All

Have have developed a site locally for a while and all is fine. When deploy to prod. server i get this Error.

Thanks in advance

enter image description here

Calling async method from controller

$
0
0

Hi, Im struggling trying to call an async method from my Umbraco controller. Can anyone give an example what to do to get it working?

Azure / Examine integration

$
0
0

Hello. We are planning to use Umbraco 8 in Azure Web Apps. The non-backoffice Web App will have autoscaling enabled. I've read the Umbraco load-balancing guide.

Regarding Examine it says "This will ensure that when the app is restarted or the local environment temp files are cleared out that the index files can be restored from the centrally stored index files"

If a new instance is added, it will take an amount of time to do the index sync.

Will search functionality be unavailable on the new instance during this time or are requests sent to the remote index if the local index does not exist?

Thanks in advance. Howard

FormStorage() inaccessible now in Forms for V8?

$
0
0

Hi,

I used to be able to access UmbracoForms data with FormStorage() like this:

enter image description here

But when trying to do this in V8 it seems like the accessibility level has been changed and I get the error of "'FormStorage' is inaccessible due to its protection level."

enter image description here

What is the new way of accessing the Forms storage, records data in V8 now?


Still producing history records

$
0
0

Hi,

this is the first time I installed UnVersion.

Umbraco Version: 7.10.4

My config line:

<add docTypeAlias="course" />

But every time I update the item via a contentService

(which happens every 5 min)

enter image description here

I get a new entry in the items history:

enter image description here

Am I doing something wrong, or am I missing something?

Thanks

Programmatically setting Member Picker property

$
0
0

I have a document type that has Member Picker property editor and I need to set the value for it programmatically. Member that I need to put into that property is a custom Member Type. When I try to do it in the back office, it works, but I can't get it to work through an API. I've tried few things and it successfully creates node of that document type, but when I access that node through backoffice I always get this exception:

System.InvalidOperationException: Multiple actions were found that match the request: GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type Umbraco.Web.Editors.EntityController

Also, Member Picker doesn't show anything in node editor (as if it has no selected member).

Thanks in advance!

Getting Media's URL from Umbraco's UID

$
0
0

Hi,

I'm using Umbraco V7.6 I'm quite new with umbraco and still experimenting this CMS.

I'm trying to return a string of the media's URL in my XYZapicontroller class.

in my XYZapicontroll class i added this following line,

            string media = (ctx.cmsPropertyDatas.Where(x2 => x2.propertytypeid == rwupload.id && x2.contentNodeId == x.nodeId).First<cmsPropertyData>().dataNtext == null) ? "none" : ctx.cmsPropertyDatas.Where(x2 => x2.propertytypeid == rwupload.id && x2.contentNodeId == x.nodeId).First<cmsPropertyData>().dataNtext;

and i got back a string media of:

<Media>umb://media/d5e0b425a5704c2d8117bae2c5447eab</Media>

how do I convert this UID into the media's URL so that a mobile app that im developing will be able to play/view this media file?

Thanks and Appreciate the help

Melvin

Check if page is marked as protected and redirect to login

$
0
0

In my DocType i have a property by the name of "membersOnly" (true/false).

When checked, i want to check, if the user is logged in, if not, redirect to login page with a refere.

But what is the best way to do this - i dont want to have in my Master template. How can i hook into the request pipeline, check if the "membersOnly" field excist, and if it does, and it is checked, and the user is not logged in, redirect the user?

Any short snippets out there?

How to use .webp format with the image processor?

$
0
0

Hi guys, using Umbraco 7.12.4 and using plenty of image processor stuff, but would really like to use the webp format tag, has anyone got this working?

Umbraco 8 - Azure Web App Scaling

$
0
0

Hello,

there used to be a setting called distributedCall in the umbracoSettings.config file in version 7, but it's not in 8.

Can someone explain how you set this in version 8.

Thanks

Paul

Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

$
0
0

tried to update from V7.5.3 to V7.15.1. When I tried to update I got the above error. What I did

  • Downloaded and extracted
  • Replaced bin,umbrco,umbraco client folders with old site
  • merged the settings in web.config file

I got the following error

Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

uSync import "Failed" message

$
0
0

Hi,

We have uSync v8.2.3.0 installed on an Umbraco 8.1.5 installation.

uSync works fine on our staging environment, any changes made on dev can be imported in to staging, but on the production server when we click the "Import" button, we just get a Failed message.

There's no errors logged in the Log Viewer, and looking in dev tools it's just a generic:

500 - Internal Server Error There is a problem with the resource you are looking for, and it cannot be displayed.

We don't have any special setup with this, it's the same way we've installed uSync on all our projects and never had any problem.

Is there a way to get more verbose logging for uSync errors in v8? Not sure how to enable debug messages like we could in v7.

Datetime macro property

$
0
0

Hello!

How easy it is to add a new marco property. I want a datetime one. I also think it should be built-in in Umbraco.

Thanks for your tips!

ImageCropperValue.GetCropUrl not providing the correct url

$
0
0

hey guys,

following scenario:

  • defined an Umbraco.ImageCropper data field.
  • defined a crop with the alias "hero", 1600 x 620
  • uploaded an image, using the crop "hero"

within my home view I'm trying to pass the crop url to the partial view:

@inherits Umbraco.Web.Mvc.UmbracoViewPage<Home>
@using ProFinder.Core.ViewModels

@{
    Layout = "master.cshtml";
}

@Html.Partial("~/Views/Partials/header.cshtml", new HeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage.GetCropUrl("hero")))

Model.MainImage is an "ImageCropperValue" within the namespace Umbraco.Core.PropertyEditors.ValueConverters

My ViewModell:

public class HeaderViewModel
{
    public string Name { get; set; }
    public string Title { get; set; }
    public string Subtitle { get; set; }
    public bool HasSubtitle => !string.IsNullOrWhiteSpace(Subtitle);        
    public string BackgroundImageUrl { get; set; }
    public bool HasBackgroundImage => string.IsNullOrEmpty(BackgroundImageUrl);
    public string AuthorName { get; set; }
    public bool HasAuthor => !string.IsNullOrWhiteSpace(AuthorName);
    public DateTime? ArticleDate { get; set; }
    public bool IsArticle => ArticleDate.HasValue;
    public HeaderViewModel(string name, string title,
        string subtitle, string backgroundImageUrl,
        string authorName = null, DateTime? articleDate = null)
    {
        Name = name;
        Title = title;
        Subtitle = subtitle;
        BackgroundImageUrl = backgroundImageUrl;
        AuthorName = authorName;
        ArticleDate = articleDate;
    }
}

My PartialView:

@inherits UmbracoViewPage<ProFinder.Core.ViewModels.HeaderViewModel>

@{
    string mainImageUrl = Model.HasBackgroundImage ? Model.BackgroundImageUrl : "img/home_section_1.jpg";
}
...
<section class="hero_single version_1" style="background-image: url('@mainImageUrl')">

Returned Url in response:

<section class="hero_single version_1" style="background-image: url('?center=0.41466666666666668,0.11833333333333333&amp;mode=crop&amp;width=1600&amp;height=620')">

Which is not showing up the image.

Any ideas?

Thanks

Dee

GDPR and Umbraco

$
0
0

Hi,

We're currently reviewing the affects of the GDPR legislation (Wikepedia Link) that is due to come into force in May 2018 and one of the implications of GDPR is data encryption and how personal data is stored at rest and in transit.

So we were wondering, has the Core team considered the implications of the new legislation and whether or not encryption should now be included in the core (and enabled by default) in order to meet this legislation (and just data security in general?).

I've raised this in the forms forum as it's probably the logical place given this is the most likely functionality to gather personal information, however I guess this could also apply to members and/or users.

Has anyone else looked into this and if so, how far reaching does this go? I've even been wondering if the email addresses used for members should be encrypted as it's not clear to me where the line is drawn.

Cheers,

Simon

Request Cookies Null reference

$
0
0

Hi All,

Its not Umbraco related question but this community is so frendly that i will ask here.

I want to save cookie every time visitor comes to my website and before I do that I want to check if cookie alredy exist.

I am doing this with this static method:

public bool IsReturningVisitor(string value)
        {
            if (Request.Cookies[value] != null)
            {
                return true;
            }
            else
            {
                Response.Cookies[value].Value = value;
                Response.Cookies[value].Expires = DateTime.Now.AddMinutes(1);
                return false;
            }
        }

But I am geting null reference on this line Request.Cookies[value] != null . When i do the same thing in my ActionResult class it works good.

What am I missing??

Viewing all 72689 articles
Browse latest View live


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