ActiveTopics https://our.umbraco.org Thu, 27 Jul 2017 14:34:18 +00:00 umbraco Latests topics from the forum on our.umbraco.org en Umbraco Courier Fails When Publishing any item with SQL Error: Invalid column name 'typeUniqueId' https://our.umbraco.org/forum/umbraco-courier/87142-umbraco-courier-fails-when-publishing-any-item-with-sql-error-invalid-column-name-typeuniqueid https://our.umbraco.org/forum/umbraco-courier/87142-umbraco-courier-fails-when-publishing-any-item-with-sql-error-invalid-column-name-typeuniqueid Umbraco version: 7.6.4 Courier: 3.1.3

Any attempts to publish content throws the following exception:

2017-07-27 09:07:44,374 [26] ERROR Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 26] An error occurred consuming task
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [a33f7a5c-da5b-4c69-a182-69b903857c38] from provider [d8e6ad83-e73a-11df-9492-0800200c9a66]. ---> NHibernate.Exceptions.GenericADOException: could not initialize a collection batch: [Umbraco.Courier.Persistence.V6.NHibernate.EntityClasses.UmbracoNode.ChildRelations#System.Object[]][SQL: SELECT childrelat0_.parentId as parentId2_, childrelat0_.id as id2_, childrelat0_.id as id125_1_, childrelat0_.comment as comment125_1_, childrelat0_.datetime as datetime125_1_, childrelat0_.parentId as parentId125_1_, childrelat0_.childId as childId125_1_, childrelat0_.relType as relType125_1_, umbracorel1_.id as id126_0_, umbracorel1_.alias as alias126_0_, umbracorel1_.childObjectType as childObj3_126_0_, umbracorel1_.dual as dual126_0_, umbracorel1_.name as name126_0_, umbracorel1_.parentObjectType as parentOb6_126_0_, umbracorel1_.typeUniqueId as typeUniq7_126_0_ FROM umbracoRelation childrelat0_ left outer join umbracoRelationType umbracorel1_ on childrelat0_.relType=umbracorel1_.id WHERE childrelat0_.parentId in (?, ?, ?, ?)] ---> System.Data.SqlClient.SqlException: Invalid column name 'typeUniqueId'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)
   at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session)
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
   at NHibernate.Loader.Loader.LoadCollectionBatch(ISessionImplementor session, Object[] ids, IType type)
   --- End of inner exception stack trace ---
   at NHibernate.Loader.Loader.LoadCollectionBatch(ISessionImplementor session, Object[] ids, IType type)
   at NHibernate.Event.Default.DefaultInitializeCollectionEventListener.OnInitializeCollection(InitializeCollectionEvent event)
   at NHibernate.Impl.SessionImpl.InitializeCollection(IPersistentCollection collection, Boolean writing)
   at NHibernate.Collection.AbstractPersistentCollection.Initialize(Boolean writing)
   at NHibernate.Collection.Generic.PersistentGenericSet`1.Iesi.Collections.Generic.ISet<T>.Union(ISet`1 a)
   at Umbraco.Courier.Persistence.V6.NHibernate.Helpers.RelationHelper.GetAllRelations(UmbracoNode node)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentItemPersister`1.CreateAndMapProperties(ItemIdentifier itemId, UmbracoNode source, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.DocumentItem.RetrieveItem(ItemIdentifier itemId)
   at Umbraco.Courier.Core.ItemCrud`1.RetrieveItem[T1](ItemIdentifier itemId)
   at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)
   --- End of inner exception stack trace ---
   at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)
   at Umbraco.Courier.ItemProviders.ContentItemProvider`2.PerformHandlePack(ItemIdentifier id)
   at Umbraco.Courier.ItemProviders.DocumentItemProvider.PerformHandlePack(ItemIdentifier id)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandlePack(ItemIdentifier id)
   at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id)
   at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId)
   at Umbraco.Courier.RepositoryProviders.Local.Hash(ItemIdentifier itemId)
   at Umbraco.Courier.RepositoryProviders.Webservices.Repository.GetHashes(String sessionKey, ItemIdentifier[] itemIds)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.EndGetHashes(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.GetHashes(ItemIdentifier[] itemIds)
   at Umbraco.Courier.Core.Packaging.RevisionPackaging.GetTargetHashes(IPackagingTarget2 target, IEnumerable`1 ids)
   at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch()
   at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package()
   at Umbraco.Courier.Core.Tasks.PackagingTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)
]]>
Keith Rowe Thu, 27 Jul 2017 14:17:54 +00:00
Umbraco 7.6.4 Visual Studio 2017 - Where to add custom code for Workflow, Models, Controllers https://our.umbraco.org/forum/umbraco-forms/87140-umbraco-764-visual-studio-2017-where-to-add-custom-code-for-workflow-models-controllers https://our.umbraco.org/forum/umbraco-forms/87140-umbraco-764-visual-studio-2017-where-to-add-custom-code-for-workflow-models-controllers I'm struggling to determine where to place my custom c# code under a Visual Studio 2017 umbraco 7.6.4 project for Workflow, Models, Controllers.

Local Environment:

  • Win7, IIS7.5, VS2017, Sql Server 2014.
  • Creating a new 'ASP.NET Web Application (.NET Framework) 4.5.2' as an empty Template - with no folder references for MVC or Web Forms.
  • Then I pull Umbraco from nuget Install-Package UmbracoCms -Version 7.6.4
  • Configure Umbraco to use a local Sql Server 2014 db with Integrated Authentication

Then I build / run and the site works fine.

Issues:

  1. I need to capture some sensitive data and would like to create a custom Umbraco Forms Workflow so I can encrypt the data and prevent it from being saved in default plain text manner. I can't figure out where I put my c# code so that the workflow becomes available in the workflow.
  2. I've also tried to add a custom model and custom controller to try to roll my own form but have received errors - either that the model or controller get created twice or have multiple routes (when I put in App_Code) or that the Model isn't found by the .cshtml file.

Starting Point in VS enter image description here enter image description here enter image description here

Any help would be appreciated!

]]>
Jay Walker Thu, 27 Jul 2017 13:25:02 +00:00
Image Cropper - going from 6.2.6 to 7.6.4 https://our.umbraco.org/forum/templates-partial-views-and-macros/87139-image-cropper-going-from-626-to-764 https://our.umbraco.org/forum/templates-partial-views-and-macros/87139-image-cropper-going-from-626-to-764 Had to recreate this thread...

Just started out with 7.x and Razor and am trying to figure out the logic... sigh! I'm trying to set up a simpel image slider using image cropper/media picker. Using Partial Views and Query builder for the first time, this is what i got:

