You are not logged in.

Controlpanel

Statistic

  • Members: 13113
  • Threads: 18186
  • Postings: 119693 (ø 46.07/day)
  • Greetings to our newest member: mislonly

w2d Premium-Support

Die Experten für web to date / shop to date

Facebook

voodoo36

Intermediate

  • "voodoo36" is male
  • "voodoo36" started this thread

Posts: 308

Occupation: IT System Administrator – Anlagen-Programmierer

web/shop to date Version: Webtodate 6.0, 7.0 u. 8.0

  • Send private message

1

Monday, February 6th 2012, 9:40am

Sidebar Navigation

Hallo Conny, ich möchte die aktive Seite in der Sidebar Navigation farblich anders darstellen, ich habe Button eingebaut. HIER zu sehen, nun gibt die vorhanderne ccml + css nicht mehr her... kannst du mir da weiter helfen das die geöffnete seite z.B mit einem dritten Button farblich abgesetzt wird? Ich habe es so geändert das nur die Hauptseiten u. die dritte Ebene gezeigt wird, weil sie mir sonst zu lang wird.
Grüße aus Bayern

This post has been edited 1 times, last edit by "voodoo36" (Feb 6th 2012, 9:52am)


cojo_1008

Super-Moderator

  • "cojo_1008" is female

Posts: 3,609

Location: Berlin-Kaulsdorf

Occupation: Freiberuflerin

web/shop to date Version: shop to date 5 - shop to date 8

  • Send private message

2

Monday, February 6th 2012, 1:49pm

Wie sieht denn für diesen Bereich dein Code in der navigation.ccml aus?
Gruß Conny

voodoo36

Intermediate

  • "voodoo36" is male
  • "voodoo36" started this thread

Posts: 308

Occupation: IT System Administrator – Anlagen-Programmierer

web/shop to date Version: Webtodate 6.0, 7.0 u. 8.0

  • Send private message

3

Monday, February 6th 2012, 3:33pm

Ich kann dir den gerne posten,

HTML

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div id="nav">
	<cc:if cond="&page.topiccount gt 0">
		<cc:loop type="topic" obj="mytopic" maintopic="&page.maintopic.number">
			<a class="main" href="<cc:print value="&mytopic.url">"><cc:print value="&mytopic.caption"></a>
   			<cc:loop type="subtopic" obj="mysubtopic" maintopic="&page.maintopic.number" topic="&mytopic.number">
   				<a href="<cc:print value="&mysubtopic.url">"><cc:print value="&mysubtopic.caption"></a>
			</cc:loop>
		</cc:loop>
	<cc:else>
		<cc:loop type="maintopic" obj="mymaintopic">
			<a class="main" href="<cc:print value="&mymaintopic.url">"><cc:print value="&mymaintopic.caption"></a>
   			<cc:loop type="topic" obj="mytopic" maintopic="&mymaintopic.number">
   				<a href="<cc:print value="&mytopic.url">"><cc:print value="&mytopic.caption"></a>
			</cc:loop>
		</cc:loop>
	</cc:if>
</div>
Grüße aus Bayern

cojo_1008

Super-Moderator

  • "cojo_1008" is female

Posts: 3,609

Location: Berlin-Kaulsdorf

Occupation: Freiberuflerin

web/shop to date Version: shop to date 5 - shop to date 8

  • Send private message

4

Monday, February 6th 2012, 4:11pm

probiere mal so:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div id="nav">
	<cc:if cond="&page.topiccount gt 0">
		<cc:loop type="topic" obj="mytopic" maintopic="&page.maintopic.number">
			<a class="main<cc:if cond="&mytopic.isexactpagetopic"> sel</cc:if>" href="<cc:print value="&mytopic.url">"><cc:print value="&mytopic.caption"></a>
   			<cc:loop type="subtopic" obj="mysubtopic" maintopic="&page.maintopic.number" topic="&mytopic.number">
   				<a class="main<cc:if cond="&mysubtopic.ispagesubtopic"> sel</cc:if>"  href="<cc:print value="&mysubtopic.url">"><cc:print value="&mysubtopic.caption"></a>
			</cc:loop>
		</cc:loop>
	<cc:else>
		<cc:loop type="maintopic" obj="mymaintopic">
			<a class="main<cc:if cond="&mymaintopic.ispagemaintopic"> sel</cc:if>" href="<cc:print value="&mymaintopic.url">"><cc:print value="&mymaintopic.caption"></a>
   			<cc:loop type="topic" obj="mytopic" maintopic="&mymaintopic.number">
   				<a class="main<cc:if cond="&mytopic.ispagetopic"> sel</cc:if>" href="<cc:print value="&mytopic.url">"><cc:print value="&mytopic.caption"></a>
			</cc:loop>
		</cc:loop>
	</cc:if>
</div>


und in der style_design.css

Cascading style sheet

1
#nav a.sel {color:#ff8000;}


Wie immer Eigenschaften anpassen...
Gruß Conny

voodoo36

Intermediate

  • "voodoo36" is male
  • "voodoo36" started this thread

Posts: 308

Occupation: IT System Administrator – Anlagen-Programmierer

web/shop to date Version: Webtodate 6.0, 7.0 u. 8.0

  • Send private message

5

Monday, February 6th 2012, 9:07pm

Hallo Conny, hat super geklappt... danke :thumbsup:
Grüße aus Bayern