Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 02 22:14
    jaceksu starred gantry/gantry5
  • Feb 01 22:41
    mblithium starred gantry/gantry5
  • Jan 31 10:26
    marktaylor46 commented #212
  • Jan 31 10:17
    N8Solutions commented #212
  • Jan 30 23:08
    csbalazs commented #3088
  • Jan 30 23:07
    csbalazs commented #3088
  • Jan 30 23:07
    csbalazs commented #3088
  • Jan 30 22:42
    csbalazs edited #3088
  • Jan 30 22:42
    csbalazs edited #3088
  • Jan 30 22:41
    csbalazs edited #3088
  • Jan 30 22:41
    csbalazs edited #3088
  • Jan 30 22:33
    MuscleheadDeveloper starred gantry/gantry5
  • Jan 27 20:21
    alaahariri commented #3100
  • Jan 25 14:17
    lipatovroman commented #3113
  • Jan 25 14:17
    lipatovroman closed #3113
  • Jan 25 13:31
    lipatovroman commented #3113
  • Jan 22 22:43
    lipatovroman opened #3114
  • Jan 21 22:17
    lipatovroman opened #3113
  • Jan 21 22:12
    lipatovroman commented #3112
  • Jan 21 19:19
    itismasi starred gantry/gantry5
Matias Griese
@mahagr
in grav you just point to the theme itself -- the parent theme will have its own update
but in grav, you basically do the normal update procedure (same as with plugins)
so you need to add the theme to gpm, do not forget to add gantry as dependency
those are defined in the main blueprint file
see helium
Nicu B
@nicutor
Thank you @mahagr I will take a look into this.
Jan
@PhocaCz
Hi, is there any info when Gantry will be PHP 8.1 ready? Testing now Gantry on 8.1.6 getting fatal errors from Twig. Thank you.
dmleeman
@dmleeman

@PhocaCz Hi Jan, some users are encountering fatal errors with PHP 8.1.x (Search in left column for PHP8.1)

I wonder if it is the server implementation (extensions and options)

My host upgraded to 8.1.8 today and I am fortunate to encounter no problems with Gantry 5 and Joomla 4.1.5

Jan
@PhocaCz
@dmleeman I am running 8.1.6 on localhost (installed by Xampp, Linux) and get fatal errors like this:
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;
}