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.
×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?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Here's the content in Edit mode:
And here's the code - it looks like everything should be formatted as h6, but that's not what is displaying. :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I'll do that, bummer that it won't work, seems like something really useful to others too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.