Is there a Confluence macro for last modified separated Page Sections, paragraphs and elements? - confluence

Recently we had the following problem:
The article includes several sections which are very important for my colleagues from three different departments.
According to my colleagues - the article is updated properly, except for one vital section which hasn't been updated for more that three months.
Default 'last modified' page block displays that the most recent update took place two weeks ago and our new colleagues had no idea about the section which hasn't been touched by the author for more than three months, which caused some issues.
Is there a way to create a macro which displays the most recent update for the selected section of the page? For example:
entire page - last modified on Jun 06, 2019;
selected section - last modified on Apr 03, 2019.
We need to use similar functionality like here and also here , but the macro body should be able to select a section of the page (a paragraph or a table for example).
Confluence/Server.
Thank you.

This is probably not possible (not the easy way you would like to have it implemented).
Except some heavy scripting (ScriptRunner for Confluence) or custom addon development, the only easy way is the following:
Try to move these 3 sections into 3 separate sub-pages and link them the main (parent) page - using Page Include macro.
On top of each section you may add information (custom macro) about last subpage updated date.
However, this solution has its pros & cons:
(+) out of the box solution
(+) you can further restrict pages who can and cannot edit the subpages (sections)
(-) you need to script custom user macro to display the last page update of different page than current (should be easy)
(-) teams will have to edit subpages instead of the main page (a simple process change)
Alternatively, you can check with StiltSoft and their InPlace Editor - this addon works with section and it would be interesting to let them ask if they are open to implement your requested functionality.

Related

Last line en RichEdit

I am a pensioner who has a small job, writing electronic guides - often on 10 - 20 pages, or more.
I use Delphi 2007 and RichEdit component - a choice made for several reasons.
The company I work for finds that their customers do not read the instructions correctly (the entire instructions), and thus the customer does not get the product assembled correctly and the product will therefore not work.
I hope you can help me.
I want an example of a feature in Delphi source code that notifies me - that now the last line of the guide line is visible at the bottom of the RichEdit text box. (That is, a function that notifies me that the last line of the text has been scrolled - whether I use the arrow keys or the scroll bar)
Thanks in advance.
And a heartfelt thank you to all those who make their skills available for the site.
Lars Christensen
Denmark

How to add page break between file documents in master document libreoffice writer?

I have created master document in libreoffice and added some subdocuments (odt) and I need to put page break between them. Every new document needs to start with new page. I have found some answers on forum but there are not very clear. Thanks in advance!
Before this I used different page style, so I used manual break to use different page style for rest of document. I need to remove this enter tag, if I delete it, it deletes a manual page break.
I need to add page break.
I got this answer at ask.libreoffice.org and I think it is worth of share.
If your sub-documents represent chapters in your book, you have a much
more elegant solution than adding manually page breaks in the master.
I assume that your files are all styled (which is a necessity when
working with master + subs otherwise formatting becomes a nightmare)
and you assigned Heading 1 to the chapter headings.
Then customize Heading 1 in the master to add a page break (before) in
the Text Flow tab properties.
An even better approach is to share all styles between master and subs
with a personal template. Master and subs should be based on this
template. A template brings in the possibility to automatically update
formatting of all documents: change the style definition in the
template; next time you open a document, you’re asked if you accept
the update.

mediawiki category links are redlinked?

category links for which i haven't created custom pages are displaying as red links. i was under the impression that actually creating a page is optional for category pages.
a typical situation can be :
an article is called up.
one of the category links at the bottom of the page will be red.
clicking on the link will take me to a valid category summary.
clicking on another category link at the bottom of the article (a white one) will
also take me to a valid category summary.
returning to the article, the second category link is now also red.
is there a way to tweak the wiki so category pages are displayed in white, regardless of whether they have a custom page created for them ?
the wiki is running MediaWiki 1.29.1.
as it turns out, the problem was that the styling for a.new and a.new:visited appeared with a higher precedence than that for catlinks. unless the desire is to require every single wiki to have every single category be fully defined [i.e., providing a landing page for each category], this isn't a good approach.
one of the great powerful features of mediawiki is its capability that allows admins and maintainers to categorise articles as they wish without requiring them to create a landing page for every single category. however, if this is your goal, the styling won't support it as-is, due to this precedence problem. you can insist on precedence for catlinks however, by appending !important. although many people detract from the use of !important, this use case is pretty much textbook for the reason it was designed in the first place.
if your need is more in line w/that envisioned by the maintainers of the current mediawiki release [i.e., you want to have a hand-designed landing page for every single category and have no need for truly automatically-generated categories], this is a non-issue.
The colors are set using CSS, you should create new CSS and add it to MediaWiki:Common.css to apply it to ask skins. If this page does not yet exist just create it.
The ‘.catlinks’ class controls the formatting of links to categories, and the colors for wanted pages are defined by the ‘.new’ class, eg a.new, a:new:visited.
The original code can be found in the mediawiki/resources/src/mediawiki.skinning/interface.css file.
Just add CSS to fix the font colors to those you choose to Common.css, eg
.catlinks,
.catlinks a.new,
.catlinks a.new:visited {
color: #0645ad;
}

How can I reuse a text string within and across Confluence pages?

I'd like to minimize the number of times I have to type dates and version numbers across release notes pages and such on Confluence.
How can I reuse a text string within the same page as well as across pages on Confluence?
Right now, I have a bit of text (for example, a version number) which is typed out in multiple locations:
Page A
Top of page
Middle of page
End of page
Page B
I'd like to be able to type the value once and have it automatically appear in all places.
There are multiple bits of text I'd like to do this with on one page.
The closest I've found so far is the MultiExcerpt macro, but unfortunately it displays all content with newline wrapping instead of inline and that's a dealbreaker for me.
You may want to look into Comala Metadata, sounds like what you are looking for.
Disclaimer, I work in the company behind that app, in Comalatech.
Regards,
Gorka
Have you tried using Confluence own Include Macro or the Excerpt Macro. The include macro can be inline if you keep it on the same line in the editor.
There is an official extension called Multi Excerpt. It works like Excerpt, but you can use more then one for one page.

Reorder Umbraco to have Articles/Year/Month/Article map structure

I have a website that's been running for over a year. The overview is getting lost in the Articles doctype and I've been asked to change the file structure from Articles/Article to Articles/Year/Month/Article.
In short, the admin opens Umbraco and sees the Articles and clicks the arrow to see all the articles. It then takes a couple of minutes since the are all loaded. Instead I want a map structure that devides the articles into year and month published.
Since i'm talking about 5k articles, I can't really do this manually.
Any advice?
You could do 2 things:
Create a simple script which moves all articles into a year/month folder structure. Should be pretty simple to make.
Add a List View content type on your "Articles" template. It will give a searchable list with all 5K articles. It will prevent the loadtime in Umbraco UI. You can see how the list view works here: http://www.robertgray.net.au/posts/a-first-look-at-umbraco-container-content-types
You need to look at the UrlProvider and ContentFinder configuration in your umbraco instance.
Shouldn't require any manual editing of the articles provided they were posted on the days you would like them to display as.
Take a look at this: https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/