We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

8

Some time ago, we also worked on a DXA implementation where we customized the link resolver (I think we were using DXA 1.5 or 1.6, but the approach should be similar). The Spring framework should normally scan any of your packages for implementations, annotated by @Component. By adding @Primary, you're able to make your implementation take precedence over ...


7

Funny enough I just answered a question in email about the same and came to an interesting conclusion. To inline edit a field in XPM, it needs to belong to a Component Presentation and the proper XPM markup for the Component Presentation and the field need to be present on the page. Now a Linked Component, is not a Component Presentation, you only have a ...


6

AFAIK the OOTB Navigation facilities only support sister level of navigation, because the NavigationLinks entity has only one level of Links. Basically: You have to make an extension of the NavigationProvider To populate your own ExtendedNavigationLinks entity with several levels of links And make an extended Navigation view where you can manage several ...


6

The short answer is that it is done automatically by the Query control. So when the Experiment is rendered, a view will be tracked. The tracking is done through the AnalyticsManager which in turn uses a configurable provider to do the tracking and retrieval of data. A default Google Analytics provider is given out-of-the-box. If you are using the API ...


5

Whether you use a key value pair or a specific Schema doesn't matter, the configuration is serialized the exact same way. You can for example take a look at the Google Analytics module, it has a Configuration Schema not based on the key value pair and nothing specificly is done for that. One catch however is that configuration is about string values, since ...


5

I guess you didn't add all the sources in that case, when looking at the VS project file (https://github.com/sdl/dxa-web-application-dotnet/blob/release/1.7/Sdl.Web.Common/Sdl.Web.Common.csproj) you see a reference to: <Compile Include="..\CommonAssemblyInfo.cs" /> Indicating that CommonAssemblyInfo.cs is located outside of the Sdl.Web.Common folder. ...


5

Let me start with making one thing clear (I gather you know it already, but just for the sake of others coming across this question), what we are doing here is a hack to make linked Components editable in XPM (since XPM currently only supports editing Component presentations, and you are missing a Component Template). Now on to your questions: With XPM you ...


4

My goal was to move the Connector installation to the 100 Master level. I tried deleting stubs and schema , editing the ExternalContentLibrary.xml stubs folder to point at 100 level to run the connector repair. Repair failed so I had to go for the full re install. Backup ExternalContentLibrary.xml and TridionSTS.xml as you settings will be lost. ...


4

Particularly this message: "The POM for com.sdl.web:content-client-api:jar:8.5.0-1012 is missing, no dependency information available." seems like an issue in libraries. Also it's interesting that apparently Eclipse has different mechanism of resolving Maven dependencies (but it's only a guess). Fortunately, this one is easy to resolve. In WebApp's pom....


4

The answer to your question is described in the README.md file of the dxa-content-management repository on GitHub: Note that the Sdl.Web.Tridion.Templates.csproj project references CM assemblies in _references subdirectories which are not included in this repository, because these assemblies cannot be distributed without a signed license agreement. In ...


4

I'm not sure why you are trying to add the Publish Mappings TBB to your Component Template. The documentation mentions: ... By invoking the Publish Mappings Template Building Block from the Publish Setting Template Building Block with its retrofitMode parameter set to true. So all you need to do is leave your Component Template alone, and configure the ...


4

Views are designed for generating HTML, if you wish to return JSON, you should not abuse the view technology for that (see also the answers to How to remove the HTML content from a Page when Region is used in DXA 1.5 Java?) Have you tried requesting the URL of a page with ?format=json added to it? Also take a look at ?format=atom and ?format=rss. I suggest ...


4

Let me elaborate Bart's statement that "this is a hack to maked linked Components editable in XPM"... Note that XPM currently doesn't fully support editable linked Components. This is visible from the fact that there is no XPM markup for a Component and thus you will have to fake a Component Presentation in XPM markup. But there is more: XPM allows the ...


4

Certainly. High level steps how to do this: Create a folder watcher which would detect the zip file when copied. Once the zip is detected it would be processed and moved out of the folder (success/failed folders). Processing takes place in steps 2 and 3 below Upload the zip using the Stream Core Service Publish the HTML design using (regular) Core Service ...


4

What Rick had suspected, you have confirmed with you comment, this is indeed a typical staging/live setup. That means, that for a single CM environment (Production) you have 2 delivery environments (Staging and Live). They both have their own Content Delivery stack and Content Data Store, and you can publish to either of them independently from the other. ...


