chris.paschen
Chris Paschen
I am creating a custom Details View layout for a form (only used for display purposes).
I have a 3 elements:
* display_method
* code_name
* real_name
The elements are just fields and are all 'hidden'.
In the view I am checking to see what 'display_method' is set. Based on that I display the code_name or the real_name. However, in order to make that work both elements need to be published and available - which means that they appear in the page source.
Is there any way to make them available to the view without being displayed in the page source?
I know I shouldn't be doing functions in the layout - so if this is just a generally bad thing (or can't be easily solved) I'll just have to create a new view in the db and handle the processing from there.
But I just want to make sure that I'm not missing anything.
I have a 3 elements:
* display_method
* code_name
* real_name
The elements are just fields and are all 'hidden'.
In the view I am checking to see what 'display_method' is set. Based on that I display the code_name or the real_name. However, in order to make that work both elements need to be published and available - which means that they appear in the page source.
Is there any way to make them available to the view without being displayed in the page source?
I know I shouldn't be doing functions in the layout - so if this is just a generally bad thing (or can't be easily solved) I'll just have to create a new view in the db and handle the processing from there.
But I just want to make sure that I'm not missing anything.