Hi, I''m wondering on the best way to add a left menu to instiki pages. Is it to use [[!include Menu]] ? but it''s hard to have menu entries be developped as sub menus when selected. Or should I build my own ror app with a real menu on the left, and use render_component in layout to make instiki page appear ? -- Jean-Christophe Michel
Hi Jean,> I''m wondering on the best way to add a left menu to instiki pages. > Is it to use [[!include Menu]] ? but it''s hard to have menu entries be > developped as sub menus when selected.The !include directive will include the content of the referenced page as part of the page contents (i.e. it will not be on the left). Not sure I understand what you''re after with sub-menus: so you mean context sensitive?> Or should I build my own ror app with a real menu on the left, and use > render_component in layout to make instiki page appear ?Take a look at Pimki for an implementation of a side menu in Instiki. Cheers, Assaph
Assaph Mehr wrote:> The !include directive will include the content of the referenced page > as part of the page contents (i.e. it will not be on the left).Yes, but with css it should be possible to change this...> Not sure I understand what you''re after with sub-menus: so you mean > context sensitive?Item1 Item2 Item3Selected SUbItem SubItem Item4 Ok ''ill look on pimki. -- Jean-Christophe Michel
> Yes, but with css it should be possible to change this...Not sure. I am not a CSS expert, but considering the div tree will be: <div id="Container"> <div id="Content"> <div id="revision"> actual page stuff included "menu" page more page stuff </div> </div> </div> I don''t think there is a way to move the "menu" section outside of the inner div, without editing the template.> > Not sure I understand what you''re after with sub-menus: so you mean > > context sensitive? > > Item1 > Item2 > Item3Selected > SUbItem > SubItem > Item4If I understand you right, the "Item3Selected" means that you want to expand only the relevant part of the tree. Which means context sensitive menu: you want to calculate the menu based on the page being displayed. How would you treat when someone clicks on a link from the current page to another page? This means: * All pages must be related to some part of the menu * You can''t statically !include a menu page, you need to calculate menu content per page load HTH, Assaph
Assaph Mehr wrote:>>Yes, but with css it should be possible to change this... > > I don''t think there is a way to move the "menu" section outside of the > inner div, without editing the template.If I enable html in markup, I can add <div id="menu"> in the Menu Page :-) -- Jean-Christophe Michel
Hi Jean,> If I enable html in markup, I can add <div id="menu"> in the Menu Page :-)As I said, not a CSS expert. I thought though, that since that menu div will inside the content and revision divs (as it''s part of the user content), you can not move it *outside * the content div. So the menu will take part of the content space. That is what''s used for the instiki home page, but perhaps that is what you''re after. That also still doesn''t solve the context sensitive aspect of the menu. You''ll need to create different menus and statically !include each one. When you implement it, will there be a public site? I''d love to see how you handle this. Cheers, Assaph
Assaph Mehr wrote:> When you implement it, will there be a public site? I''d love to see > how you handle this.I changed my mind and won''t use instiki. I need multilingual content with a lang menu, and a separate recursive menu tree. Too hard to setup. I''m building a rails app to do this, using redcloth. -- Jean-Christophe Michel
> I changed my mind and won''t use instiki. I need multilingual content > with a lang menu, and a separate recursive menu tree. Too hard to setup. > I''m building a rails app to do this, using redcloth.Cool, good luck. Would love to see the site when it''s done, for inspiration :-) Cheers, Assaph