125
Views
8
Comments
Solved
Theme module depending on theme module
Question
Application Type
Reactive

Hello!

Here is the my dilemma...

I have a theme module (foundation) that I use for some forms. These forms never have the login stuff.

But now I want to build a module with the same theme, but this must have the login stuff.

What's the best approach to handle this, for reuse the images, colors, etc from the theme in both scenarios?


2023-04-06 11-24-23
Paulo Zacarias
Solution

Hi, 

So, as João Marques said, you can take advantage of dependencies between themes. Example: the main theme contains the login feature and some images that you want to use across the entire fabric, but the Forms theme contains another set of elements that you want to use and also some custom CSS. Does the Forms theme depend on the main theme? If so, on your new modules, you can consume elements from the main theme and also from the form's theme.

If you don't want the form's theme to have the login feature, you can simply remove it from the flow.

Not sure if I was helpful with this answer as I'm not getting 100% of what is the requirement. 

Regards, 

PZ


2023-04-06 11-24-23
Paulo Zacarias
Solution

You want to always login using the login page of the FW_TurismoJovem, correct?


So, on the OnException of the FW_TurismoJovem_BO, you will want to use that login page when the user is still not logged in.

Regards, 

PZ

2018-10-29 08-31-03
João Marques
 
MVP

Hi Diogo,


A theme can consume another theme.

This is actually very common, when you have a corporate theme (the branding of your company, the general look and feel for that company apps) which is consumed by an application theme (specific look and feel adjustments for that company.


So in that case, if the images / login are to be used across the factory, they would stay in the "corporate theme" and can be used / consumed by the application theme. If they are only to be used at the application level, then I would place them in the application theme.


Kind Regards,
João

2023-04-06 11-24-23
Paulo Zacarias

Hi Diogo, 

If this theme will be highly reusable from now on, I would suggest you create a ThemeTemplate based on this theme, with the login feature inside. So, the next time you create an application, you can create it using this theme. 

If this is just for the creation of a couple of modules, you can add the login feature manually to these couple of modules. 

Regards, 

PZ

2023-11-10 11-46-42
Diogo Barbosa

Hi Paulo,

If I undestood, I can have the theme module with login, and the in the forms without login I remove the login stuff. Is that right?

2023-04-06 11-24-23
Paulo Zacarias
Solution

Hi, 

So, as João Marques said, you can take advantage of dependencies between themes. Example: the main theme contains the login feature and some images that you want to use across the entire fabric, but the Forms theme contains another set of elements that you want to use and also some custom CSS. Does the Forms theme depend on the main theme? If so, on your new modules, you can consume elements from the main theme and also from the form's theme.

If you don't want the form's theme to have the login feature, you can simply remove it from the flow.

Not sure if I was helpful with this answer as I'm not getting 100% of what is the requirement. 

Regards, 

PZ


2023-11-10 11-46-42
Diogo Barbosa

Thanks Paulo,

just one more thing...

now I have the dependencies to the theme set in both modules.

But in first module I have this scenario:


and in the second module this scenario:

How can I "enable" the common on the UI Flows in this second module?

The first module is OK... I think :)

Thanks!

2023-04-06 11-24-23
Paulo Zacarias

Hi, do you want to enable the common on the second module to do what exactly? Is it for the exception handler? You can create a Common flow there, add the OnException, and inside it, redirect to the Login of the main theme. 

Is that the purpose?

Regards, 

PZ

2023-11-10 11-46-42
Diogo Barbosa

What I really want is to enable the login in the second module.

The common flow of the FormsWeb_Layout_Th2 has what I need... but it's in the "wrong" place :/

2023-04-06 11-24-23
Paulo Zacarias
Solution

You want to always login using the login page of the FW_TurismoJovem, correct?


So, on the OnException of the FW_TurismoJovem_BO, you will want to use that login page when the user is still not logged in.

Regards, 

PZ

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.