@{
    var selection = Umbraco.TypedContent(1146).Children("slidebillede").Where(x => x.IsVisible()).OrderBy("CreateDate desc");
}

    <ul>
    @foreach(var item in selection){
    <li>
            @{
                if (item.HasValue("picFrontslide")){

                    var nodeId = item.Id;
                    var mediaItem = item.GetPropertyValue("picFrontslide");

                    if (mediaItem != null)
                    {
                        <img src="@nodeId" />
                        <img src="@mediaItem" />
                        <img src="@Umbraco.Content(nodeId).GetCropUrl("picFrontslide", "frontslide")" />
                    }
                }
            }
    </li>
    }
</ul>

This renders out

<ul>
    <li>
       <img src="1154" />
       <img src="1152" />
       <img src="1152?mode=pad&amp;rnd=131456337220000000" />

    </li>
    <li>
      <img src="1153" />
      <img src="1151" />
      <img src="1151?mode=pad&amp;rnd=131456337240000000" />
    </li>
</ul>

So... I get the page id, the id of the selected media (value of "picFrontslide") and the selected media including what I assume is crop data?!... Since this is not a solution I looked at what Leopold wrote in a former post regarding the image has to be parsed from the media archive before adding crop.

var mediaGet = Umbraco.TypedMedia(Model.Content.GetPropertyValue<int>("picFrontslide"));
if (mediaGet != null)
 {
  <img src="@Url.GetCropUrl(mediaGet, "frontslide")" />                    
 }

This results in nothing...

Been searching through the forum and now I'm just more confused. Can anyone help me out here and maybe explain how this works now?

Cheers

]]>
Bent Holz Thu, 27 Jul 2017 12:43:17 +00:00
Ditto, Nested Content and polymorphism https://our.umbraco.org/projects/developer-tools/ditto/ditto-feedback/87137-ditto-nested-content-and-polymorphism https://our.umbraco.org/projects/developer-tools/ditto/ditto-feedback/87137-ditto-nested-content-and-polymorphism Any examples on how to use Ditto to map Nested Content with different documunettypes into a list of a commen interface?

Example:

public class MyViewModel{
  public IEnumerable<IWidgit> Widigts {get;set;}
}

public interface IWidget {
  public string CommenProperty {get;set;}
}

public class WidgetA : IWidgit {
  public string PropertyA {get;set;}
}

public class WidgetB : IWidgit {
  public string PropertyB {get;set;}
}
]]>
Morten Rasch Thu, 27 Jul 2017 11:10:51 +00:00
Twitter ID Error https://our.umbraco.org/projects/website-utilities/skybrudsocial-for-umbraco-7/general-discussion/87136-twitter-id-error https://our.umbraco.org/projects/website-utilities/skybrudsocial-for-umbraco-7/general-discussion/87136-twitter-id-error Hi,

I'm having some issues with the Twitter ID, when I authorisze the twitter account in Content I get through the authentication screen, it lets me login and authorisze, but when I get taken back to the content page the user ID is wrong.

It was working with the old twitter account, however once I got it over to the new once it won't work at all, is there anything in the twitter settings that I need to change?

Thanks, Lucy.

]]>
Lucy Foster Thu, 27 Jul 2017 10:43:19 +00:00
Upgrading From 7.2.8 to 7.6.4 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87135-upgrading-from-728-to-764 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87135-upgrading-from-728-to-764 If I'm upgrading manually from 7.2.8 to 7.6.4, do I have to follow the version specific steps for each version in between? I noticed there are no version specific steps for 7.6.4, so I don't want to miss anything when doing this.

]]>
Adam Colbourne Thu, 27 Jul 2017 10:22:36 +00:00
DB Installation woes - 4.8 -> 7.6.4 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87134-installation-woes https://our.umbraco.org/forum/using-umbraco-and-getting-started/87134-installation-woes Trying out the new upgrade functionality on an old 4.8 install -> 7.6.4, and run into a problem:

The database failed to upgrade. ERROR: The database configuration failed with the following message: The index 'IXumbracoNodeUniqueID' is dependent on column 'uniqueID'. ALTER TABLE ALTER COLUMN uniqueID failed because one or more objects access this column. Please check log file for additional information (can be found in '/AppData/Logs/UmbracoTraceLog.txt')

The SQL it is running is:

 2017-07-27 10:39:47,444 [P8764/D14/T22] INFO  Umbraco.Core.Persistence.Migrations.MigrationRunner - Executing sql statement 142: ALTER TABLE [umbracoNode] ALTER COLUMN [uniqueID] UniqueIdentifier NOT NULL

It is incredibly infuriating because it has done loads of the upgrade perfectly, and the column is already a uniqueidentifier so it shouldn't need to run this code anyway!

I don't understand why the migration code earlier creates the index, then tries to modify the column, failing on the index it has just added?

Is there a fix?

P.S. There seems to be a lot of threads about this Unique ID error, with the advice to upgrade to 7.2.3 first; as the new improved upgrader was only put into 7.3, this doesn't seem like it will work here.

]]>
Rob Watkins Thu, 27 Jul 2017 09:45:48 +00:00
Content Picker URL output in loop https://our.umbraco.org/forum/templates-partial-views-and-macros/87133-content-picker-url-output-in-loop https://our.umbraco.org/forum/templates-partial-views-and-macros/87133-content-picker-url-output-in-loop Morning folks,

I'm having a bit of an issue trying to get the url of a content picker datatype to output within a loop - the old dynamic version in 7.5 doesn't work anymore in 7.6:

@{
var selection = Model.Content.Site().FirstChild("SlideshowRepository").Children<Slide>()

                .Where(x => x.IsVisible());
}
 <div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
    @foreach (var item in selection)
    {
        <div class="item @item.IsFirst("active")">
            <div class="fill" style="background: url(@item.BackgroundImage.Url) center bottom / cover no-repeat scroll;"></div>

                <div class="carousel-caption carousel-caption-centre">
                    <div class="row">
                    <div class="col-sm-5">
                    <h2>@Html.Raw(item.GetPropertyValue("Title"))</h2>
                    <p>@item.IntroText</p>

                    // THIS IS THE OLD BIT THAT ISN'T WORKING

                    @if (item.HasValue("SlideLink"))
                    {
                        <p><a class="btn btn-lg btn-primary" href="@Umbraco.Content(item.SlideLink).Url" role="button">Learn More</a></p>


                            }

                    </div>

                    <div class="col-sm-7">

                    @if (item.HasValue("Image"))
                    {
                        <img src="@item.Image.Url" class="img-responsive slideshow">
                    }

                    </div>
                    </div>

               </div>

            </div>
        }
</div>

<div class="container">
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>

This is probably a really simple thing to do - but i just can't figure it out.

Thanks Darren

]]>
Darren Wilson Thu, 27 Jul 2017 09:36:03 +00:00
Upgrade from 7.2.8 to 7.3 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87132-upgrade-from-728-to-73 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87132-upgrade-from-728-to-73 Hi all,

I'm trying to upgrade from 7.2.8 to 7.3 with the intentions to get the website working in 7.4/7.5 minimum.

Obviously i can upgrade through nuget using 'Update-Package UmbracoCms'

My questions is does this try to upgrade to the latest version of will this upgrade to a specific version each time?

Thanks, Lewis

]]>
Lewis Smith Thu, 27 Jul 2017 08:22:55 +00:00
How to incorporate javascript with umbraco https://our.umbraco.org/forum/using-umbraco-and-getting-started/87131-how-to-incorporate-javascript-with-umbraco https://our.umbraco.org/forum/using-umbraco-and-getting-started/87131-how-to-incorporate-javascript-with-umbraco Hi,

How to call umbraco child page content using javascript.

]]>
Anumod Thu, 27 Jul 2017 07:57:31 +00:00
Future Publish date 12 days behind. https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/87130-future-public-date-12-days-behind https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/87130-future-public-date-12-days-behind Good day,

All I have a problem I am using Umbraco 6.2.2 and since I have upgraded from HTTP to https my future publish is 12 days 2 hours and 15 min late on publishing content. Is there a time in Umbraco that I can set or what would cause this issue?

Kind Regards

]]>
Christo Thu, 27 Jul 2017 07:42:01 +00:00
upgrading from 7.2.5 to 7.6.1 on a shared hosted site with Arvixe hosting https://our.umbraco.org/forum/using-umbraco-and-getting-started/87129-upgrading-from-725-to-761-on-a-shared-hosted-site-with-arvixe-hosting https://our.umbraco.org/forum/using-umbraco-and-getting-started/87129-upgrading-from-725-to-761-on-a-shared-hosted-site-with-arvixe-hosting Well I tried to get Arvixe to update their copy of Umbraco to the latest without any luck. I have to do it myself. Can anyone point me to some instructions on how to go about doing this? I need to be on a new version to use Articulate.

Thanks Kip....

]]>
Kip Carter Thu, 27 Jul 2017 04:09:22 +00:00
Show/Hide Marker Icons based on value https://our.umbraco.org/projects/backoffice-extensions/terratype/bugs-questions/87128-showhide-marker-icons-based-on-value https://our.umbraco.org/projects/backoffice-extensions/terratype/bugs-questions/87128-showhide-marker-icons-based-on-value Hi, I love TerraType! It's fantastic and doing everything I need pretty much.

I'm able to get a map to display many icons (in my instance, based on numerous nodes that each have their own map/location). Is there a way for the main map displaying many to filter icons/markers by a value (for instance, each of my nodes has a category, when displaying many icons, is there a way to click on a link to only show a certain category?)

Example basic functionality http://www.pittss.lv/jquery/gomap/examples/marker_showhide.php

Thanks in advance for any instruction on if this is possible with Terratype.

]]>
Travis Schoening Thu, 27 Jul 2017 03:59:13 +00:00
Hi Rorum! https://our.umbraco.org/forum/using-umbraco-and-getting-started/87127-hi-rorum https://our.umbraco.org/forum/using-umbraco-and-getting-started/87127-hi-rorum I'm newbie ,my name john , nice to miss all forum

]]>
johncena123 Thu, 27 Jul 2017 03:15:38 +00:00
Import unpublishing pages https://our.umbraco.org/projects/developer-tools/cmsimport/bugs/87126-import-unpublishing-pages https://our.umbraco.org/projects/developer-tools/cmsimport/bugs/87126-import-unpublishing-pages Umbraco: v7.4.3 CmsImport: v3.7.2

I run CmsImport to add or update accounts. Prior to running the import, the front-end page that shows the account data is fine. The item on the back-end is showing published.

After running the import, if I go to one of the account pages that was updated, I get an error on the front-end. Looks as if the page isn't published. But when I go to the back-end to the account and hit publish then go back to the page, it loads fine.

The edit date/time of the account shows it was edited when I ran the import. The import is also set to publish.

I was hoping this was an issue with v3.1, but still seem to get the issue with v3.7. This issue only seems to happen on our production box. Does not appear to happen on staging even if it uses the same source of data production uses.

Here is the log if you think it might be helpful. If you like, I can email the whole file. Only info I changed was the name of the account. 2017-07-26 16:40:24,939 [P4288/D2/T38] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'account 1' with Id '4360' has been published. 2017-07-26 16:40:25,485 [P4288/D2/T38] INFO Umbraco.Core.Services.ContentService - Call was made to ContentService.Publish, use PublishWithStatus instead since that method will provide more detailed information on the outcome 2017-07-26 16:40:26,421 [P4288/D2/T38] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'account 2' with Id '28393' has been published. 2017-07-26 16:40:26,889 [P4288/D2/T38] INFO Umbraco.Core.Services.ContentService - Call was made to ContentService.Publish, use PublishWithStatus instead since that method will provide more detailed information on the outcome 2017-07-26 16:40:27,825 [P4288/D2/T38] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'account 3' with Id '29284' has been published. 2017-07-26 16:40:28,308 [P4288/D2/T38] INFO Umbraco.Core.Services.ContentService - Call was made to ContentService.Publish, use PublishWithStatus instead since that method will provide more detailed information on the outcome 2017-07-26 16:40:28,839 [P4288/D2/T38] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'account 4' with Id '28336' has been published. 2017-07-26 16:40:29,307 [P4288/D2/T38] INFO Umbraco.Core.Services.ContentService - Call was made to ContentService.Publish, use PublishWithStatus instead since that method will provide more detailed information on the outcome 2017-07-26 16:40:29,821 [P4288/D2/T38] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'account 5' with Id '4602' has been published. 2017-07-26 16:40:30,757 [P4288/D2/T38] INFO Umbraco.Core.Services.ContentService - Call was made to ContentService.Publish, use PublishWithStatus instead since that method will provide more detailed information on the outcome 2017-07-26 16:40:30,773 [P4288/D2/T38] INFO CMSImport.Extensions.Providers.ImportProviders.ImportProvider - CMSImport:Import task Production - Corporate Accounts finished, Records in datasource: 5, Records Added 0, Records Updated 5, Records skipped 0, Records deleted 0, Errors 0, duration 00:00:12 2017-07-26 16:40:34,611 [P4288/D2/T29] INFO umbraco.content - Save Xml to file...

]]>
Charles Wahl Thu, 27 Jul 2017 00:35:17 +00:00
Our.Shield Media Protection https://our.umbraco.org/projects/backoffice-extensions/ourshield/bugs-questions/87125-ourshield-media-protection https://our.umbraco.org/projects/backoffice-extensions/ourshield/bugs-questions/87125-ourshield-media-protection Does this only allow authenticated users to access the media, or can it also block based on the referrer url of the request? Meaning a page hosted on the same server is doing the request for the image? (blocking hotlinking without requiring authentication)

]]>
John Bergman Wed, 26 Jul 2017 21:56:34 +00:00
FALM with older version of .net https://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping/bugs-reports/87124-falm-with-older-version-of-net https://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping/bugs-reports/87124-falm-with-older-version-of-net Hi, firstly thank you for creating this package i have used it for a long time and having it installed is a no brainer ... Well done :)

