Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Change the format of the text in an Excerpt Include?

L. Sheppard March 18, 2019

I have an excerpt defined on page A, and an excerpt include on page B. I want the text to come over onto page B but I want it to look different - different font, different alignment. Is there a way to change the format of the text coming to the target page without changing the format of the text in the source page? 

3 answers

1 vote
Fabienne Gerhard
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2019

Hi @L. Sheppard 

there may be a way changing the style via css writing a usermacro where you put the excerpt include macro in - but you will need some coding skills for that. 

There is definitly the opportunity to change macro style - but it's always the question whether it is worth the effort. 

For inspiration have a look on this topic where Davin Studer changed the look of the child macro. 

L. Sheppard March 21, 2019

Thanks for the link Fabienne and that's an interesting topic. But I haven't created user macros before and don't have time to try to figure out how to do that now unfortunately. 

0 votes
Matt Reiner _K15t_
Atlassian Partner
March 19, 2019

@L. Sheppard you can totally do this, but in a limited way. Once you've added the Excerpt Include macro on page B, select the macro and apply standard text formatting from the toolbar, like heading style, bold, alignment etc.

This will effect all included content, so if you make it bold, all content will be bold, etc.

In fact, if the page A excerpt contains a numbered list, and you put the Excerpt Include macro on page B within a numbered list, it will display the numbered list from page A as a sub-list under the list on page B.


Screen Shot 2019-03-19 at 09.50.46.png

 

 

Screen Shot 2019-03-19 at 09.50.54.png

L. Sheppard March 21, 2019

Hi Matt, so that's not working for me. I tried applying basic formatting to the macro (heading 6), but it just included the original formatting from the source page. 

Here's what the result is: 

ExcerptInclude_target_final.PNG Here's the content in Edit mode: 


ExcerptInclude_target_edit.PNG

And here's the code - it looks like everything should be formatted as h6, but that's not what is displaying. : 

 

ExcerptInclude_target_code.PNG

Matt Reiner _K15t_
Atlassian Partner
March 22, 2019

@L. Sheppard Well that's surprising. It looks like the heading formatting of the original content overrides the formatting on the Include macro. I can't believe it works that way, but it does. :(

Well, a solution would be to remove the formatting from the original content and then only apply formatting to it when you include it on a page.

L. Sheppard March 22, 2019

Yes, I'll do that, bummer that it won't work, seems like something really useful to others too.

0 votes
Dominic Lagger
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.
March 18, 2019

Hi @L. Sheppard 

The key sentence you wrote is "... without changing the format ... in the source page?"

And for this the answer is no, you can't. Because the excerpt just display what is in the macro from the source page. 

A solution would be to copy paste the information, but then you lose the automated synch.

Hope this will help you.

L. Sheppard March 21, 2019

Thanks for the response Dominic.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Confluence Events