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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Undocumented events (e.g., `onPageFallBackUrl`) · 10 years ago

    I understand priorities. I'm going to look at how I can give back to the documentation once I finish this batch of plugins. Thanks for your reply. Going to be a busy forum morning for you today :)

  • Undocumented events (e.g., `onPageFallBackUrl`) · 10 years ago

    There are some internalevents that are not commonly used that have slipped by the documentation process. onTaskFallBackUrl is a good example. I had completely forgotten about it because it's only us

  • Undocumented events (e.g., `onPageFallBackUrl`) · 10 years ago

    I did finally find the Grav.php that had the onPageFallBackURL mentioned, but I'm still not clear on what it does or where the onTask.* events come from.

  • Undocumented events (e.g., `onPageFallBackUrl`) · 10 years ago

    I'm looking at the login plugin for inspiration as I work on the webmentions. I notice some events that don't seem mentioned in the documentation—specifically, onPageFallBackUrl and the onTask.* event

  • Header injection · 10 years ago

    For now, because everything else is working as expected, I'm going to copy/paste the Grav code and just publish. If a workaround becomes available, then great.

  • Header injection · 10 years ago

    But the core code detects things like http_equiv, and that's reflected in the returned array. So the plugin would have to also detect those things and adjust the array correctly (basically copy/paste

  • Header injection · 10 years ago

    Well I think you can do whatever you need by getting the pre-processed metadata with Page::metadata() this gets a simple array. Then you can null things, or set new things, or modify existing things

  • Header injection · 10 years ago

    The trick, though, is that I want the core Grav metadata code to do the work. If the user wants to inject Twitter cards or a refresh value, the Grav code already detects and handles that. I don't want

  • Header injection · 10 years ago

    Thanks. I will see what I can do.

  • Header injection · 10 years ago

    Well, they are processed when pages are built with Page::init(). After each page is processed onPageProcessed is called passing that page via the event. this is the best place to manipulate anything