4

We managed to fix this issue and I would like to share the solution. In the binary data, the mapping wasn't up to date in the child publication (didn't contain the metadata fields). I tried several times to publish Publish Settings and admin/refresh, but it didn't fix the file. What we did at the end was to unpublish the Publish Settings in the parent and ...


3

It seems to indeed be possible to edit fields in a linked Component using XPM, but it requires the XpmMetadata to be set on the Component before rendering it. For example: myComponentPresentation.MyLinkedComponent.XpmMetadata = new Dictionary<string, object> { { "ComponentID", "tcm:29-4268" }, { "ComponentModified", "2017-10-24T08:57:35" }, ...


3

To answer your second question, once a class has private methods, they can't really be reused or overriden. You have two options: a) code duplication, or b) dynamic method execution using reflection. I would probably go for option b) but it has a few issues of its own, e.g. https://stackoverflow.com/questions/880365/any-way-to-invoke-a-private-method


3

Try inserting the version number into the URL. http://site/system/v1.7/resources/modulename.json When running in debug (.Net) on the local machine I can access resources via a web browser (chrome) but have to add in the DXA version /v1.7/ into the URL, like this: http://localhost:53028/system/v1.7/resources/core.json { "readMoreLinkText": "Read More", ...


3

Thanks Rick. I seriously messed up semantics. Now I see the values coming through :)


3

Finally found that the error in the views counter was an error in the Experience Optimization DXA module. SDL support confirmed it, and to fix the problem, a hotfix will be released on January 2018.


3

It seems you problem is in understanding how to use PowerShell exactly, and the documentation isn't overly clear on that I agree, since it uses the single quotes (they are single quotes rather than apostrophes I learned here https://english.stackexchange.com/questions/36046/apostrophe-vs-single-quote ;o) in an example where they don't need to be used. In a ...


3

Take a look at the ContentProvider.populateDynamicList method, this is how DXA does it for the out of the box query on the homepage. This is using the DynamicList class which contains a few basic methods for Broker queries. If you need to do a more advanced query, you should implement a similar class. The idea behind this is to wrap around the Tridion ...


3

I was mostly making a mistake in my initial model for my component public class GlobalFooterNavigation : EntityModel { [SemanticProperty("c:navigationSet")] public List<NavigationSet> NavigationSets { get; set; } } I wanted my NavigationSet to be a list. I was a copy-pasta of LinkList, but I found that I could simplify it a bit. ...


3

If you create the page in the root SG, the sitemap.xml will be available in your rootURL/sitemap.xml. The crawler should be able to browse the site to pick it up, without any modifications or customization. If for some reason, you need the file to be physically available on the root on the project (on the filesystem), you have a few options. Use a ...


2

In the DD4T model (json) the Title of a Component is available, but in the DXA abstraction it seems we considered this was part of the "domain model" and thus not propagated as we deemed it wasn't needed. To solve it for DXA 1.7 it seems you have two options: Add the property to your model and create a Custom Model Builder (as part of the Model Builder ...


2

It appears that there were few problems with the linking of Base URL's in the discovery database which was causing this issue. It could not be identified why this inconsistencies in the DB, which should have been resolved by syncing (overwriting) from Topology side. After running the following queries the issue was resolved: delete from ...


2

The article was written a long time ago and focussed only on DXA .NET, for Java we have a slightly different process, as documented here: http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v7/GUID-14174367-EFDB-4C6C-B53D-1E7AB39E78C3 (so it is a bit strange that you say it works with a version.json file). Another thing I'm wondering about is if you ...


2

My first guess would be that your Preview Service (or Session-enabled Content Service) is not be correctly installed/configured, please note that it has a different cd_ambient_conf.xml than the DXA example website has, as the latter will not have (or need) the preview cartridge configured: <Cartridge File="cd_webservice_preview_cartridge.xml" /> This ...


2

Follow up: Thanks Bart for answering my question, appreciate the help. After restarting the web application and clearing the caches, my mvp-core.json was refreshed and looked like the following: { "logo": "Logo SVG", "bgImage": "page-background mountains", "bgColor": "#9fbcd7", "siteUnit": "Global Intranet", "siteHeading": "Local Dev", "...


Only top voted, non community-wiki answers of a minimum length are eligible