|
css conflict template_css.css
by Lewis on 12/16/2008 00:20
template_css.css file under /com_sefservicemap/css/ folder did not work and I had to copy and paste it into site's main joomla template.css file
but list (li) class is conflicting with main site's css file. is there any way to have IDs or special CSS for this component so it wouldn't conflict with main sites list class definitions.
or is there a way to overwrite sites List (li) css class when service map sitemap links show.
Thanks,
Lewis
Re: css conflict template_css.css
Hi Lewis
Thank you for your post.
Quote:
template_css.css file under /com_sefservicemap/css/ folder did not work and I had to copy and paste it into site's main joomla template.css file
What exactly is a problem with this CSS file?
You can change default CSS styles definition on SEF SM configuration and add custom li CSS definition to CSS file.
Could you send me a site link?
Regards, Radek.
Same problem for me
by Mike on 01/03/2009 11:13
Hi all
Yep, I have the same css problem.
Seems for some (or at least 2 of us!) the template_css.css file isn't working quite right. I ran a test adding borders, etc to the Service Map template_css.css file and these weren't displayed.
I wonder if it is a name conflict (many templates use this name for the main css file), or if the ul and li css sections are overiding the Service Map's (which would be odd). I also noticed that, after installation, the Service Map config shows css level1, level2..... but in the css file is level10, level11....
Anyway, I have got around this by adding my own css classes to the sefservicemap.html.php, replacing the $levelx ones. This bit (I don't need lower than level4):
[code] switch ($element->level) {
case 0: $class = 'class="sitemap_level1"';break;
case 1: $class = 'class="sitemap_level2"';break;
case 2: $class = 'class="sitemap_level3"';break;
case 3: $class = 'class="sitemap_level4"';break;
case 4: $class = 'class="'.$level4.'"';break;
case 5: $class = 'class="'.$level5.'"';break;
case 6: $class = 'class="'.$level6.'"';break;
case 7: $class = 'class="'.$level7.'"';break;
case 8: $class = 'class="'.$level8.'"';break;
case 9: $class = 'class="'.$level9.'"';break;
default: $class = 'class="'.$levelx.'"';break;
}[/code]
On a slightly different note, I've just noticed something that may or may not be an issue. My sitemap splits into two columns, after the last level0 item. Looking at the source, I have this:
[code]Top Menu
Register Free
User Area
Footer Menu
Support Joomla
Valid XHTML
Valid CSS[/code]
(code is running not displaying, wanted to just add the HTML, don't know how to stop that. Can the source be viewed for HTML?)
... a new column is started just after the 'Footer Menu', so the items contained in that are in a 2nd column. Is that how is is supposed to be?
Re: css conflict template_css.css
Hi Mike.
Better way (without code changes, but effect is the same) is change CSS definition on SEF Service Map Configuration:
1st level CSS Class from level0 to sitemap_level1
2nd level CSS Class from level1 to sitemap_level2
3nd level CSS Class from level2 to sitemap_level3
4nd level CSS Class from level3 to sitemap_level4
Regards, Radek.
Dr. Bob: I am also unable to change the display
Quote:Hi Mike.
Better way (without code changes, but effect is the same) is change CSS definition on SEF Service Map Configuration:
1st level CSS Class from level0 to sitemap_level1
2nd level CSS Class from level1 to sitemap_level2
3nd level CSS Class from level2 to sitemap_level3
4nd level CSS Class from level3 to sitemap_level4
Regards, Radek.
I read this thread after running into the same sort of problem, and I tried changing the above in the CSS definition on SEF Service Map Configuration. I tried just modifying the indent a bit, but this made no change to the display.
I would like to display the links differently, but am unable to change them.
Best regards,
Dr. Bob Miller
Trace Systems, Inc.
Re: css conflict template_css.css
I had the same css problem.
I found that it was because my install is hardcoded.
And since my test install is in a subfolder it didn't work.
To get it to work I had to change line 213 in the sefservicemap.html.php
Orignal says:
Code:... link href="/components/com_sefservicemap/css/template_css.css" rel="stylesheet" type="text/css" ...
changed to:
Code:... link href="/testinstall/components/com_sefservicemap/css/template_css.css" rel="stylesheet" type="text/css" ...
Where /testinstall is the name of my subfolder.
I removed the first and last characters, because for some reason, when I type those it doesn't display correctly.
Any way the first characters are $css= '
Re: css conflict template_css.css
You can change all points in the sefservicemap.html.php
"/components/com_sefservicemap/"
to
"components/com_sefservicemap/"
|