Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:53
    karendunne commented #2942
  • 12:53
    karendunne commented #2942
  • 12:52
    karendunne commented #2942
  • Aug 06 21:20
    komir2004 opened #3067
  • Aug 04 18:33
    benjacob starred gantry/gantry5
  • Aug 03 00:12
    puhapuru edited #3064
  • Aug 02 17:49
    dgrimey edited #3066
  • Aug 02 17:47
    dgrimey edited #3066
  • Aug 02 17:42
    dgrimey opened #3066
  • Aug 01 01:07
    newjie opened #3065
  • Jul 29 06:57
    simone80an closed #3063
  • Jul 29 03:36
    puhapuru opened #3064
  • Jul 28 21:26
    N8Solutions commented #3063
  • Jul 28 16:02
    simone80an commented #3063
  • Jul 28 14:54
    N8Solutions commented #3063
  • Jul 28 13:44
    simone80an opened #3063
  • Jul 27 15:13
    rhukster closed #216
  • Jul 27 15:12
    rhukster locked #216
  • Jul 27 11:25
    thomasallen9 opened #216
  • Jul 24 17:29
    EvilSound commented #2873
Jan
@PhocaCz
image.png
image.png
When searching the web, found the same or similar problem here: https://issuehint.com/issue/gantry/gantry5/3052
Jan
@PhocaCz

I solved the fatal error with downloading latest Twig, customizing some code, e.g.
FROM:
public function getGlobals()
TO:
public function getGlobals() : array

to avoid fatal errors like this: "Compile Error: Declaration of Gantry\Component\Twig\TwigExtension::getGlobals() must be compatible with Twig\Extension\GlobalsInterface::getGlobals(): array". I can work in administration but then I get fatal errors on frontend like this: "Unexpected token "name" of value "if" ("end of statement block" expected).", etc.

Jan
@PhocaCz

Even this can be relatively simple solved:
FROM:

{%- set offcanvas = null -%}
{%- for segment in segments if segment.type == 'offcanvas' %}
{%- set offcanvas = segment -%}
{% endfor -%}

TO:
{%- set offcanvas = null -%}
{%- for segment in segments %}
{% if segment.type == 'offcanvas' %}
{%- set offcanvas = segment -%}
{% endif %}
{% endfor -%}

So, with some simple changes, it works for me. Then unimportant warnings can be changed too:

Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 133

Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 98

Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 79

Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 143