I am using the latest version of Umbraco, with the latest version of FALM. However our build environments are only running .net 4.5.2 which means the build silently fails as FALM is using .net 4.6.1. while this does work on a standard Umbraco installation, our installation uses AutoFac as the IoC and as soon as we wire up the Assembly into AutoFac the problem arises.

Would appreciate your help in working out how this can be resolved

]]>
Asif Malik Wed, 26 Jul 2017 16:54:48 +00:00
more robust blog add on https://our.umbraco.org/forum/templates-partial-views-and-macros/87123-more-robust-blog-add-on https://our.umbraco.org/forum/templates-partial-views-and-macros/87123-more-robust-blog-add-on I'm still a novice editing Umbraco directly but since setting up my first site and adding several blog posts to it, I am convinced that there must be a better extension/add on which would provide a more robust blog section to my site.

Can some of you that are blog aware, take a peek at my blog section and give me some recommendations on what I can install to give this some more capabilities like comments, and better aesthetics.

The site is at http://kip-c.com click on the blog section and let me know what my next step might be.

I'm hoping to improve my skills with Umbraco but slow going!

regards, Kip

]]>
Kip Carter Wed, 26 Jul 2017 16:27:15 +00:00
Form submission, Goto Page A or Page B subject to answer https://our.umbraco.org/forum/umbraco-forms/87122-form-submission-goto-page-a-or-page-b-subject-to-answer https://our.umbraco.org/forum/umbraco-forms/87122-form-submission-goto-page-a-or-page-b-subject-to-answer Hi All,

I am struggling to use Umbraco Forms, despite the fact the basic concept of a form is easy. I'm hoping someone here can shed some light on what I might be doing wrong, or missing in my understanding.

Out of the box, Umbraco Forms allows you to select a page to redirect to upon a successful submission.

What I would like to achieve is redirect to Page A if a checkbox is set, however if the checkbox isn't set redirect to Page B.

I have a feeling I need to use a Custom Workflow but I am feeling exceptionally stuck with how to go about implementing this.

Has anyone tried to do this in the past and can give me some pointers that would be great.

Thanks,

Nik

]]>
Nik Wed, 26 Jul 2017 15:19:05 +00:00
inherits' keyword is not allowed when a 'model' keyword is used. https://our.umbraco.org/forum/using-umbraco-and-getting-started/87118-inherits-keyword-is-not-allowed-when-a-model-keyword-is-used https://our.umbraco.org/forum/using-umbraco-and-getting-started/87118-inherits-keyword-is-not-allowed-when-a-model-keyword-is-used Hi, how do I include the following keywords within my view page,

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @model Models.Employees

Error Parser Error Message: The 'inherits' keyword is not allowed when a 'model' keyword is used.

code below;

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @model Models.Employees

@{ Layout = "WebBase.cshtml"; }

@{ Html.RenderAction("RenderTitleControls", "SiteLayout");} @CurrentPage.GetGridHtml("contentGrid", "bootstrap3")

@{ Html.RenderAction("Create", "Applicants"); }

]]>
Tom Bruce Wed, 26 Jul 2017 13:10:32 +00:00
How to Render my Nested Content Widget Template on my Page Template https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/87112-how-to-render-my-nested-content-widget-template-on-my-page-template https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/87112-how-to-render-my-nested-content-widget-template-on-my-page-template How do I add the template for my widget to the template for my page? I'm sorry if I'm not using the correct terminology here. I'll provide the code I'm using and maybe that'll clarify the trouble i'm having...

The DocType for my widget is called "wLefty", the DocType for my page is called "Demo".

The template for my Nested Content widget is called wLefty and here is that code...

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.WLefty>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
    Layout = null;
    var item = Model.GetPropertyValue<IPublishedContent>("wLefty")
}

<div class="clearfix"></div>  
<div class="row-fluid clearfix noPadding rowMargin">
    <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-lg-8 col-lg-offset-2 nopadding lefty-container">
        <div class="col-xs-12 col-sm-10 col-sm-offset-2 nopadding lefty-background">
            <img src="@Umbraco.Field(item, "wLeftyImage")" class="xs-img-responsive" />
        </div>
       <div class="col-xs-10 col-xs-offset-1 col-sm-5 col-sm-offset-0 col-lg-4 lefty-page">
            @if (string.IsNullOrWhiteSpace(@Umbraco.Field(item, "wLeftyCursive")) == false){
                <h3 class="handwritten">@Umbraco.Field(item, "wLeftyCursive")</h3>
            }
            <h2>@Umbraco.Field("wLeftyTitle")</h2>
            <div class="BGhr-container"><div class="BGhr">&nbsp;</div></div>
            @Umbraco.Field(item, "wLeftyCopy")
            @if (string.IsNullOrWhiteSpace(@Umbraco.Field(item, "wLeftyButtonLink")) == false){
                <div class="abtnContainer center-block"><a href="@Umbraco.Field(item, "wLeftyButtonLink")" class="aBtn allcaps">Button<i class="fa fa-chevron-right" aria-hidden="true"></i></a></div>
            }
        </div>
    </div>
</div>

The template for my page is called Demo (this is where I'm unclear how to add the widget to my page template)...

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
    Layout = "Page.cshtml";
}

@* the fun starts here *@
<h1>LEFTY</h1>
@* How do I add my wLefty widget here? *@

Update...I tried this, but nothing go rendered:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
    Layout = "Page.cshtml";
}

@* the fun starts here *@
<h1>LEFTY</h1>
@Umbraco.RenderTemplate(1064)
]]>
bh Wed, 26 Jul 2017 11:54:27 +00:00
Uploading Image from Image Cropper in Custom Section https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/87110-image-cropper-as-property-in-custom-section https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/87110-image-cropper-as-property-in-custom-section Hi,

