Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

html - content navigation help -


i'm working on content navigation in typoscript. these requirements should accomplished:

  • show current node @ top -> done!
  • show child nodes of current page -> done!
  • if there no child nodes, show last treelevel with current page active - not done yet!

for last point, need help. tried [treelevel = 2] control navigation on last treelevel, nothing happened. don't know why treelevel-condition won't work me. problem is, last treelevel on 2nd level, on 3rd...

any ideas?

this typoscript far:

temp.leftcol = coa temp.leftcol {     5 = html    5.value = <ul class="contentnav">     ### show current page on top    10 = text    10.typolink {       parameter.data = tsfe:id    }     10 {       wrap = <li class="title">|</li>       data = leveltitle:2       if {          istrue.numrows {             table = pages          }       }    }     ### content navigation: show subpages    20 = hmenu    20.entrylevel = -1     20.1 = tmenu    20.1 {       noblur = 1       no = 1       cur = 1       expall = 1    }     20.1.no {       wrapitemandsub = <li>|</li>       stdwrap.wrap = |       allstdwrap.insertdata = 1    }      20.1.cur {       wrapitemandsub = <li class="on">|</li>       stdwrap.wrap = |       allstdwrap.insertdata = 1    }     20.1.wrap = |</ul> } 

what mean exactly?

if there no child nodes, show last treelevel with current page active - not done yet!

as understand it, either

1) letssay there 10 pages on level 1, , every 1 of pages except page 7 have 3 subpages each. , letssay page 7 has no subpages. then, when go page 7, display page 7 active, display subpages page 6 (the "show last treelevel") under it.

or

2) when user navigates page 7, displays page 7 active, , subpages whatever page user has been right before that? example, if navigate page 2 first, , go page 7, see page 7 active, , subpages page 2.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -