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

Lucene Search Query

$
0
0

Hi guys,

I'm pretty new to Umbraco and I'm trying to get a more advanced search on the go.

I've managed to implement a simple site search using the default ExternalIndexer, but I'm looking to create another search that uses my own Indexer.

I've updated my ExamineSettings.config and ExamineIndex.config files and verified my new index is working as intended by using the Examine Management tab and running searches using my new search indexer that appears under 'Searchers'.

I have a simple Partial View setup, using the code from the Fluent API section of the quick start guide, however, I can't seem to render anything other than the node Id.

Here's my Partial View code:

@inherits Umbraco.Web.Macros.PartialViewMacroPage
@using Examine.LuceneEngine.SearchCriteria;

@{ 
var query = Request.QueryString["query"];
var searcher = Examine.ExamineManager.Instance.SearchProviderCollection["MySearchSearcher"];

var searchCriteria = searcher.CreateSearchCriteria(Examine.SearchCriteria.BooleanOperation.Or);
var searchQuery = searchCriteria.Field("nodeName", query.Boost(5)).Or().Field("nodeName", query.Fuzzy()).And().OrderByDescending("createDate");
var searchResults = searcher.Search(searchQuery.Compile());
if(searchResults.Any())
 {
    <ul>
        @foreach (var result in searchResults)
        {
            <li>
                @result.Id;
            </li>
        }
    </ul>
 }
}

This renders the ID of expected results, but when I try to use @result.nodeName or @result.Url, I get a compiler error message:

CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments

How can I output and render other values, including custom doctype fields?


Child nodes as checkbox list values

$
0
0

Is it possible to add child content as pre value to a checkboxlist displayed in parent content?

e.g. I am trying to give the use option to select which child nodes to show data from

HtmlAgilityPack assembly version is reset when Umbraco Cloud upgrades site

$
0
0

Everytime I upgrade our solutions on Umbraco Cloud, SEOChecker makes the upgrade break because it resets the HtmlAgilityPack version to 1.4.9.5 when the assembly in my solutions is actually 1.8.4.0.

<dependentAssembly>
        <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.4.9.5" newVersion="1.4.9.5" />
</dependentAssembly>

enter image description here

I'm not sure if it's SEOChecker or Umbraco that actually resets the version. The fix is quite easy, but still annoying when you upgrade quite often.

Can't get (legacy) media picker to be displayed with nested content

$
0
0

Hi all,

I'm working on a website with Umbraco 7.5.4., which I didn't build but need to make some changes. I have nested content and I'm trying to display this. I get the title displayed correctly, but not my images.

The code I'm using is as followed:

@foreach (var item in selection) {
    <p>@item.Name</p>
    var subItems = item.GetPropertyValue<IEnumerable<IPublishedContent>>("hoofdstuk");

    if (subItems != null) {
        foreach (var subItem in subItems) {
            if (subItem != null) {
                <p><strong>@Umbraco.Field(subItem, "nummer")</strong> @Umbraco.Field(subItem, "titel")</p>
                var file = Umbraco.Media(subItem.bestand);  

                if (file != null) {
                    <a href="@file.Url">Link</a>
                }
            }
        }
    }
}

I got the following error: 'Umbraco.Web.Models.PublishedContentBase' does not contain a definition for 'bestand' For the content in my <p> tag I solved it by using @Umbraco.Field but how to solve this for the Media Picker?

I noticed the Media Picker used is the Legacy Media Picker with the alias Umbraco.MediaPicker.

I don't have the possibility to upgrade this version of Umbraco.

I hope someone can help me out.

How to edit a footer notice ??

$
0
0

How can I edit this footer notice ??(see the pic below) It's not in the "footer" register card. There you can create footer links and footer content. And if it's in the template how do I get there?

enter image description here

Thanks for your help!

Async Methods TreeController

$
0
0

I'm need to call an async method which calls an external API inorder to obtain the data for tree.

TreeController requires the following method

protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)

How do I get around the method is synchronous return type?

SMS provider

$
0
0

Is there any ability to extend sender provider or use another one? For example SMS.

SEOChecker Sitemap

$
0
0

Hi,

I'm trying to use the seochecker site map. From some reason, I get a 404 page not found when I try to browse to the sitemap.

any thoughts?


Umbraco tags filter out multiple tags that lead to the same page

$
0
0

Hi all,

So I have my tags up and running for my site and have multiple tags that lead to the same page.

Example: a project page that talks about a headphone amplifier has the tags "OTL, headphone amplifier, tubes, 12AU7-6CG7, ..." listed as tags.

URL: https://www.don-zalmrol.be/projects/headphone-amplifier/

My tag filter works and displays the project under it's tag without displaying any other tag. So now I wish create a "tag" or fixed href to show "all tags".

Tag page URL : https://www.don-zalmrol.be/tags?tag=12AU7-6CG7

In a way this works, but it displays the project multiple times because of the multiple tags in my projects.

So now I am looking for a way to only display 1 project even if it has more then 1 tag.

You can see this yourself if you go to the all tags page I created: https://www.don-zalmrol.be/tags?tag=all

You will see everything displayed nicely, but the project(s) appear multiple times because it has more then 1 tag...

Any ideas or tips?

Thx!

Models Builder custom property not defined in view file

$
0
0

Hi,

I have a models builder class that I have extended to include a filter class which compiles and is accessible within my controller.

However when I go to the page I get :