I've attempted to adapt option 3 to be have a Image cropper in a custom section

http://www.enkelmedia.se/blogg/2013/12/4/umbraco-7-use-the-rich-text-editor-tinymce-in-a-custom-section.aspx

I'm now stuck at how you go about transfering the file to the server through a save function.

I have a feeling the fileManager service exposes file details on the controller but not sure how I use this to upload the file.

]]>
John Churchley Wed, 26 Jul 2017 11:14:37 +00:00
Examine find results where 2 out of 3 fields match https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/87107-examine-find-results-where-2-out-of-3-fields-match https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/87107-examine-find-results-where-2-out-of-3-fields-match I want to search the Umbraco Members to find records that match on at least 2 out of 3 fields.

For example, if I have FieldA, FieldB and FieldC - I want to create a search that supplies values for all 3 fields (but the value may be "") and I want to find records where at least 2 of those fields match the provided values.

Is this something that Examine can do natively, or do I need to do an "Or" search and find the "2 out of 3" matches myself?

]]>
Gordon Saxby Wed, 26 Jul 2017 10:05:42 +00:00
Umbraco server load time with azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/87105-umbraco-server-load-time-with-azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/87105-umbraco-server-load-time-with-azure Hey guys.

We've recently gone live with our new site and I've been working on some performance enhancements. The only issue i have remaining is that there's a considerable wait time for a response from Azure.

NET Panel

All other assets are either cached or lazy loaded in.

I know its not cold starting, theres never been fewer than 100 users online. Averages 350 at any given time and can spike above 1000 depending on articles being released.

The set up is:

  • Azure Cloud
  • Load balanced across 4 servers
  • Azure blob CDN
  • Seperated database

Some optimisations made:

  • Redis Output Caching
  • log4net set to errors only (Hard lesson, filling 5gb of logs within an hour)
  • cache control for css/js
  • macro's cached where needed
  • "/umbraco_client", "/umbraco/images" and "/umbraco/js" cached through IIS

Those lists could probably go on a bit, but thats what i got from the top of my head.

I'd just like to see a reduction in the server response!

Thanks for input in advance.

]]>
Dave Pearcey Wed, 26 Jul 2017 09:10:07 +00:00
sudden increase in umbraco file size https://our.umbraco.org/forum/using-umbraco-and-getting-started/87102-sudden-increase-in-umbraco-file-size https://our.umbraco.org/forum/using-umbraco-and-getting-started/87102-sudden-increase-in-umbraco-file-size We regularly take backup of umbraco deployed on production server. We noticed that there is sudden increase in folder size of backup which was due to media folder.

But we checked and confirmed that changes we have made are alright and there seems no issue.

Then why this is happening from last two times we took backup? any idea on this?

]]>
hrg Wed, 26 Jul 2017 05:26:12 +00:00
Error adding directive https://our.umbraco.org/projects/backoffice-extensions/formulate/formulate-questions/87101-error-adding-directive https://our.umbraco.org/projects/backoffice-extensions/formulate/formulate-questions/87101-error-adding-directive I'm attempting to create a new custom formulate field and getting an error when I try rendering on the screen with extra non-default functionality.

I've made the IFormFieldType that definitely gets hit when I debug with a breakpoint in Visual Studio, and my field is also showing up in the Umbraco back office. I'm able to put that field into a form and when I do nothing else, I can see a text field rendered on the front end, so up to that point, it's working.

public class MultiTextField : IFormFieldType
{
    public string Directive => "formulate-multitext-field";
    public string TypeLabel => "MultiText";
    public string Icon => "icon-documents";
    public Guid TypeId => new Guid("d8ff5b99-f049-4608-87a2-b72293cce3ff");
    public object DeserializeConfiguration(string configuration)
    {
        return null;
    }

    public string FormatValue(IEnumerable<string> values, FieldPresentationFormats format, object configuration)
    {
        throw new NotImplementedException();
    }
}

Back end:

Formulate back end

Front end:

Formulate front end

The problem is when I want to add a directive to it with app.directive in my form rendering cshtml file (I'm using the default from the formulate.rocks documentation page) in order to make extra functionality on the front end, I'm getting an error.

Adding a controller gives no error:

    app.controller("MultiTextField", FormulateMultiFieldController);

However adding a directive does:

    app.directive("MultiTextField", function () {
        return {
            restrict: "AEC",
            replace: true,
            // Note that it's "templateUrl" rather than "template".
            templateUrl: "/Scripts/BDL_Scripts/MultiTextField.html",
            controller: FormulateMultiFieldController,
            scope: {
                configuration: "="
            }
        };
    });

The error I see in the console is:

angular.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.8/$injector/modulerr?p0=app&p1=Error%3A%20%ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.8%2Fangular.min.js%3A20%3A274)
at angular.js:38
at angular.js:4458
at n (angular.js:340)
at g (angular.js:4419)
at eb (angular.js:4344)
at c (angular.js:1676)
at yc (angular.js:1697)
at Zd (angular.js:1591)
at HTMLDocument.<anonymous> (angular.js:29013)
at j (jquery.js:3099)

I know I'm probably missing something simple, but I'm a little confused by the documentation so I don't know what it might be.

]]>
John Daugherty Wed, 26 Jul 2017 01:16:43 +00:00
"Title is longer than 60 characters..." 7.6 Error https://our.umbraco.org/projects/backoffice-extensions/rankone-seo-toolkit/issues-and-suggestions/87099-title-is-long-than-60-characters-76-error https://our.umbraco.org/projects/backoffice-extensions/rankone-seo-toolkit/issues-and-suggestions/87099-title-is-long-than-60-characters-76-error On every page using the dashboard, it says that my page title is too long, even when the title is only 10 characters long.

This must be a glitch in the system not counting properly.

enter image description here

]]>
Rylan Tue, 25 Jul 2017 22:39:52 +00:00
Forum package on Umbraco 7 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87096-forum-package-on-umbraco-7 https://our.umbraco.org/forum/using-umbraco-and-getting-started/87096-forum-package-on-umbraco-7 Hi all, is there a package for a forum for Umbraco 7? I only found this one https://our.umbraco.org/projects/collaboration/dialogue/ but looks a bit stale as development (last release 2014).

Any other package for adding a simple forum solution to umbraco?

Thx

]]>
Simone Chiaretta Tue, 25 Jul 2017 15:49:45 +00:00
Examine PDF with Media Protect problem https://our.umbraco.org/projects/website-utilities/media-protect/mediaprotect-general/87091-examine-pdf-with-media-protect-problem https://our.umbraco.org/projects/website-utilities/media-protect/mediaprotect-general/87091-examine-pdf-with-media-protect-problem Hi Richard,

