-
Posts
6,684 -
Joined
-
Days Won
37
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Projects
Release Notes v5
Forums
Events
Store
Gallery
Entry Comments posted by Daniel F
-
-
IC5: Menus
in Blog
1 minute ago, Adriano Faria said:So I assume this check:
{{if ( $topic->canPin() or $topic->canUnpin() or $topic->canFeature() or $topic->canUnfeature() or $topic->canHide() or $topic->canUnhide() or $topic->canMove() or $topic->canLock() or $topic->canUnlock() or $topic->canDelete() or $topic->availableSavedActions() or $topic->canMerge() or $topic->canUnarchive() or $topic->canRemoveArchiveExcludeFlag() or \IPS\Member::loggedIn()->modPermission('can_view_moderation_log') or $topic->canToggleItemModeration() ) or ( $topic->isFutureDate() and $topic::canFuturePublish( NULL, $topic->container() ) ) or ( $topic->hidden() == -2 AND \IPS\Member::loggedIn()->modPermission('can_manage_deleted_content') )}}
for topics, for example, won't be necessary anymore as I can make the checking for each entry in the extension, right?
This is a limitation that prevents us from adding links in the Action menu.
The entry explains it already;)
The menu templates will include the link that opens the menu, as well as the menu itself. You'll notice that the above contains a call to the hasContent() method. This method will check if the menu object has any elements inside; if a user does not have permission to any of the elements, nothing will be displayed.
-
IC5: Menus
in Blog
Since it's a Raffle item, where you're in control of the class, you can do whatever you want with the menu.
But for other applications, where you'll have to use the UIItem Extension, you're able to place it at the beginning or end
- Esther E. and Adriano Faria
- 2
-
That said, you can also use always JS and CSS to manipulate the output.- IPCommerceFan and G17 Media
- 1
- 1
-
IC5: Menus
in Blog
Yea, it's already in the Content\Item and Content\Comment class, you'll just call it in your template or override the method in your content class if you want to add something own.
- Adriano Faria and Miss_B
- 1
- 1
-
3 minutes ago, annadaa said:
can developers make improvements to your applications like LMS if they are only available on the cloud and therefore they have no access to the source files
It depends on what you’re trying to achieve, but devs can indeed to do a lot with help of GraphQL, REST and webhooks.
-
The capability to change how most stuff in IPS works and enhance it with own features/apps isn't going away.
What changed is how things have to be done. Some changes will be much easier, others will be probably annoying as hell for people who are used to how the hooks worked in v4, some will think that it is a huge step backward, but as Matt said, it had to be done, to provide a much more stable and faster-improving code base for v5, because we'll be able to alter or even deprecate methods, method parameters and even deprecate complete (internal) classes much faster, which also 3rd parties and clients will benefit from.
With v5 I'm really expecting fewer "A new community release with some huge under-the-hood BC breaking changes is here, all my apps are now broken and need to be updated ASAP" scenarios.
Code listeners are a quite common pattern used in modern applications, most php framework use this approach today. It's the perfect balance between none capability to change the core behavior via 3rd party code and the too-powerful proxy autoloader which we had in 4.x, which as powerful as it was, had also way too many problems.
I've read about concerns about missing event locations which were common in v3 and that it took ages to have new hooks implemented => Keep in mind that we have now a monthly release cycle, so I'm quite sure it's not going to take now that long to ship improvements as long as they make sense and fit into the general vision of the product.
-
18 minutes ago, DawPi said:
I'm just curious, @Daniel F as far I remember you wrote that your SEO app will be ported into v5. But how? I can count all hooks used by this app and there are ~ 15 file hooks. Many of them are hooked into "not allowed by v5" areas. So how? 🙂
1. You should all cool down and wait for the upcoming news and also the final product before getting in such a panic rage.
2. Please see my reply in the SEO topic:
On 7/25/2023 at 8:07 AM, Daniel F said:I'm not sure yet if all the features will work or if some will have to be removed
3. See the first point. We're listening to feedback and implementing changes based on it, just like Esther and Matt implemented changes today based on the provided feedback.
4. I think you're all way too scared.
There's still so much that can be done, it's 2023, and there are other ways and solutions than to edit files..
4 minutes ago, Charles said:Sure. Basically, when we think Daniel, we think llamas.
ALPACAS! I'll repeat very very slowly just for you: AL PA CAS
- SeNioR-, Esther E., Ryan Ashbrook and 2 others
- 5
-
-
IC5: UI Extensions, Part II
in Blog
Posted
You can still run the group check and include the necessary js/css files, or set the JS variables only when it’s needed.