6

One of the requirements for a Tridion GUI Extension which I'm building is that there needs to be a 'configurations' page, where Tridion users can provide certain settings. I am trying to create a button in the Ribbon that, when clicked, takes the user to a page.

Right now, Tridion itself (when I try to load it) is telling me, "could not load type [Extension].Controls.PageName".

I have a strong suspicion that it's because I don't understand the proper usage of pagetype element. Could someone explain what values I should give to this element?

<ext:extension pageid="ToolsPage" name="Crocodoc" assignid="crocodoc" insertbefore="MaintenanceGroup">
       <ext:control>~/Controls/CrocodocSettings.ascx</ext:control>
       <ext:pagetype>Crocodoc.SettingsPage</ext:pagetype>
       <ext:dependencies>
          <cfg:dependency>Crocodoc.Resources.Settings</cfg:dependency>
       </ext:dependencies>
       <ext:apply>
         <ext:view name="DashboardView">
            <ext:control id="DashboardToolbar" />
      </ext:view>
   </ext:apply>
</ext:extension>
5

ext:pagetype

It is used for specifying the javascript implementation.

Update:

Your issue could be due to not registering the page type.

Example:

XXX.registerPageType(YYYYY, "Crocodoc.SettingsPage");
  • I appreciate the response, but unfortunately that doesn't help me. If I remove this line from my configuration file, then Tridion shows me, The element 'extension' in namespace 'http://www.sdltridion.com/2009/GUI/extensions' has invalid child element 'dependencies' in namespace 'http://www.sdltridion.com/2009/GUI/extensions'. List of possible elements expected: 'pagetype' in namespace. So apparently, it's needed... so could you explain what JavaScript I should be specifying? – paceaux Feb 25 '13 at 17:15
  • @paceaux: Why you are removing the element? pagetype needs to be specified – Siva Charan Feb 25 '13 at 17:16
  • I understand that now. What JavaScript should I specify, then? – paceaux Feb 25 '13 at 17:18
  • @paceaux: can you show your JS file? – Siva Charan Feb 25 '13 at 17:36
  • 1
    Thank you. I hadn't realized that it was necessary to have a javascript object set up. I'd completely missed that I needed a javascript file, but once I added one, I understand now where the pageType comes into play – paceaux Feb 25 '13 at 19:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.