I'm having a problem, possibly related to the IsProtected issue, and I'm hoping you can help.

I've just installed the package via nuget and I'm trying to use it with ExaminePDF to add allowed groups into the index. The problem is, whenever my code hits IsProtected it just sort of kills the examine index without a real error.

My Code:

void ExamineEvents_GatheringNodeData(object sender, IndexingNodeDataEventArgs e)
{
    if (e.IndexType == "media")
    {
        AddMediaProperties(e);
    }
    else
    {
        AddToContentsField(e);
    }

}
private void AddMediaProperties(IndexingNodeDataEventArgs e)
{          
    int nodeId = int.Parse(e.Node.Attribute("id").Value);
    string path = e.Node.Attribute("path").Value;
    bool protectedTest = Library.IsProtected(nodeId, path);
    e.Fields.Add("_Test", "true");
}

As soon as it's assigned protectedTest once it dies, and my index contains no results. If I comment out that line it works and _Test is added to the index.

I get the same result if I use IsProtected in an if statement. Using breakpoints I can see it gets to the If then stops - if won't go into the if or the else clause.

All help welcome. Thanks in advance

*EDIT: I did some more testing and I'm getting A first chance exception of type 'System.ArgumentNullException' occurred in System.Web.dll

]]>
M Tue, 25 Jul 2017 13:48:56 +00:00
Can't use UmbracoTemplatePage with CalendarOverviewModel ? https://our.umbraco.org/projects/backoffice-extensions/eventcalendar/bugs-v3plus/87083-cant-use-umbracotemplatepage-with-calendaroverviewmodel https://our.umbraco.org/projects/backoffice-extensions/eventcalendar/bugs-v3plus/87083-cant-use-umbracotemplatepage-with-calendaroverviewmodel David,

I've hit another issue I could do with some assistance on.

When trying to integrate the calendar into my site I noticed that the top of the view page uses:

@inherits Umbraco.Web.Mvc.UmbracoViewPage<CalendarOverviewModel>

Yet in version 2, I was happily using:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage

The latter allowed me to access all the properties of the page and also integrate in fields from my master template. This is no longer the case, and removing @inherits Umbraco.Web.Mvc.UmbracoTemplatePage prevents me from accessing things like @CurrentPage. Ok I thought, I'll try and not use @inherits Umbraco.Web.Mvc.UmbracoTemplatePage on my calendar pages, but removing it and commenting out any @CurrentPage references leaves me with an error of:

Cannot bind source type Umbraco.Web.Models.RenderModel to model type EventCalendar.Umbraco.Model.CalendarOverviewModel.

Is there a simple way I can integrate the calendar into a page with a template ?

]]>
Paul Tue, 25 Jul 2017 08:20:26 +00:00
Looking for Umbraco jobs https://our.umbraco.org/forum/using-umbraco-and-getting-started/87075-looking-for-umbraco-jobs https://our.umbraco.org/forum/using-umbraco-and-getting-started/87075-looking-for-umbraco-jobs Hello Everyone,

I am looking for umbraco developer jobs, can you please let me know if you/your organization have any openings, Thank you so much in advance.

]]>
chinny Mon, 24 Jul 2017 20:43:41 +00:00
Help on Terratype https://our.umbraco.org/projects/backoffice-extensions/terratype/bugs-questions/87060-help-on-terratype https://our.umbraco.org/projects/backoffice-extensions/terratype/bugs-questions/87060-help-on-terratype Hello,

I am new to Umbraco, using version 7.6.1 and try to implement a map using Terratype to display a Google maps Routeplanner on our contact page.

Installation, data type and document type were no problem; the template is.

So far my template looks like this

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;
@using Terratype;
@using Newtonsoft;
@{  Layout = "SiteLayout.cshtml"; }

[...]

@Html.Terratype("goHere")

Using this I get an ASP server error with the Exception Details: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.

First lines of StactTrace: [JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.] Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) +271 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) +82 Newtonsoft.Json.Linq.JObject.Parse(String json) +7 Terratype.TerratypeConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +304

What am I doing wrong here?

Regards Anja

]]>
Anja Mon, 24 Jul 2017 13:25:34 +00:00
Moriyama Azure Search dependency issue https://our.umbraco.org/projects/developer-tools/moriyama-azure-search/questions/87049-moriyama-azure-search-dependency-issue https://our.umbraco.org/projects/developer-tools/moriyama-azure-search/questions/87049-moriyama-azure-search-dependency-issue Is there a more recent update to the NewtonSoftJson dependency? I've updated my web config file to version 9 after installing the Azure search package, but Umbraco is still broken. I'm new to Umbraco so perhaps there is something that I am missing.

Thanks in advance for any help.

(found a solution to my problem)

]]>
Tom Sun, 23 Jul 2017 23:24:02 +00:00
Umbraco from scratch https://our.umbraco.org/forum/using-umbraco-and-getting-started/87044-umbraco-from-scratch https://our.umbraco.org/forum/using-umbraco-and-getting-started/87044-umbraco-from-scratch Hey so dumb question here i just started learning about umbraco and wanted to watch some tutorials on umbraco.tv but when i got to the 4th video "Creating our First Template" the guy creates a homepage template and copies pastes some html from some static homepage files only its not said where the hell he actually gets those files in the first place. Does any one have any idea where i could get them?

Link to video: http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/creating-a-site-from-scratch/creating-our-first-template/

Time: 03:07

P.S Sorry for the bad english

]]>
Gedas Sat, 22 Jul 2017 11:23:36 +00:00
Slide problem after upgrading till 7.6.4 https://our.umbraco.org/forum/contributing-to-umbraco-cms/86991-slide-problem-after-upgrading-till-764 https://our.umbraco.org/forum/contributing-to-umbraco-cms/86991-slide-problem-after-upgrading-till-764 Hello

Umbraco v7.5.11 is uppgraded to 7.6.4 is successfully

the slide and carousel things worked fine with previous version but now getting null reference!

the error is stuck here

var imageUrl = !String.IsNullOrEmpty(slide.Url) ? slide.Url : Umbraco.TypedMedia(mediaId).Url;

The media picker has a problem I guess.

anyone tried this before in the newer version?

please help:)

]]>
Nisreen Al-Masri Thu, 20 Jul 2017 09:27:39 +00:00
SQL Transaction has completed exception https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/86987-sql-transaction-has-completed-exception https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/86987-sql-transaction-has-completed-exception Just wondering if anyone has seen this exception, and might know what the cause is? Any pointers would be GREATLY appreciated; it feels like a bug in Umbraco (I have already opened one), but since it doesn't appear to be on the radar yet for a fix, I need to see if I can find a work around. I get about a dozen of these a day. Sometimes the code works, sometimes it throws the exception.

