Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:18
    debbiedoesgithub edited #3098
  • 02:17
    debbiedoesgithub edited #3098
  • 00:33
    debbiedoesgithub opened #3098
  • Nov 30 10:13
    designzwang opened #3097
  • Nov 28 22:04
    pablop76 opened #3096
  • Nov 27 14:56
    MidiBro commented #3079
  • Nov 27 14:55
    MidiBro commented #3079
  • Nov 22 08:49
    blurfx starred gantry/gantry5
  • Nov 18 04:41
    performedia starred gantry/gantry5
  • Nov 17 18:49
    uGE70 opened #3095
  • Nov 16 18:56
    bjornclaesgithub commented #2656
  • Nov 14 23:57
    J-Wick4 commented #3078
  • Nov 14 00:34
    Klerus87 closed #3093
  • Nov 10 09:21
    oakmountain commented #3043
  • Nov 07 17:03
    Klerus87 edited #3093
  • Nov 07 03:48
    josefpsurny opened #3094
  • Nov 04 14:57
    Klerus87 edited #3093
  • Nov 04 14:24
    Klerus87 opened #3093
  • Nov 04 11:27
    fabiobettiol opened #3092
  • Nov 03 14:35
    gioras edited #3089
kitsec
@kitsec
Apologies, I did miss something. The background was defined in the owl carousel. The same image is used as a fallback in the section. Bu it is not visible as long as the owl carousel is active. So changing the section background was not needed. Just change the owl carousel.
Fatih YILDIZ
@fyildiz1974
@kitsec can i see live site what you are asking?
1 reply
Dolcevia.com
@Dolcevia_twitter
Joomla 4 has an issue which they say maybe template related i.e. Gantry 5 hydrogen because that the tempalte I am using. I need meta keywords in the header of articles because the 'related articles' module and the 'show banner by keyword' do not work if the tempalte doesnt show meta keywords. Is there any way I could add these to the header? Anyone know how? Example page: https://www.dolcevia.com/nl/italie-reizen/reistips/181-watertekort-drukt-noord-italie-tot-snel-herstel-waterwegen
Christophe Lance
@uGE70
@Dolcevia_twitter Hello, I am using Hydrogen with mod_related_items module without any issues. Joomla 4 is not displaying meta keywords tag anymore, it's normal. The module is only looking for matching meta keywords in the database.
2 replies
Nicu B
@nicutor

Hi there! I've created a custom child theme for grav (gantry5 theme) and I am looking for a way to auto-update it from an URL. How can I do this?

I can see this on theme/gantry/theme.yaml:

details:
  updates:
    link: 'https://domain.com/themes/theme.yaml'

But what should that file contain?
Thank you!

Nicu B
@nicutor
Anyone? :)
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