Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...bug in community default skin searchbug in community default skin search
Previous
 
Next
New Post
1/13/2012 7:05 PM
 

The visual C# code in admin/skins/search.ascx.cs implies that defining a site icon will over-ride the DNN icon displayed for a site based search (rather than a google based web search).

It is not clear to me how a site icon is defined, but I have set the Favicon via admin configuration.

The favicon does not over-ride the DNN icon in the default skin search box nor in the drop-down list that appears when that icon is clicked.

Has the configuration option been omitted or is the favicon setting intended to over-ride the use of the DNN icon?

Either way there is a problem that needs to be fixed.

 
New Post
1/14/2012 2:53 AM
 

I don't think this is a bug.
The site icon is set in the Skin, you add this attribute to the Search skin object in there:
Look for something like:

< dnn:Search runat="server" id="dnnSearch">

SiteIconURL:
----------------------------------------------------------------
Sets the site icon URL. If SiteIconURL is not set or
empty then this will return a site relative URL for
the dotnetnuke-icon.gif image in the
images/search subfolder. SiteIconURL supports
using app relative virtual paths designated by the
use of the tilde (~).

 
New Post
1/14/2012 9:56 AM
 

Thanks for your help Timo. I haven't done any programming with XML, HTML, Visual C#, cascading Style Sheets, etc. - however your suggestion enabled me to find the bit of the file admin/Skins/Search.ascx.cs that needed to be changed. I set it to:

private string _siteIconURL = "~/Portals/0/favicon.ico";

Which is where I found that my uploaded favicon went when I used the site settings facility for setting that.

I accept what you say that the system did allow me to configure the web page to reflect what I needed and in that sense there is no bug.

However, I had configured the site to have my own favicon and that meant that the browser screen displayed my favicon in the url box and on the tab for my website window. It would make sense for there to be a configuration option to make the default skin use either the uploaded favicon or some other uploaded image in the search box / object (I'm not sure even what it is called). The level of effort & technical knowledge required to get the last two DNN images (both search box and its dropdown list) changed seems vastly different to that involved in configuring the rest of the web page.

I was impressed with how easy the admin/site settings facility allowed me to change the copyright notice, the logo image at the top left of the screen and the favicon used by the browser. I was even more impressed by how the site title was automatically used by the pages containing the privacy statement and the terms of use details.

The effort & knowledge required to change the icon used by the search box / skinobject is totally disproportionate - yet the default page / skin is not properly customised until that final DNN icon image is removed.

 
New Post
1/14/2012 1:49 PM
 

Eh, well you should not edit that file...
DotNetNuke has parts that are customizable and parts you should not customize.

The part you should not customize we refer to as the "Core".
Your change is a Core change which is a problem because the file gets overwritten if you upgrade DNN.
(And you would have to go back in and change the file again)

The design of your website including what icon to use for the search dropdown is called a skin in DNN.
In the skin there's a reference to the file you changed, with some attributes to set how it should be rendered.

As an example:
Open this folder
\Portals\_default\Skins\

You will see one or more folder there, these are skin folders.
(you can have several skin packages installed)
Now open the "DarkKnight" folder (I'm guessing your using DNN 6)
All the files in this folder are called a Skin package, which makes the visual appearance of your website.
This we call a skin folder.

The .ascx files you see are the actual skin version.
One of these ascx files is the file that get loaded as the skin, for every skin you can choose in DNN, there's an ascx file (with configurations HTML elements etc.)

Example:
If you open the file:
Home-Mega-Menu.ascx

It contains HTML and some special elements called skin objects.

In that file you will find this line:
<dnn:SEARCH ID="dnnSearch" runat="server" UseDropDownList="true" EnableTheming="true" Submit="Search"  />

This is a reference to the file you edited.
Here you can set it's properties, to determine how search box should be rendered.
The advantage of this is that a skin designer can determine if he wants to use the site icon or a custom icon. So if you would want the behaviour you want, you would change the line to:

<dnn:SEARCH ID="dnnSearch" runat="server" UseDropDownList="true" EnableTheming="true" Submit="Search" SiteIconURL="~/Portals/0/favicon.ico" />

The advantage of that is that a skin / site designer can choose what icon to use...
And you can have different skins with different behaviour, your change (apart from the upgrade issues) will set the same behaviour for all skins / site in a DNN installation, which is less flexible.

I hope it's clear.

Timo

 
New Post
1/14/2012 5:36 PM
 

Thankyou Timo, I really appreciate the time and effort you have put into providing such a comprehensive reply.

I haven't got as far as working out what files are changed when an upgrade is carried out. To move from 6.1.1 to 6.1.2 I just downloaded a new instance of the community edition and started again! So I have followed your advice and taken out the change I made that is installation wide rather than portal specific.

That left the icon in the search box as before showing as a DNN icon.

I located the skin being used as a default by looking at host settings. It is the darknight 2-column-right-mega-menu.

I edited the ascx file and updated it as you suggested and that worked a treat (once I found I missed off the ending quote symbol!!).

You have been very thorough and helpful - though I think you have amply demonstrated that expecting inexperienced users to find out about and do what is necessary to customise the search box is not really sensible - it should be part of the portal admin site settings function.

Thanks again for your diligence. Regards, Shane

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...bug in community default skin searchbug in community default skin search


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