Hot answers tagged

3

I can give you a view from the .NET DXA - I guess its similar for Java. Do you want to create a hyperlink to the linked content? If so its rather simple, you simply have a property of type String or Link in your model, and the DXA will populate the model with a resolved link URL to the linked content. Alternatively you may be looking to embed the linked ...


3

According to the Tridion Reference Implementation (aka DXA) documentation, when default semantic mapping is used the naming convention of multi-value fields is defined as follows: When attempting to populate a property of type List, remove any trailing s's from the property name. For example, the Paragraphs property is mapped to Schema field paragraph....


3

Here are some links (which you can also find in the docs) DXA Latest: https://github.com/sdl/dxa-modules/tree/master/webapp-net/Search DXA 1.0.1: https://github.com/bkoopman/tri/tree/master/web-application/Modules/Search/Sdl.Web.Modules.Search The DXA search is (out of the box) intended to be a very simple one box search and by default all content and ...


3

I guess that (part of) the problem is that your controller classes are not explicitly declared as public (and the default visibility for classes is internal in C#). I also don't understand why the URL path in the error message is /taxonomy/test; the (virtual) URL path for Entity Controllers registered in BaseAreaRegistration is in format /{controller}/{...


2

I'm not sure if I fully get the question, but from what I understand it sounds like you have created two regions, where you only need a single one. If you want to have the following content in a region: LHS-ArticleContent LHS-ArticleTabs LHS-ArticleContent LHS-ArticleTabs Then I would create a LHS region allowing both the ArticleContent and the ...


2

I had the opportunity to talk to Huston in person and that gaves another angel on the problem. I cannot answer the component link question, but we can solve the left hand side / right hand side content without using component links. Like Will suggested in his comment. After careful inspection of the HTML design it turned out that the left hand links and ...


2

It seems you use dd4t 2. In the dispatcher-servlet.xml file you need to add your controller: <!-- Configure me: change this to the base-package where your overridden controllers are --> <context:component-scan base-package="org.dd4t.test.web.controller,my.base.package" annotation-config="true"/> For my.base.package use the base ...


2

You failed to indicate which version of DXA you are using and if you are using .NET or Java, but here are the locations of the source code for the models of the DXA Core module. You find these in the DXA Modules repository on GitHub: .NET https://github.com/sdl/dxa-modules/tree/master/webapp-net/Core/Models/Entity Java https://github.com/sdl/dxa-modules/...


2

Looking at your requirements, I see the following Topology Manager configuration: 1 Website with Base URL http://{domain-name} 1 Web Application with Context URL / (Root Web App) 6 Mappings with Relative URLs {stateX}/{languageY} and associated Publication.


2

But why do you inherit from DXA's BaseController? Why not have a "regular MVC controller" which would return the relevant data? I think you should approach this the following way: Render the download page using DXA The page has a download button which would target your custom controller which would return the data as a stream


1

I think Atila's answer is your best bet. I think the problem you're having is that DXA is involved quite early on in the pipeline. It's getting the page content from Tridion, building up the page then handing over to the Entity method in that controller - so the HTML response is already partly built in a way. You cant then change that response to a ...


1

Did you have a look at the Example Site / Core Module? It also supports Downloadable content, but not using anything near to what you are trying to do. See, for example: The Download View Model (Media Item): https://github.com/sdl/dxa-modules/blob/master/webapp-net/Core/Models/Entity/Download.cs The Download View: https://github.com/sdl/dxa-modules/blob/...


1

Found the issue in your Global.ascx.cs file, The following below line wrong, it should register your PageController class not MvcApplication class builder.RegisterControllers(typeof(MvcApplication).Assembly); Corrected Global.ascx.cs file public class MvcApplication : System.Web.HttpApplication { ILifetimeScope BuildContainer() { var ...


1

DXA would render the page content directly from the database. The view models can be cached. For you to be able to render a file (instead of the model from the database) from the filesystem directly, you may need to write a custom HTTP handler for that. If you only have an index page that is available in the filesystem, I would suggest publishing that from ...


1

You are correct, DD4T resolves the type of the model based on the Schema Root Element name. The best practice would be to have unique names for the SchemaRootElement but if you don't want to do that and find a workaround your best bet is to implement your own ContentModelAttribute (IsMatch method) and bind IContentModelAttribute to your ...


1

Not sure why the value is not populating, but another way this can be achieved is by defining the metadata field in both schema for column and level. For e.g., in Schema HeaderMenuDesplegable have 1 or 2 or 3 .... column defined by content user & in schema HeaderMenuDesplegableItem have 1.1 or 1.1.1 or 2.1 or 2.1.1 level and column number .... defined by ...


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