Giter Site home page Giter Site logo

arknu.umbraco.relations's People

Contributors

arknu avatar clausjensen avatar mrflo avatar patrickdemooij9 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arknu.umbraco.relations's Issues

Show parent relation Name in the child relation

Hi,
Nice plugin just in time for what i Needed.

A nice feature would be in edit mode to see the name of the parent relation when you are viewing the child relation (when it is bidirectional) to easier visualize the relation.

I tested it quickly in you controller/RelationsApiController.cs the method GetRelations:
foreach (var r in relations.Where(x => x.RelationType.Alias == type))
{
string name;
if (r.ChildId == id && reltype.IsBidirectional)
{
var c = Umbraco.TypedContent(r.ParentId);
name = c.Name;
}
else
{
var c = Umbraco.TypedContent(r.ChildId);
name = c.Name;
}

            result.Add(new a.Relation
            {
                Name = name,
                RelationId = r.Id,
                ContentId = r.ChildId
            });
        }

E.g. my simple change is the first if statement and getting r.parentId instead of child id.
cheers /per

ServerVariable arknuRelations.relationsApiBase not set

Thanks for developing this great package, I installed it for a client on my local dev environment and it works great.
But after publishing this to the live server, it throws an error about the ServerVariables: Cannot read properties of undefined (reading 'relationsApiBase')
I did some research and everything looks fine. Do you have any idea what could cause the issue?

Running Umbraco 7.9.2 with version 1.1 of the package

Umbraco 9 version

Hi,
Are there any plans to create a v9 version for this at all?
I've been playing around with the code and have a version that works with v9 - my requirements were slightly different though and actually mean the control also saves it's values to the property as well (similar to how the nupickers worked in v7). This has the benefit that the Umbraco content picker can be used directly rather than trying to recreate the behaviour of it.
Another benefit is that the values can be provided using a property value converter, without then having to do another relations lookup.

I'm happy to PR this work back as it is heavily based on your v8 version. If you'd rather this be a separate project as it is a bit different to your initial idea then please also let me know and I'll look at releasing under a different name (with your permission)

Umbraco 8/9 version

Any plans on an update to Umbraco 8 or 9?
We are upgrading a project using this package to Umbraco 8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.