Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapCustom Search ButtonCustom Search Button
Previous
 
Next
New Post
8/19/2009 11:09 PM
 

I'm using the Directory setup and would like to include the search option.

All seems fine except I'd like control over the 'go' button.  The manual says:

Button Element ID – You can provide your own custom search button by providing the element id as it appears in your html here.

That's not making much sense to me. What element id appearing in what html?

Does anyone know how to use a custom button image?

Thanks

 
New Post
2/23/2010 12:12 PM
 
David, You either found the answer yourself, or you just moved on. I have the same issue, so I thought I would play around with it to see what I could come up with. I believe that there are two solutions. 1) Create your new "go" button, and name it search.gif, and replace the default button at Root/DesktopModules/Map/search.gif. This should work just fine, but if you ever upgrade the core, or module, you would have to recopy the search image, as it would probably get replaced with the default image. 2) Use the Button Element ID as suggested. Here is my interpretation of what the developers are asking. Using “Developer Tools” in IE or “Firebug” in Firefox, you can use the select or identify element tool on the default go button in your map page, and you should end up with something like this. “” Well looking at what is returned, I can see that the button Element ID is “btnSearch522” and that this image using this id points to the default map module go button. So it would stand to reason that if I create an element in a CSS file with this name, I should be able to redirect the source to a different image. So I put something like this at the bottom of my skin.css file: #btnSearch522 { src: url(/images/search_go.gif); } This statement should override the hard coded path and redirct the source of the image file to my new destination and file. Then the only thing left to do would be to place “btnSearch522” in the map modules “Button Element ID” text box. After saving and reloading, I believe that it should now work, but it does not. When I place btnSearch522 in the Button Element ID text box, not only does the button not show up, but neither does the search text box. Like you, either I do not exactly understand what is being asked for, or I do and it is not working. If someone sees any errors in my logic, please let me know. It is too bad that this module is not being supported by the developers, as it does about 85% of what I would expect from a map module. I do understand that the developers are mostly if not all volunteers, and that they might not have the time at this point in their lives to finish what has the potential to be a very good module. But it sure would be nice if a few of them could at least answer some simple questions like this one, where the documentation is lacking. I have had great success with it so far, and I have been able to get most of it woking through trial and error. By the way, David, if you found a solution to this issue, maybe you could reply and help save some of the hair I have left.
 
New Post
2/23/2010 4:30 PM
 

Sorry about the previous post. 

I used "Quick Reply" and most of my hard return - paragraphs were removed.  I also noted that when I posted the results of my select element for the go button, it actually placed the go button from the map module into the post instead of the results so I am placing the results within a comment tag to see if it appears correctly.

<!-- <img id="btnSearch522" src="/DesktopModules/Map/search.gif" complete="complete"/> -->

I previewed this, and it appears to be working correctly.  Too bad the forum module does not allow the poster to go in and edit thier own posts.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapCustom Search ButtonCustom Search Button


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out