Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Jared Member

@csixtyfour · Joined 9 years ago · 82 posts · 13 topics · 22 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Page.media.images outputs blank title and alt fields in some cases · 8 years ago

    Thanks @apotropaic That works perfectly!

  • Page Blueprint Issues | Fields/Tabs not showing up · 8 years ago

    Hi It may be that line 7 should be "tab" not "tabs". Also I don't know if its copy/paste into the forum but you should only have 2 spaces for your indents, this looks more like tabs which would kill i

  • Displaying All Taxonomies that are set · 8 years ago

    Have you tried swapping this line {% for tax,value in taxlist %} for {% for tax,value in taxlist[taxonomy] %}? I still think that's the route cause of your errors.

  • Page.media.images outputs blank title and alt fields in some cases · 8 years ago

    Hi I'm not sure if this is a bug or me doing something stupid. I'm setting my alt and title tags via fields in the admin panel. When I've got one image per page things work fine with code like this {{

  • Displaying All Taxonomies that are set · 8 years ago

    What code exactly are you using to get that error? I assumed, maybe incorrectly, your taxonomy list is actually called "taxonomy" is this correct? Did you do a dump on taxlist on its own just to be s

  • Admin Panel - Can users create or edit image.meta.yaml files? · 8 years ago

    Hi You can manually add fields to your page blueprints, I've done this to add in alt and title tags. Its a bit of extra hassle but it works. I'm not 100% sure (cause I don't use them) but I think you

  • Displaying All Taxonomies that are set · 8 years ago

    Did you try to dump the output of taxlist just to confirm there is actually data there before all the sorting and filtering start? I suspect the issue is in this line: {% for tax,value in taxlist|sort

  • Displaying All Taxonomies that are set · 8 years ago

    On my system the 2nd option I gave produced an output like your desired output, what did you get?

  • Displaying All Taxonomies that are set · 8 years ago

    Hi I'm not 100% sure what you're looking for but I think your code will only output the actual taxonomy name(s). If, instead, you want a list of the taxonomy values then you'd want something like this

  • Modular page best use case · 8 years ago

    Yes that is correct. Also, the blueprint is not exclusive so you can put say 90% of the page content hard coded into the twig file and only have a few modifiable fields in the blueprint or vice versa.