Programmatically create a table of contents in the Parent wiki page with the titles of the child pages as content - wiki

I am creating child wiki pages under one single parent page using a python script using confluence cli.
These appear as child pages at the bottom of the parent wiki page.
The requirement is that I need to create a Table of Contents in the parent page. This should contain the titles of the child pages that are being created.
I am not able to find how to add this Table of Contents, any pointer on how to do this please?
I am using confluence CLI for creating the wiki pages as follows:
confluence_cli = confluence.Client()
confluence_cli.add_page(parent-page-title, child-page-title, child-page-data)
What is the way to add a link to the child-page from within the parent-page?

You can add a Children Display macro to the parent page. This will list all children and even sub-children if desired.

Related

Kentico - Editable WebPartZones on children pages?

I added a WebPartZone in the master page at the top pf the master page, this web part zone is a message bar that will display on all the pages but could be different on each page. Is it possible to have a web part zone in the template that is editable on each page? Or is a different way to do it?
Thanks
The short answer no. From the template engine prospective whatever editable in the master - is not editable in its children. All editable web parts/widgets editable on the master, are not editable in its children.
If you really want to have an editable text in the master and all its children, you probably need to clone and customize web part and form control it is based on. Or create you own web part.
P.S. You can have editable text in your page template so all page that use this template will have this editable text working.
If you can give more details on what kind thing you want to edit would be easier to provide an answer
P.P.S. You can have a work around but it will not be with editable text. You will have to edit message text at the form tab. Would that suits you?
You can add the webpart on your master, and use a macro to get the content, like {%CurrentDocument.GetValue("Message")%}, but you have to add a field to each page to store the message in.
Just throwing out one more option, if what you want to display changes from page type to page type, you can put a repeater on the master page, put a path of a period (current document), then use macros to set the page type to the current document class name and the transformation to currentdocument.classname+".mastermessage"
Using a macro, then add a transformation "mastermessage" to each page type it will encounter, then you can change the fields and format for each page type.

Sitecore: Render content tree child items as list view

Is it possible to change the way items in the content tree are rendered in Sitecore?
In Umbraco, there's the option to render all child items of a parent node as either child nodes or in a list view outside of the tree. Next to the tab(s) belonging to the parent node, a node "child items" is added. In this node, all child items are rendered in a listview, supporting popular features like paging, sorting and search.
Is this possible in Sitecore?
Upon searching for an answer to this question, the most common reply is to use a bucket. However, when using a bucket, a message appears instead of the child nodes: "There are hidden items in this container". In a new tab next to the standard Content tab, the end user can search for a child item, but it doesn't seem to be possible to show a listview/grid.
So the question remains:
Can we render content tree subitems in a list/grid, in a new tab next to the Content tab, using features like paging and sorting.
Many thanks.
You can define a default query for your bucket. After that, when a user clicks on the bucket item, he will see search results right away in the form of a list.
Here's documentation on how to do this:
https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/search_and_indexing/create_a_default_and_a_persistent_search_query
In short, you just specify your query in the field Default bucket query of the bucket item.
I am not aware of any other way of achieving what you want. Sitecore content editor just doesn't have this feature from Umbraco.
You may want to take a look at the Subitem Express module.
It does not offer features such as a sorting, paging or searching, but it will display and allow editing of children from a single content editing pane, as well as allowing adding new and deleting children. The child items can also be hidden so that they are not visible in the tree by default, but you can enable "hidden items" to still edit the children like regular items.
Really depends on your requirements, but I've used the module for data heavy items where it was easier to enter through the Content Editor than all the fluff around the Experience Editor to speed data entry.

Moving sublayout that contains another sublayout from one placeholder to another

I have an issue in the Page Editor where i have created a sublayout in a placeholder, and add another sublayout inside that sublayout (nested sublayout).
And when i moved the parent sublayout to another placeholder (still using Page Editor), I am only moving the parent sublayout, but not the child sublayout. The child sublayout still pointing to the old placeholder, while the parent sublayout pointing to the new placeholder.
Is there any way to move both the parent sublayout and child sublayout from one placeholder to another using the Page Editor without having to go to the Presentation Layout in the Content Editor ?
Kind regards,
Adi
This is a known limitation of Page Editor. On saving of the renderings field, Sitecore does not crawl through nested sublayouts in the previous renderings to find any children that need to be updated.
You could customize the pipelines to do this search and update the renderings XML yourself. Alternatively, some of the Sitecore development accelerators that are available for purchase already have this fix in it.

how to add variables to joomla urls?

I am creting joomla component. In admin part main page shows users list. By click on toolbar icon for each user i want to show some list of information from my tables. By clicking at list element or toolbar menu i want to open from with fields for editing info from the list.
How can i transfer user ID from list of users to list of info and to the edit form (then adding new list elem, id of current user must be saved in the table with other data)?
Withowt joomla i can use some variable like selected_user_id in uri's, by what is the right way in joomla?
Maybe use standard html link, where you will put userId in GET variable.
In Joomla you have JRequest class (http://docs.joomla.org/JRequest/11.1). You can use one of it's methods to get (getVar(), getInt() or getString()) or set variable (set()).

Umbraco macro - Displaying content in all nodes

I have a navigation bar in which all links are grabbed from Umbraco items (entered by the user). This navigation bar needs to be displayed on all pages. I tried inserting the items into the master template, but the links are not passed down to slave nodes. So, I'm assuming I need some sort of a macro which grabs the content and displays on all pages.
Does anyone have any suggestions?
I answered a question about creating a multi-level XSLT navigation menu a while back:
Create multilevel menu for umbraco using XSLT?
Perhaps that will get you going?
I think the key is that you need to get to the top of the content tree (home), then build the navigation. Otherwise the nav will be based on where in the tree the current page is.