What do these ASP.Net custom elements (.ascx) do on the Tridion page?

I got this code from the SDL Tridion site related to displaying ASP.Net custom elements on the page.

What I understand is a menu of tag tags, content, search results - a .ascx file. But I do not understand the other controls that they used. Can someone explain this piece of code?

<%@ Page Language="C#" %> <html> <head> <title> <tridion:content ExpectXmlContent="true" XPath="//tcm:Content/tridion:Content/tridion:title" runat="server"/> </title> <tridion:content templateuri="tcm:47-3016-32" runat="server"/> <tridion:track runat="server" xpath="//tcm:Metadata/tridion:Metadata/tridion:category" pageuri="tcm:47-2966-64" /> <tridion:secure issecured="false" redirecturl="~/login/login.aspx" runat='server'/> </head> <body> <tridion:menu menutype="topnav" runat="server"/> <tridion:content templateuri="tcm:47-3052-32" runat="server"/> <tridion:searchresults Category="Categories" templateuri="tcm:47-3058-32" runat="server"/> </body> </html> 
+4
source share
2 answers

Check the web.config project file, there should be a <controls> , where there will be a link to the assembly using the tridion tag prefix.

Then you can use something like ILSpy to decompile the assembly and get a clearer picture of what is going on.

+7
source

These are truly ASP.NET user controls, as you have already done. But as far as I know, these controls are not part of the standard Tridion installation. Thus, this means that they were probably created specifically for your website by the original developer. I suggest contacting this developer for documentation and source code.

However, just looking at the fragment, it looks like this:

  • first tridion:content looks for page title from xml page
  • the second tridion:content displays all component presentations on the page that use the specified component template
  • tridion:track calls the tridion:track personalization and profiling module to track visits to this page
  • tridion:secure uses the Tridion Professional Service secure content protection module to ensure that only authorized users have access to this page.
  • then tridion:menu displays a menu similar to some element in Tridion
  • then another tridion:content control displays more component presentations, this time those that have a different component template
  • Finally, tridion:searchresults queries Tridion Broker to display a list of related component presentations
+9
source

Source: https://habr.com/ru/post/1410841/


All Articles