Adding custom xtype to page properties - aem

I've created a custom xtype that I want to use in a page property dialog. It works great when I bring up the page and select page properties from the sidekick, but I can't figure out where to place the custom javascript I've created so its available from the sites menu in the main page. There the custom xtype fails to load and the new section fails to work.

You need to place your script inside a new clientlib, defined with the category cq.wcm.admin. All clientlibs with this category are automatically included on the site admin. If you add the category cq.wcm.edit, your script will be included on the page editor as well.

Related

Sharepoint 2013 content type form edit

The problem is the folowing:
I have one list that shows up on 6 diferent forms using content types.
I have to show a name for each different form but have no idea how to do it.
I tryed googling but no luck there.
If I had 6 diferent forms I would solve it but i must use this because of the related workflows.
You have 6 content types in one list ? And you want to show some name depending on content type ?
If this is your case then you can add Content Editor Web Part or Script Editor Web Part to default forms (New, Edit, Display). This web part will contain javascript code.
Javascript code on form load will get content type id query string parameter from URL and render necessary name depending on this content type id.
Go to your library, and from the ribbon choose Library Settings
From the Settings page General Settings column choose the Advanced Settings Link
From the Advanced Settings page choose the Yes radio button for the Allow Management of Content Types option, and then click OK
From the Settings page, in the Content Type panel, choose Add from Existing Content Types
From the Add Content Types add the Content Types you want to use on your page and click OK
From the Settings page, in the Content Type panel, choose Change new button order and default content type
From the Change New Button Order page ensure all your content types have the Visible box checked (this makes the Content Types useable in the list) and then click OK
Now go back to your normal list view and from the ribbon choose New Document - you should see all your Content Type forms listed

How to add a custom button in rte plugin in aem/cq

How to add a custom button in rte plugin/cq?
The below path is for hyperlink
/apps/cq/ui/widgets/source/widgets/form/rte/plugins/LinkDialog.js
I need to add a custom button in rte plugin to extend the hyperlink functionality?
To provide a new button/plugin in RTE, a new clientlib will have to be created. In the js file, the intended functionality of button can be implemented in ExtJs. In CSS file, the appearance/image of thee button can be specified.
Then the newly created clientlib can be registered as a plugin for RTE by using following line :
CUI.rte.plugins.PluginRegistry.register("pluginName",ClientlibName.PluginName.Plugin);
The entire process has been described step by step in this excellent article.

How to add a single menu item in wordpress to my plugin

I am trying to create my first wordpress plugin and I want to add a new "menu item" in the wordpress default menu bar. So when I click that menu item, the html form need to be shown by my plugin.
comparing to Joomla, in joomla it has views in "components" so I can easily create a new menu item, and assign a view as I want. In wordpress how do I do that for a plugin?
Please help. Thanks
I recommend that for your form for the front end, make a shortcode that will render your form. Then people can create a page (which gets you your menu item) and put your form on the page, optionally with some text / images above or below the form. This is better than trying to insert a "page" into the menu and somehow getting it where your plugin's users want it to go :)
For the admin side, use the admin menu functions.

Hyperlink to Eclipse editor page

I am trying to write an editor for a particular type of file in Eclipse which has multiple pages, just like the PDE editor.
How do I get a hyperlink in the main Overview page to point at one of the individual pages?
I've got the hyperlink drawn but I don't know how to link it to the actual page so that when a user clicks it, the page view changes.
Any ideas?
Follow this recipe:
Create the main page and all the sub pages
Add links
Add HyperlinkAdapter to the links using link.addHyperlinkListener()
In linkActivated() you can switch the page with formEditor.setActivePage(...)

How can I create a new custom page with my own content in Elgg

I would like to create a new page in Elgg where I can put my own content. I would like to have there all the default menus, etc. but with empty space where I can put my code. I would like to have a link to this page on my profile page. Should it be done as a new plugin? If yes, how to create empty page with my current template settings?
Check this out:
http://docs.elgg.org/wiki/How_do_I_create_a_new_page%3F