arknu / arknu.umbraco.relations Goto Github PK
View Code? Open in Web Editor NEWRelations Picker
Relations Picker
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
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
The Relations Picker install fine on umbraco 7.5.8. One is able to pick a node, but clicking the select button gives the error
http://localhost:4439/umbraco/backoffice/UmbracoApi/Entity/GetByIds?ids=1053&type=content
http://localhost:4439/DependencyHandler.axd?s=....
Failed to load resource: the server responded with a status of 400 (Bad request)
New umbraco install, nothing else installed that this package
Any idea?
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)
Any plans on an update to Umbraco 8 or 9?
We are upgrading a project using this package to Umbraco 8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.