Of course, the not working twig blocks need to be replaced on different places too.
Jan
@PhocaCz
Hmmm, but it seems like there will be some more problems like overwriting the code for new Twig (e.g. missing tag spaceless, etc.) ... yes, maintaining non-essential layer (twig) over functional layer (php) seems to be not so easy :-(
nate covington
@nate:covingtoncreations.com
[m]

hi everyone, i'm having issues where my gantry5 cache gets corrupted, and the home page turns into a white screen, e.g:

Error: Creating directory failed for /home/user/public_html/cache/gantry5/g5_hydrogen/compiled/config/27db06d628b0cec24a0622f7d2df9676.php:

Creating directory failed for /home/user/public_html/cache/gantry5/g5_hydrogen/compiled/config/5fae0ac87da073a419170e2d76896fc0.php

I log in and clear the cache and it fixes it right away...

then, when I log in via FTP, it looks like that /config/ folder is corrupted, like it turned into a file?
dmleeman
@dmleeman
@PhocaCz Hi Jan, I think that @mahagr has viewed your posts, so, given the detail that you have posted here it may get some attention.
yehudac
@yehudac:matrix.org
[m]
hi im using gantry5 with grav
how do i add padding to the menu items? (they are all crushed together)
yehudac
@yehudac:matrix.org
[m]
i tried lots of things i have no idea where to place css (classes inline-block, padding)
sry matrix not letting add a picture
yehudac
@yehudac:matrix.org
[m]
where do i add css classes (inline, padding)
yehudac
@yehudac:matrix.org
[m]
i tried putting it into particle defaults and nothing changes either
nate covington
@nate:covingtoncreations.com
[m]
/public_html/templates/g5_hydrogen/custom/scss/custom.scss
1 reply
yehudac
@yehudac:matrix.org
[m]
i thought the the idea of gantry was low code
2 replies
i guess once you create a class you could use the dashboard in theory
yehudac
@yehudac:matrix.org
[m]
1 reply
how do i add space here without going into backend code
nate covington
@nate:covingtoncreations.com
[m]

These are the standard classes
https://docs.gantry.org/gantry5/tutorials/utility-classes

You put them in the back end... not code... - extensions - templates - layout

yehudac
@yehudac:matrix.org
[m]
oh cool gantry has its own standard classes
would any help my case
i only see nomargin (i want margin)
CharlieBigley
@CharlieBigley
I have installed Joomla 4 plus Gantry 5 and now want to install a theme (any theme). Tried both Hydrogen and Helium, both say JInstaller: :Install: Can't find XML setup file.
1 reply
antoniotheant
@antoniotheant
Hi all, please how to add Google Tag Manager to Gantry/Joomla without using plugin? Thanks
2 replies
bbaileywick
@bbaileywick
I am attempting to update the PHP on my website. It is currently at level 7.4. My template is CloudBase 3 and it was built upon Gantry Framework v4.1.43. When I try to do the update of PHP, I receive an error: “0 Attempt to modify property “params” on null…”. Any suggestions? Download and update to Gantry 5? Recreate the website with Gantry 5? Help if you can. I see that this is set up for code developers so I apologize for the intrusion.
Michael Koontz
@N8Solutions
@bbaileywick I replied to you in the Gantry 4 room.
gwillson2
@gwillson2
I have managed to learn utilising custom code in CSS ID at block level in Gantry 5. My line: "#g-footer a { color: #fff; } #g-footer a:hover { text-decoration: underline; }" the first instruction works, the second doesn't. My link text is now white but hover function is dead. Can I only enter one instruction in this field?
dmleeman
@dmleeman

@gwillson2 Hi, from what you've written here it looks like you are writing inline styles as attributes of the section. If you take your CSS out of the Block and place it in the custom.scss

/templates/[TEMPLATE]/custom/scss/custom.scss

Then you should find it works

gwillson2
@gwillson2
Yes- I did that and it worked fine, thankyou. I am left wondering what is the purpose of this cool feature. I can happily use my custom.scss file for everything but I tried the block edit to see if it was worth learning.
dmleeman
@dmleeman
@gwillson2 Yes the block edit is great for adding a new #id or css class, then you can set .scss style specifically for that Section or Particle. It's particularly useful for more complex site or those that need an 'anchor' tag for custom javascript.
Personally, I avoid tag attributes unless absolutely required as they make re-factoring your (S)CSS more of a pain. But, ids and classes, yes, I use those often.
simone80an
@simone80an

Hello, im trying to stick the footer at the bottom, im using Helium theme in Joomla, so i added this code to custom.scss:

.bottom {
position: absolute;
width: 100%;
bottom: 0px;
}

then applied the class bottom to the footer section but then the footer goes over the content, if i comment bottom: 0px; i correctly see all the content but the footer isn't displayed properly all or just disappear in pages where there is much content.

Integral Hockey Inc
@Integralhockey_twitter
Hello, I randomly started getting the error "no menu selected" 404 page not found anytime I try to do anything in Helium theme (edit, remove, anything). I didn't do this the other day, and I haven't touched it since. Not anytime I try to do something I just get this error. Any help would be appreciated. Thanks.
Fassendek
@Fassendek
Hello! And there are only 3 module positions in the Helium template? Or can it be viewed or added somewhere?! Is there any documentation on the structure of the Helium template?
dmleeman
@dmleeman
@simone80an Hi, try the new position: sticky now allowed in CSS.
example:
.bottom {
position:-webkit-sticky; 
position:sticky;
bottom:0;
}
dmleeman
@dmleeman

@simone80an In fact, I do not think that the above will work now I have tested it on a live gantry site! I only tried it in some other html layout...
Not sure how gantry nests the body/page surround/section positions to be honest.

Personally, I would approach it using a UIKIT attribute but then I use a UIKIT 3 library on all of my Joomla Gantry sites.

@mahagr Hi Matias, is it possible to add a new breakpoint in the Gantry Layout > Styles > Breakpoint ?

Ideally I would like to add a further breakpoint for Mobile Landscape and rename the current Mobile designation to Mobile Portrait.

simone80an
@simone80an
@dmleeman thanks for your reply! Im also using UIKIT 3 as i use third party particles, so do you know how i can approach using it? Btw seems i solved with some custom js code combining with CSS.
dmleeman
@dmleeman
@simone80an In that case if you are using Joomlead UIKIT then you can also use the UIKIT 3 native attributes to achieve the sticky effect.
In Joomlead's case simply replace the uk- prefixes with jl-
I will try it on a dev site and get back to you later this morning
dmleeman
@dmleeman

Yup, it's tricky...the attribute I tried below did not work when applied to the footer

jl-sticky="position: bottom; end: !.jl-height-large; show-on-up: true;"

So, perhaps the footer needs taking outside of the flow so that it can attach to the viewport?

Sandman
@009Sandman_twitter

I got this reply back from a developer. Can someone please explain how we accomodate this

1) The site template is not honoring joomla template yet. This is creating problems. For example; this url is a core joomla component and must work with any joomla template.

He adds:

the problem is that site is not showing joomla default components

like user component for login/logout etc.

simone80an
@simone80an

@dmleeman thanks for your reply, i don't know if it's the best solution but seems i have solved using this js code

jQuery(function() {
    scrollCalculation();
    jQuery(window).resize(function() {
        scrollCalculation();
    });
});

function scrollCalculation(){
jQuery('#g-footer').removeClass('bottom');
    if (!(jQuery(document).height() > jQuery(window).height()))
        jQuery('#g-footer').addClass('bottom');
    else
        jQuery('#g-footer').removeClass('bottom');
}

and this CSS:

.bottom {
position: absolute;
width: 100%;
bottom: 0px;
}
Fatih YILDIZ
@fyildiz1974
What about the issue #2661? I can't add extra tag attributes on Joomla v4.1.5 + Gantry Helium v5.5.14
@mahagr
1 reply