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

Karmalakas Veteran

@Karmalakas · Joined 6 years ago · 1180 posts · 28 topics · 216 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Dynamically add / remove items from form field list · 4 years ago

    Your LeafletMarker field (I'll call it that way, because it makes more sense to me) should be as a standalone field like any other (Text for example). List field deals with adding/removing markers. Th

  • Dynamically add / remove items from form field list · 4 years ago

    I'm lost here... You want to have a list of markers (where marker has an ID, a longitude and a latitude), right? So you should use List field as it is and add your Coordinates (or maybe better yet - L

  • Dynamically add / remove items from form field list · 4 years ago

    How familiar are you with JS? I believe these are your lines: list.on('click', '> .collection-actions [data-action="add"]', (event) => this.addItem(event)); list.on('click', '> ul &gt

  • Access plugin options inside same plugin admin form field · 4 years ago

    I believe you should keep field path same as usual: [YOUR_PLUGIN]/templates/forms/fields/field_name/field_name.html.twig And to access plugin config via Twig, check "Accessing Plugin Configuration Val

  • Dynamically add / remove items from form field list · 4 years ago

    I think this is what you're looking for https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/app/forms/fields/collections.js

  • Rethinking Leaflet plugins · 4 years ago

    There's absolutely no point having multiple plugins to make one feature work. It's up to user to choose which plugin to use and if someone installs several plugins to do the same thing, well... it's u

  • French typography · 4 years ago

    @bricebou: Reading the PHP-Typography library code, I see it… I will modify the code accordingly Do not modify library code. It should stay in vendors exactly the same as installed.

  • French typography · 4 years ago

    ATM I don't have much time to look closely at it, but I'm gonna nitpick a bit 😃 Suggestion to change Twig filter to camelCase - betterTypo Translation string DASHES_TRADITIONALUS change to DASHES_TR

  • French typography · 4 years ago

    I think in this case I would go with list field where in each item you can select a language (from available ones) and then all the typography options for it. but also leave separate list of all same

  • French typography · 4 years ago

    @bricebou: in the blueprints.yaml, I’ve just copied what was produced by the PHP-Typography library… I should use a html value instead ? Copying is fine, but I think you copied too much. Even editor