SearchInput Field ImageUrl

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/24/2010 9:33:19 PM
Gravatar
Total Posts 2239

SearchInput Field ImageUrl

Hi Joe,

To use the ImageUrl property on the SearchInput field, the image must be in the /Controls directory or you must use a full path to the image. It would be more useful if the ImageUrl referenced the skin directory.

Thanks,
Joe D.

3/25/2010 7:57:30 AM
Gravatar
Total Posts 18439

Re: SearchInput Field ImageUrl

Hi Joe,

I just looked at the code and I don't remember doing this so I think someone else worked on this at some point, but it looks like you can use "skinbase_" as a prefix to an image located in the skin folder so if you had an image named search.png you would put skinbase_search.png and it will replace the skinbase_ part with the base url to the skin folder.

Alternatively, you can put any path there in the format ~/path/to/yourimage.png

Hope it helps,

Joe

3/28/2010 4:15:28 PM
Gravatar
Total Posts 2239

Re: SearchInput Field ImageUrl

Hi Joe,

Yeah that's a little weird but as long as it works, I'm good with it. I am designing a skin that will be used on multiple sites so having a hard-coded path isn't really an option. I'm glad this little trick exists.

Thanks,
Joe D

You must sign in to post in the forums. This thread is closed to new posts.