Hello, I would like to automatically add an icon/button to all of my DDS converted screens using JavaScript in my custom theme.js.
Any idea's or help would be greatly appreciated.
Adding an icon/button to all DDS converted screens
-
- Profound User
- Posts: 60
- Joined: Tue Mar 17, 2015 12:48 pm
- First Name: Rick
- Last Name: Asaro
- Company Name: MISD
- Country: United States
- Contact:
-
- New User
- Posts: 15
- Joined: Wed Oct 28, 2015 2:48 pm
- First Name: Colin
- Last Name: McNeill
- Company Name: Profound Logic
- City: Irvine
- State / Province: California
- Country: United States
- Contact:
Re: Adding an icon/button to all DDS converted screens
Rick,
The easiest way in my opinion is to utilize the 'custom' directory located in the following path:
/www/<instance name>/htdocs/profoundui/userdata/custom/
All CSS and JS filse put in this directory will be loaded automatically.
Alternatively you could place your CSS files in different location and use the screen level property named 'external css'. In this property place the path where the CSS file is located.
Another method is to use our JS API's to dynamically load custom CSS or CSS files. Links to the documentation are below:
http://www.profoundlogic.com/docs/pages ... d=11206690
http://www.profoundlogic.com/docs/pages ... d=11206693
Let us know if this answers your question, or if you have more.
Thanks,
Colin
The easiest way in my opinion is to utilize the 'custom' directory located in the following path:
/www/<instance name>/htdocs/profoundui/userdata/custom/
All CSS and JS filse put in this directory will be loaded automatically.
Alternatively you could place your CSS files in different location and use the screen level property named 'external css'. In this property place the path where the CSS file is located.
Another method is to use our JS API's to dynamically load custom CSS or CSS files. Links to the documentation are below:
http://www.profoundlogic.com/docs/pages ... d=11206690
http://www.profoundlogic.com/docs/pages ... d=11206693
Let us know if this answers your question, or if you have more.
Thanks,
Colin
-
- Profound User
- Posts: 60
- Joined: Tue Mar 17, 2015 12:48 pm
- First Name: Rick
- Last Name: Asaro
- Company Name: MISD
- Country: United States
- Contact:
Re: Adding an icon/button to all DDS converted screens
Yes, I already have a custom js file with some other settings.
I was looking for some sample code to produce the button/icon.
Thanks.
I was looking for some sample code to produce the button/icon.
Thanks.
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Adding an icon/button to all DDS converted screens
Hi Rick,
The field named "add enhancements" in your conversion theme JS file is what you want to edit. I've tested this, and it works for me on a converted screen:
The field named "add enhancements" in your conversion theme JS file is what you want to edit. I've tested this, and it works for me on a converted screen:
Code: Select all
"add enhancements": function(format, isSubfile, isWindow) {
format.items.push({
"field type":"image",
"id":"Image99",
"left":"685px",
"top":"5px",
"image source":"/profoundui/proddata/images/image.png"});
},
-
- Profound User
- Posts: 60
- Joined: Tue Mar 17, 2015 12:48 pm
- First Name: Rick
- Last Name: Asaro
- Company Name: MISD
- Country: United States
- Contact:
Re: Adding an icon/button to all DDS converted screens
Thanks Matt, this code worked and got me going. I appreciate your help!
Who is online
Users browsing this forum: Bing [Bot] and 2 guests