The line of code making the call is as follows:

  var findMember = umbracoMemberService.GetMembersByPropertyValue("profileURL", profileUrl, StringPropertyMatchType.Exact).SingleOrDefault();

Here is the exception

Exception information: 
    Exception type: InvalidOperationException 
    Exception message: This SqlTransaction has completed; it is no longer usable.
   at System.Data.SqlClient.SqlTransaction.ZombieCheck()
   at System.Data.SqlClient.SqlTransaction.Commit()
   at Umbraco.Core.Persistence.Database.CleanupTransaction()
   at Umbraco.Core.Scoping.Scope.DisposeLastScope()
   at Umbraco.Core.Scoping.Scope.Dispose()
   at Umbraco.Core.Persistence.UnitOfWork.ScopeUnitOfWork.DisposeResources()
   at Umbraco.Core.DisposableObject.Dispose(Boolean disposing)
   at Umbraco.Core.DisposableObject.Dispose()
   at Umbraco.Core.Services.MemberService.GetMembersByPropertyValue(String propertyTypeAlias, String value, StringPropertyMatchType matchType)
   at upventur.Community.Core.Events.Routing.UserFeedVirtualNodeRouteHandler.FindContent(RequestContext requestContext, UmbracoContext umbracoContext) in D:\ORMG\3.1\V3.1\upventurCommunity\upventur.Community.Core.Site\Community\Core\Events\Routing\UserFeedVirtualNodeRouteHandler.cs:line 42
   at Umbraco.Web.Mvc.UmbracoVirtualNodeRouteHandler.GetHttpHandler(RequestContext requestContext)
   at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
]]>
John Bergman Wed, 19 Jul 2017 21:13:26 +00:00
Returning model to viewpage https://our.umbraco.org/forum/umbraco-forms/86952-returning-model-to-viewpage https://our.umbraco.org/forum/umbraco-forms/86952-returning-model-to-viewpage I'm having trouble returning a custom model, which inherits from a RenderModel, to a UmbracoViewPage.

The following error occurs

Cannot bind source type BD.Web.Models.SiteFilterModel to model type BD.Web.Models.SiteFilterModel. 

I need to return the model to the view to use it in a filter.
Could someone point out what i'm doing wrong? I'm still pretty new to Umbraco, so i'm still trying to figure somethings out.


Controller:

public class IndexController : Umbraco.Web.Mvc.RenderMvcController
{
    public FilterEnumerations.SiteFilter SiteFilter
    {
        get {
            if (Session["SiteFilter"] == null)
                return FilterEnumerations.SiteFilter.AllSites;

            return (FilterEnumerations.SiteFilter)Enum.Parse(typeof(FilterEnumerations.SiteFilter), Session["SiteFilter"].ToString());
        }
    }

    // GET: Index
    public ActionResult Index(Umbraco.Web.Models.RenderModel model)
    {
        var siteFilterModel = new SiteFilterModel(CurrentPage)
        {
            SiteFilter = SiteFilter
        };

        return CurrentTemplate(siteFilterModel);
    }
}

View:

@inherits UmbracoViewPage<BD.Web.Models.SiteFilterModel>
@{
    Layout = "_ComparisonLayout.cshtml";
}

Model:

public class SiteFilterModel : Umbraco.Web.Models.RenderModel
{
    public SiteFilterModel() : base(Umbraco.Web.UmbracoContext.Current.PublishedContentRequest.PublishedContent) { }
    public SiteFilterModel(IPublishedContent content) : base(content) {}


    public FilterEnumerations.SiteFilter SiteFilter { get; set; }
}

Thanks in advance.

]]>
Raymond Rotgans Tue, 18 Jul 2017 14:05:09 +00:00
Delay in permissions changing https://our.umbraco.org/forum/using-umbraco-and-getting-started/86901-delay-in-permissions-changing https://our.umbraco.org/forum/using-umbraco-and-getting-started/86901-delay-in-permissions-changing Hi

I'm just looking at setting up different editors and practicing setting permissions to another account that I have.

I run one account in one browser as administrator, and then another account (with separate email etc) in another browser as an editor.

I've been finding that when I set some permissions for the account as an editor they sometimes don't come through immediately. I've been finding that if I perhaps leave it an hour and then go back and refresh the browser for the editor view that I'll then see the updated correct permissions.

Has anyone else experienced anything like this?

Thanks Graham

]]>
Graham Thomson Fri, 14 Jul 2017 10:46:31 +00:00
How to add cshtml pages to dashboard.config https://our.umbraco.org/forum/templates-partial-views-and-macros/86809-how-to-add-cshtml-pages-to-dashboardconfig https://our.umbraco.org/forum/templates-partial-views-and-macros/86809-how-to-add-cshtml-pages-to-dashboardconfig Hi

I am trying to add a cshtml page to config. As i need to show list with some custom logic in admin section. But when i add to dashboard.config, it gives me error of authorization access.

How can i add chstml page to admin section

Thanks

]]>
Manish Mon, 10 Jul 2017 13:39:06 +00:00
Access record IDs in the email template https://our.umbraco.org/projects/backoffice-extensions/perplexmail-for-umbraco/feedback/86764-access-record-ids-in-the-email-template https://our.umbraco.org/projects/backoffice-extensions/perplexmail-for-umbraco/feedback/86764-access-record-ids-in-the-email-template I know I can add individual form fields to the email template, but how would I go about adding something such as the record ID for each form submission.

Using the default email workflow, this was accomplished by using the {{recordId}} variable.

It would also be nice to have access to the form name.

]]>
Matthew Kirschner Thu, 06 Jul 2017 20:13:56 +00:00
Umbraco Form Encryption https://our.umbraco.org/forum/umbraco-forms/86655-umbraco-form-encryption https://our.umbraco.org/forum/umbraco-forms/86655-umbraco-form-encryption Hello,

We've currently developed a way of encrypting data that is submitted via an Umbraco Form by using a Custom Workflow and by modifying the umbraco.forms.js file in the App_Plugins folder to decrypt it again.

This all works great and all, however I was wondering if it's possible to override the functions in umbraco.forms.js so that we don't have to modify a core umbraco file.

Does anyone know a way of doing this?

Thanks

