Hot answers tagged

5 votes
Accepted

Get Component data in DXA which is not added on a page

You can use the following: YourModel yourModel = (YourModel)SiteConfiguration.ContentProvider.GetEntityModel(compId + "-" + tempId, WebRequestContext.Localization); This will retrieve your ...
  • 8,546
5 votes
Accepted

DXA: KeywordModelData missing from Dynamic Component using GetEntityModelData in .Net

This is a defect in the DXA 2.0 Model Service, which has already been hotfixed. See https://github.com/sdl/dxa-model-service/commit/77c2043ba690ae15f3efee9c3f598cb7bd79a4e8 Contact SDL Customer ...
5 votes

Compounded Dynamic Component Templates

There is a change about the behaviour of the REL Component Presentation in Web 8, due to the change of the control of the target languages by the Publication Target and the new Topology Manager way of ...
4 votes
Accepted

cd_dynamic_conf in DXA 2.0

I think it's not a matter of DXA 1.x or 2.x, but the use of SDL Web 8.5 with the use of microservices that changes the configuration of the cd_dynamic_conf file. Now these configuration are managed ...
3 votes
Accepted

Why does the Component Presentation Assembler not execute JSP code?

The ComponentPresentationAssembler needs access to your page context to work, so the constructor overload that accepts just the publication id won't work. You need to instantiate a JSPPage with the ...
3 votes
Accepted

Dynamic include pages in DXA

In general, if you need custom logic for how Page Models are constructed, I would recommend using a custom Page Controller (can be a subclass of Sdl.Web.Mvc.Controllers.PageController which overrides ...
2 votes

How to pass page variable in URL string upon click

Tridion does not offer this feature, because it is a content management system, not a web application. You should implement this in the application which consumes the data from Tridion.
  • 6,645
2 votes

Dynamic include pages in DXA

How about adding a smart target region for header and footer. Set different ADF Claims for each different condition( it could be URL Pattern or any business criteria) and just add smart target ...
  • 1,231
2 votes
Accepted

DXA 2.0 - Get ComponentTemplateId using Component Id in .Net

This logic seems to have some flaws, and does a lot of database operations in order to find a component template. foreach (var compUri in componentUris) { cpList = cpf....
2 votes

cd_dynamic_conf in DXA 2.0

Basically the way content is published and read has changed in SDL Web 8.5. understanding Topology Manager is where there likely is a change. DXA has not really changed as much in this regard
1 vote

DXA Dynamic Component Template

You can use the GetEnityModel using ContentProvider.GetEntityModel (HERE). An sample implementation is available in the test namespace HERE. Per Rick's comments, it has been introduced in 1.2. You ...
  • 2,158
1 vote

Render Component Presentation cd_dynamic 7.1.0 error: cannot access Page

Solved. We needed to add the cd_wai-2013 lib
  • 1,214

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