CS1061: 'RenderModel<ArticleListing>' does not contain a definition for 'Filters' and no extension method 'Filters' 
accepting a first argument of type 'RenderModel<ArticleListing>' could be found (are you missing a using directive or an assembly reference?)

Visual studio also tells me this only in the view

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<Umbraco.Web.PublishedContentModels.ArticleListing>


@using (Html.BeginUmbracoForm<ArticleListingController>("FilterArticles", null, new { @class = "listing-form", data_api = Url.SurfaceAction<ArticleListingController>("PagedArticles") }, FormMethod.Post))
{
    @Html.DropDownListFor(m => m.Filters.FilterDate, Model.Filters.FilterDates)
    @Html.HiddenFor(m => m.Filters.ItemsPerPage)
    @Html.HiddenFor(m => m.Filters.OrderAscending)
}

@Html.Partial("PagedArticles", Model.Results)

Partial class definition:

namespace Umbraco.Web.PublishedContentModels
{
    public partial class ArticleListing 
    {
        public ArticleListingFilters Filters { get; set; }

        public Page<IPublishedContent> Results { get; set; }
    }
}

Thanks

Matt

Umbraco Instal, publish, database etc.

$
0
0

Hello, I am new to umbraco and i have some questions... What is the best and easiest way to instal umbraco? Should i install umbraco every time when i want to create new project and do i need database for every umbraco project even if it will be only static website? When i finish my project how can i upload it on shared server, visual studio? If yes, do i have some other options, what is the best way to do that...

I have tried DNN CMS and now i want to try umbraco so i can decide which one is better for me or maybe i can use both.

So if someone can tell me which one is better for fast static websites and which one is better for custom applications.

I have read some posts and watched some videos but more i read i have bigger mess in my head.

Send title and description in email

$
0
0

I noticed Umbraco Forms has an answer type of title and description. Is it possible to include the content of this type in the e-mail? It currently only displays the label, not the content.

Pushing content clears out any value in Umbraco.DropDown.Flexible

$
0
0

I have doc type set up and within those I make use of the dropdown fields (Umbraco.DropDown.Flexible)

Every time I push content from one environment to another, the dropdown is being reset the default value (blank).

As far as I can see, everything else is pushed with no issue what so ever.

Is there any reason for this?

UmbracoDomain does't works on localhost

$
0
0

Hello.

I trying to implement my custom IContentFinder to handle 404 errors like in this article but it depends of UmbracoDomain property of PublishedContentRequest.

But it always return null when I run sollution on localhost.

Here is my code:

 public bool TryFindContent(PublishedContentRequest contentRequest)
 {
      var domain = contentRequest.UmbracoDomain; // Always null =(
     // some other code...
}

How to make it work? Or alternative?

Send Newsletter Studio emails to addresses in custom member properties

$
0
0

Hi Markus

Thank you much for your help so far, I think we about have everything working well, but we hit a bit of a snag.

Here is the scenario:

For our mailing lists, we are using Member Groups. The Member Groups are created based on member properties that indicate what newsletters they are subscribed to. Currently, when those newsletters are sent, they are sent to the primary member email address.

That is all working well. However, they also have an option to setup a custom email address for each newsletter; so we somehow need to use the custom email member property instead of the member default.

Do you think this is possible? I'm guessing this is where custom data fields would come in, or is there a way to create custom mailing lists from member properties directly?

thank you

Shawn


Responsive Macro for video embed code

$
0
0

I'm using a textbox parameter to drop in embedCode:

but it just displays on the page and not in the source where I would like it.

Partial Macro:

@inherits Umbraco.Web.Macros.PartialViewMacroPage

@Model.MacroParameters["embedCode"]

Is there a way to insert parameter into source? So I get this:

Thanks for any suggestions. -ian

Umbarco server requirements

$
0
0

Can anyone tell me what are the server requirements for hosting..

We have Windows server 2008, and do not want to upgrade to Windows 2012.

Will version 7 install on Windows server 2008?

Plumber - workflow in Umbraco not working

$
0
0

Hi ,,

2 days ago i will apply & test all the functionality. after next day plumber - workflow in umbraco pluging not working. i am all setting check. its ok, but i will add new record time not asking "Save & Publish Request" to asking for "Save & publish" directly button.

why are this issue to me. i dont know. Any other solution. pls replay to me.

Thanks.

URLs without query strings

$
0
0

I'm using Umbraco 7.10, and I've added a Tag Cloud to my blog. I've poured over the documentation and this forum trying to find how to create links that don't use ?t=tag for example, to the tagged content but I've only been able to find a few topics that seem to relate to what I need and I'm still unsure of the direction I need to go. I know that the tag feature in Articulate works like what I need but I already have everything I want on the site and would rather not have to use that entire package.

This works and the list of content displays on the tag page with a URL of mysite/tag/?t=umbraco for example

<ul class="list-inline">
        @foreach (TagModel tag in pTags)
        {
            <li><a href="/tag/?t=@tag.Text" >@tag.Text</a></li>
        }
    </ul>

but I would like the link to be

<a href="/tag/@tag.Text" >@tag.Text</a>

so that the URL is mysite/tag/umbraco for example and be able to display the correct content.

From what I can find I think this is about routing but I'm not sure exactly where to look in the source code to write this correctly.

If someone could point me in a very specific direction I would really appreciate it.

Finding unused media / where media is used

$
0
0

Hi I was just wondering if anyone had done some work on v7 about how to find any unused media and also where to find media is used? i.e. which pages etc?

Thanks

Viewing all 72689 articles
Browse latest View live


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