How do l get Site Title in user macro

Masocha Masocha October 17, 2013

What is the method to get SIte Title in a user macro.l know there is $content.getTitle() for page title.However l need to get the global Site Title

2 answers

1 accepted

1 vote
Answer accepted
Masocha Masocha October 17, 2013

Thankx for the reply managed to fix it was looking for something like $generalUtil.getGlobalSettings().getSiteTitle(); in the user macro

Alexej Geldt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2013

@Masocha Masocha Good Job

0 votes
Alexej Geldt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2013

your question is not quite clear. Are you talking about a WebWork module?

I used to set titles for my templates in WebWork modules like this:

in velocity template:

<h3>$i18n.getText("my-plugin.title")</h3>

in my-plugin.properties:

my-plugin.title=Page Title

in atlassian-plugin.xml:

<resource type="i18n" name="i18n" location="my-plugin" />

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events