Web Connection
Customized and dynamic menu items
Gravatar is a globally recognized avatar based on your email address. Customized and dynamic menu items
  Kathy
  All
  Dec 21, 2018 @ 03:40pm

Hello all,
I've just started working with Webconnect 7.0 but before I go too far, I'd appreciate your help on this.

I need to implement custom menu items that are dynamic too!
So depend on the client URLs, I need to have custom menu items that need to be retrieved on the fly after launching the website.
And for now it's only menu items that need to be dynamically customized and not the templates.
I'm trying to use Webconnect 7.0 templates, menu and css as much as possible.
Do you have any idea on what the best approach would be.

Thank you in advance.
Kathy

Gravatar is a globally recognized avatar based on your email address. re: Customized and dynamic menu items
  Rick Strahl
  Kathy
  Dec 22, 2018 @ 12:18pm

I would probably create a custom partial for the dynamic menu items (if they are all together in a group) or else make the entire menu a partial. Then as part of your model you can add a collection (or whatever - could be a cursor) of menu items that you can build your menu UI from in the partial.

It works in the _layout page as well, but it's probably a good idea to isolate that logic so it's easier to find and edit.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Customized and dynamic menu items
  Kathy
  Rick Strahl
  Dec 23, 2018 @ 05:52pm

Thank you so very much for your help.
It will be my first experience with partial.
Kathy

Gravatar is a globally recognized avatar based on your email address. re: Customized and dynamic menu items
  Kathy
  Rick Strahl
  Jan 4, 2019 @ 12:38pm

I'm really enjoying RenderPartial.
And the links were very helpful.
Thank you so much Rick.
Kathy

Gravatar is a globally recognized avatar based on your email address. re: Customized and dynamic menu items
  Rick Strahl
  Kathy
  Jan 5, 2019 @ 09:09pm

Great...

This stuff has been in there for a long while (since v6.0 anyway) so always surprised how few people are actually using those features (Layout, Partial) since they are so useful...

+++ Rick ---

© 1996-2019