How to get page creator !

I need to get page creator from a macro, to use in Profile user Macro.

Please Help.

1 answer

Hi Bryan,

If you want the creator of the current page that the user macro is on then you can use:

$content.getCreatorName()

in your user macro. Is that what you wanted?

Andrew.

yep !!!! thnx men !!

UPS !!! doesn't work on production server. I test it on the developer server and work but on production server doesn't work... I need to use that with Bubbles community plugin. THNX !!

Could you post the contents of your macro here and I'll have another look? Also, is it the creator of the current page you want, or the creator of a page listed by one of the Bubbles macros?

Thanks,

Andrew.

I need the topic Author... ( page creator :S )

"the creator of a page listed by one of the Bubbles macros"

Ah, ok. If you use Tools -> Info on the forum root page and make a note of the pageID you could use something along the lines of:

#set ( $forumRoot = $pageManager.getPage(589833) )

<ul>
#foreach ($topic in $pageManager.getDescendents($forumRoot))
  <li>Topic = $topic.getDisplayTitle(), Creator = $topic.getCreatorName()</li>
#end
</ul>

where 589833 is the pageID of the root page I searched from in the above example.

It loops through all the child pages of the root page (which is what I think topics are?) and displays the title (topic) and who created it.

Needs tweaking to fit your exact needs, but hope it helps?

Andrew.

that looks awesome... but is not that I need... Only I need to display the creator profile inside the topic, something like

$content.getCreatorName()
but inside bubbles forum... :S this parameter doesn't work in bubbles... show:
com.atlassian.renderer.v2.macro.MacroException: No user $content.getCreatorName()

I'm confused. Where are you entering $content.getCreatorName() ? Could you post the contents of your user macro or macro parameters on this thread?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 3 hours ago in Off-topic

Miscellaneous Monday - CreatatronV3

You may remember, not so long ago, that together we invented the most evil of machines: The Destructo5000!  The effects of missing Durian rippled over nations. Complete chaos as goat chee...

37 views 2 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you