Paul

]]>
Paul de Quant Fri, 30 Jun 2017 09:17:52 +00:00
System.Web.HttpRequest does not have the CleanForXss definition https://our.umbraco.org/forum/using-umbraco-and-getting-started/85492-systemwebhttprequest-does-not-have-the-cleanforxss-definition https://our.umbraco.org/forum/using-umbraco-and-getting-started/85492-systemwebhttprequest-does-not-have-the-cleanforxss-definition Version 7.6 downloaded as zip and unziped to folder. An error is generated in Visual Studio when you build a Web site: System.Web.HttpRequest does not have the CleanForXss definition, and no CleanForXss extension method has been found that would accept the first System.Web.HttpRequest argument (does not use the use directive or build link?)

The error is in Umbraco / Users / PermissionEditor.asmx at line 30 UserId: <% = Request.CleanForXss ("id")%>,

This can be fixed: UserId: <% = Request.QueryString ["id"]%>,

In release 7.6RC was Request.QueryString ["id"] and in release 7.6 already Request.CleanForXss ("id")

How can I fix it correctly. or I should ignore this mistake

Is it really interesting that it does not make anyone a problem? It was a change between RC and Release versions, which should be exceptional.

]]>
Pavel Wed, 03 May 2017 18:22:49 +00:00
Modifier for RenderElementAttributes(row) using the Grid https://our.umbraco.org/forum/templates-partial-views-and-macros/85395-modifier-for-renderelementattributes-row-using-the-grid https://our.umbraco.org/forum/templates-partial-views-and-macros/85395-modifier-for-renderelementattributes-row-using-the-grid Hello everyone,

Tearing my hair out trying to work this out, I am using the default "CSS style" in the Grid settings and I currently have this setup:

[
  {
    "label": "Class",
    "description": "Set a css class",
    "key": "class",
    "view": "radiobuttonlist",
    "modifier": "container{0}",
    "prevalues": [
      "fluid"
    ]
  }
]

So this works perfectly if the user selects "fluid" radio button and the outputted div is:

<div class="containerfluid">

But I want the modifier to actually show by default so my default class is:

<div class="container">

At the moment it just returns a div with no class applied to it - which makes sense - but is there no option for a default value or even showing the modifier by default?

Thanks, Garry.

]]>
Garry Bain Thu, 27 Apr 2017 10:49:02 +00:00
Using the new umb:document/guid https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85119-using-the-new-umbdocumentguid https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85119-using-the-new-umbdocumentguid Hey Experts

i just played around with 7.6 and i saw that it saves entries in the content picker and multinode picker in a new format

"umb://document/b3fc5438670444f38ddcc34adbaa44a7"

How do i get the content based on that Uri ? could replace me out of the issue but it seems stupid :)

any one has and idea ?

]]>
Peter Jensen Tue, 11 Apr 2017 12:30:25 +00:00
Umbraco Form not showing the third field from Entries https://our.umbraco.org/forum/umbraco-forms/83600-umbraco-form-not-showing-the-third-field-from-entries https://our.umbraco.org/forum/umbraco-forms/83600-umbraco-form-not-showing-the-third-field-from-entries I have a weird problem where a field from Entries doesnt show.

In my screenshot enter image description here the "Name" field was missing when I check it from Entries.

See screenshot of my entries below enter image description here

The weird error here is its not exactly the "Name" that doesn't display, but its the 3rd column in Form builder, if I switch email and name field then it will be the "Email" will become missing, its always the 3rd column.

Another issue is the excel export doesnt work, but it works on the other forms, only this form or I name it "Course Date Form #1" has issues.

Please let me know what could be the problem, thanks.

I am using Umbraco 7.2.4 with Umbraco Forms 4.3.2

]]>
Jorge Sun, 29 Jan 2017 15:36:04 +00:00
siteMap in Merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/82096-sitemap-in-merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/82096-sitemap-in-merchello Hi,

I am using Merchello V 2.2.1 ( FastTrack), Now I need to create siteMap XML file for SEO, so how can I include Products into it? (And provide the option to show/hide Item into sitemap, changefreq, priority etc,. )

so kindly guide me on the same.

Thanks.,

BJ

]]>
BJ Patel Sun, 01 Jan 2017 07:29:09 +00:00
Get ProductOption ContentType Umbraco data in code https://our.umbraco.org/projects/collaboration/merchello/merchello/80775-get-productoption-contenttype-umbraco-data-in-code https://our.umbraco.org/projects/collaboration/merchello/merchello/80775-get-productoption-contenttype-umbraco-data-in-code In Umbraco I have created a Document Type called "Shared Option Image" which has an image picker.

In Merchello I have set "Product Option Content Types" to include "Shared Option Image".

I have created a shared option e.g. colour (just an example), and assigned images yellow.jpg, green.jpg and blue.jpg.

I have created a product, assigned it some shared options and can see the variants.

In code, how do I access the "Shared Option Image" content type data of the option for a product. I have:

var merchello = new MerchelloHelper();
var productQuery = merchello.Query.Product;
var product = productQuery.GetByKey(productKey);
var productOption = product.ProductOptions.FirstOrDefault();

Now I'm stuck. Any help appreciated.

]]>
Kevin Wed, 19 Oct 2016 15:15:21 +00:00
I am New in Umbraco 7 https://our.umbraco.org/forum/umbraco-forms/78262-i-am-new-in-umbraco-7 https://our.umbraco.org/forum/umbraco-forms/78262-i-am-new-in-umbraco-7 in there can i host my project?

]]>
Mizanur Rahman Sun, 26 Jun 2016 06:30:04 +00:00
SEO Sitemap : How to include categories and products? https://our.umbraco.org/projects/collaboration/merchello/merchello/75972-seo-sitemap-how-to-include-categories-and-products https://our.umbraco.org/projects/collaboration/merchello/merchello/75972-seo-sitemap-how-to-include-categories-and-products Hi,

I create a SEO sitemap, but how to include Product groups and products? I see that sitemap stop to store. Here an example: http://www.fondosanitario.com/sitemap

Thanks

]]>
Biagio Paruolo Sat, 19 Mar 2016 16:11:52 +00:00
Repeatable Custom Content Source Code https://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content/repeatable-custom-content-v2/7149-Repeatable-Custom-Content-Source-Code https://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content/repeatable-custom-content-v2/7149-Repeatable-Custom-Content-Source-Code Hello,

Is the source code of the repeatable custom content available? This seems to be a very interessting package I could learn a lot from. If you don't want to release the source code of this package could you help me with the following problem? At this topic I'm trying to load datatypes into my page or usercontrol. It seems your package does the same thing. It loads existing datatypes into a custom datatype. I hope you can give a sample in which you do this. Thanks in advance!

Jeroen

]]>
Jeroen Breuer Thu, 11 Feb 2010 16:07:40 +00:00