Forums
>
Product Discussion - DotNetNuke Modules
>
Dynamic Views
No records displayed until search
Last Post 09-09-2013 05:04 AM by Ryan Bakerink. 5 Replies.
Author
Messages
Brett West
skipping stones
Posts:8
08-27-2013 12:47 PM
Is it possible to change this text that displays when no records are found?
Ex. "No records displayed until search‟
Ryan Bakerink
river guide
Posts:1900
08-28-2013 04:58 AM
Hello Bret,
You should be able to go into the ASCX files of your Dynamic Views and change the Text of labels for settings.
You'll need to go into your site's folder: /DesktopModules/Dynamic Views/Dynamic Views Resources/App Local Resources
Open the DynamicViews.ascx and look for the text "No records displayed until search". If you locate it in this file, you can alter it and save it. Upon saving, make sure you go to Host -> Host Settings and restart the application. Then check to see if this text has been changed within your Dynamic View.
Let me know if you have any questions.
Thanks,
Ryan
Brett West
skipping stones
Posts:8
08-28-2013 08:25 AM
Thanks Ryan. Will this change the message for all instances of Dynamic Views that are in use? I only want to alter this message for one page.
Ryan Bakerink
river guide
Posts:1900
09-06-2013 05:59 AM
This will change the text for all Dynamic View instances on your site.
Since this isn't what you want, I'd recommend inspecting the label text and see if you can extract an HTML Name, ID or Class that's associated with this text.
IF you find a Name, ID or Class, you can use JavaScript to re-label this.
Example JavaScript if you find an ID:
document.getElementById('IDOfLabelText').innerHTML = 'New Label Text Goes Here';
Please let me know if you have any questions, issues or concerns.
Thanks,
Ryan
Brett West
skipping stones
Posts:8
09-06-2013 12:46 PM
Thanks Ryan. Your JavaScript solution sounds like it will work.
I inspected the label and it showed a class of "DynamicViews_ErrorLabel"
I added the following under javascript in the dynamic views module configuration but it did not work.
document.getElementsByClassName('DynamicViews_ErrorLabel').innerHTML = 'New Text Here';
Am I missing something?
Thanks.
Ryan Bakerink
river guide
Posts:1900
09-09-2013 05:04 AM
Hello Brett,
The issue may be that you're trying to re-assign the value to the label that you're focusing on within the Initial JavaScript section.
It's possible that this span does exist yet on the page when you're executing this JavaScript.
I would recommend using FireBug for Firefox or Inspector for Chrome. Load the page, and then execute the JavaScript I've provided within the Console for one of these browser developer tools.
Do you see the text changing to what you set using the JavaScript once executing it from the console? If so, you may need to add a Script injecting module. This way you can make sure that when you execute your JavaScript, the HTML tag is rendered on the page and can be referenced.
If you need a script injector tool, I have one available(free). Just simply email me and let me know that you're interested. rbakerink (at) datasprings (dot) com
Thanks,
Ryan
Forums
>
Product Discussion - DotNetNuke Modules
>
Dynamic Views
film izle
720 izle
film
sinema izle
film makinesi
T�rk�e dublaj film
film izle
film izle
baglan film izle
sinema izle
1080 film izle
film mercegi