in moodle 3.3+ i did not find any options for add static pages in admin panel.So where did i find that options or is there new functionality for adding static pages.
Please provide me some appropriate references.
Without coding:
Moodle does not have a custom page option. The closest you will get without coding is the Page activity module, but that is at the course level. You may be interested in the static pages plugin: https://moodle.org/plugins/local_staticpage
With coding:
Check out their documentation on creating new pages: https://docs.moodle.org/dev/Page_API
Related
We are working on a custom solution to use content from AEM instance. Using HTTP API(http://localhost:4502/api/content/sites/geometrixx/en.json) we can get details of page but not the content in a custom solution. I am wondering if using HTTP API we can also get page content. If no, which API we can use to get the content of pages. Can anyone please suggest.
With most pages you can make it end with ".infinity.json" to see all the details of the page. You can also add numbers such as ".1.json" to see 1 level of info, or ".2.json" to see two levels of detail. Some nodes are handled by specific servlets that may limit this behavior or give other options, but generally you can use this to view your own custom pages/nodes.
Also see
https://sling.apache.org/documentation/bundles/rendering-content-default-get-servlets.html#default-json-rendering
https://gist.github.com/nateyolles/c683f8b39ca1e4688b38
I need to change and customize the login page, implementing the
"IviewService"
isn't not good enough, i need the full layout.
any idea ?
Implementing a custom IViewService is exactly how you change the full layout.
However, if you want to change only the login page, you can do so by adding your own html that implements the same angular logic as the existing login page and adding it to a folder named templates with a file name of _login.html.
If you want to modify the layout (the headers) then you need to do the same this time naming the file _Layout.html.
This is all detailed in the documentation, with the above listed as "Replacing partial views".
I need to add a button for each user in admin's user list (admin/user.php).
is it possible to do it from my local plugin? if yes how?
Or I need to edit the user modules manually?
The only way to do this without a core code modification, would be to use the theme (or possibly a local plugin) to inject some javascript into the page to add the button after the page has loaded.
The page itself is quite old, so it doesn't use a renderer, so overriding the generated HTML via the theme is not an option. The user actions aren't designed to be pluginable either.
Depending on what you are wanting to do, you could, of course, create a local plugin that adds a new link to the 'Site administration' tree. On the page this links to, you could add your own list of users, with whatever buttons you wanted on them.
I have a Liferay site. I have several pages that needs to be tagged so I can get them in a custom portlet.
I also need to present a page with an alphabetic index of the tagged pages.
I have read documentation and I have seen that Liferay can put a tag or a category only on "assets" (web content, etc.) and not on a page/layout.
Can you suggest me a way to do it?
You are right about tag/category, these can't be applyed to layout (unfortunately).
The best alternative is to use custom attribute and define the extra fields for the page.
See this image
You can read the custom attribute for the page using ExpandoBridge API.
Here an example to read an extra attribute within the theme velocity template.
#set ($customField= $layout.getExpandoBridge().getAttribute("CustomFieldKey"))
Note: Remember to set the permissions on each custom attribute. It's very important!
I can create forms via templates with no problem. I found a plugin (create-page) from Adaptavist that allows you to create pages from a template. When a user clicks the create-page macro link it creates/saves the page from the template without allowing the user to change the fields.
I want the create-page macro to allow the user to fill in the form fields before saving the new page.
Is there a way to do this with this macro or perhaps there's another way of doing this?
You can try out ConfiForms plugin for Confluence. Quite easy to use.
The form-mail macro from Adaptavist was the answer. It allows you to create email forms inside your pages. Mail form NG plugin is free to use up to version 3.03 for Confluence up to version 5.3.4