Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joomla - The "Body Only" outline does not seem to work #1921

Closed
JoomFX opened this issue Mar 10, 2017 · 5 comments
Closed

Joomla - The "Body Only" outline does not seem to work #1921

JoomFX opened this issue Mar 10, 2017 · 5 comments

Comments

@JoomFX
Copy link
Contributor

JoomFX commented Mar 10, 2017

Hey Matias,

As far as I understand, the "Body Only" outline is the one used in the Joomla Print window.
But when I modify the "Body Only" outline nothing changes.

Here, have a look at this video for more details.

Am I missing something or is this a bug?

@mahagr
Copy link
Member

mahagr commented Mar 13, 2017

Body only is used on all modals in Joomla. There are two modes: html and raw mode (?type=raw), where both of them have static layout, which cannot be changed.

I think this was changes at some point as modals were totally broken unless static layout was used.

@JoomFX
Copy link
Contributor Author

JoomFX commented Mar 13, 2017

Alright, so there is no way to add/remove elements (particles) from the "Body Only" outline?
If so, why don't you just remove it from the G5 Admin? There's no point for it to be there if it is a static outline.
Or am I misunderstanding your comment?

@pscharfg
Copy link

pscharfg commented Mar 13, 2017

I found that by overriding /media/gantry5/engines/nucleus/twig/component.html.twig, I can add a logo or anything else I need to in the print window. If I do this, will it also change modal windows? Anything else? if so, is there a way to only affect the print window? Also, can you provide any guidance on how to utilize another particle (like logo) in component.html.twig? I can't seem to figure it out.

@mahagr
Copy link
Member

mahagr commented Mar 20, 2017

@JoomFX Body only still can be fully configured, just not the layout part of it.

@pscharfg Yes, changes will affect modals and ajax calls, as Joomla uses the layout for multiple different purposes, not just for printing.

The easiest way to change this would likely to change component.php from the theme and add some logic there to detect printing and choosing a different layout if so..

@LukeDouglas2
Copy link

Or better yet. Just duplicate the default template and remove all particles except the two on the 'Body Only' layout. Then you can assign away!

@mahagr mahagr closed this as completed Sep 28, 2020
@mahagr mahagr added this to the 5.4.36 milestone Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants