Displaying 7 results from an estimated 7 matches for "in_menu".
2011 Feb 10
2
Menu definition problem
...rectly
link to a sub entry instead of the default "index.html", e.g. clicking
on EntryB in the menu should open EntryB/SubEntryB.1.html.
By using virtual entries for the top level entries I can have that
behaviour, but I can not deactivate the menu entry for the directory
itself ("in_menu: false" does not work). As soon as one of the sub entries
has "in_menu: true", the top level entry appears in the menu. I''ve tried
different settings for "{menu: }" but either used the wrong switch or
this is not possible. Furthermore, the menu structure is destr...
2008 Sep 14
2
virtual links
...irtual links and cannot seem to get this to
work right.
I copied the htmldoc.virtual file out of the mics folder that was
bundled with webgen5.4 and pasted that into my src directory. I then
edited the file to the link I wanted to use.
api.html
url: http://mylink.com
title: This is my link
in_menu: true
sort_info: 60
The link is in the menu for the website, but in the wrong place with a
bad link. The link is changed to ../http:/mylink.com. I also wanted
the link to be the last one in the menu, but I think that may caused
by another problem that I am having with the htmldoc.metainfo file...
2009 Jan 03
2
Some questions from a new webgen user
...the API
interface, but i am new to ruby and i''d rather use the standard user
interface).
- Is it possible to have different menus? I''d like to generate two
menus, one with the important pages, and another one with the usual
pages (which include the important pages). I can use the in_menu meta
information for the usual pages, but i would like to be able to use
some thing like {menu: {class: important}} for the important pages. Is
there a way to do this?
- let''s say i have a sidebar that i want to populate on some pages. I
can do this using a block sidebar on theses page an...
2008 Aug 16
2
Partial site generation
...#39;test1.page'' and ''test2.page''.
test
|- src
|- index.page
|- test1.page
|- test2.page
|- metainfo
I specified the all meta information of the pages in ''metainfo'' file.
metainfo:
--- name:paths
index.page:
title: Index page
in_menu: true
routed_title: New Website
test1.page:
title: Test Page 1
in_menu: true
test2.page:
title: Test Page 2
in_menu: true
In the files, ''index.page'', ''test1.page'', and ''test2.page'',
I only wrote their content without the meta inform...
2009 Apr 02
3
Generate static menus?
I want to stack three horizontal menus on top of each other, and also
define exactly what page will be in each menu. What files and syntax
do I use in webgen to accomplish this? I tried finding the answer here
and in the docs but could not figure it out.
I would also like to style each menu a bit differently if that is
possible. Actual examples especially appreciated!
Thanks!
2006 Aug 03
3
HELP: multiple select list in ror
...iew that generates a multiple select:
<select name="menu_select" size="5" multiple="multiple">
<% for m in Menu.find(:all) %>
<!-- this needs to be abstracted in ror fashion -->
<option value="<%= m.id %>"
<%= if @menu_section.in_menu?(m) then "selected=\"selected\">" else ">"
end %>
<%= m.name %>
</option>
<% end %>
</select>
It generates a nice multiple select and when used to view a menu section
it correctly displays the menus it belongs to even if there are...
2007 Jan 29
5
Getting the reason why this fails ??
Hi there.
Have this code, and i need to find put why it fails.
>>Controller
------------
def update
@user = User.find(@params[:id])
if @user.update_attributes(@params[:user])
flash[:notice] = ''The user was successfully updated.''
redirect_to :action => ''show'', :id => @user
else
flash[:notice] = "Error: The user