<append-heading:> aint working

16 views
Skip to first unread message

Vivek Sampara

unread,
Nov 14, 2011, 10:49:07 AM11/14/11
to Hobo Users
<append-heading:> -- The Hobo Blog</append-heading:>
I am trying to append a page's heading using <append-heading> tag as
described in the cook book. the structure of my dryml is more like
this

<login-page>
<append-heading:>
-- The Hobo Blog
</append-heading:>
<content-header:>
</content-header:>
</login-page>

The application doesn't crash but the header is still the same. Any
solutions for this ?

Thanks
Vivek

Matt Jones

unread,
Nov 14, 2011, 2:02:52 PM11/14/11
to hobo...@googlegroups.com

Not sure what you're adding in the <content-header:> param, but that's going to override the ENTIRE content of content-header. Example from pages.dryml.erb:

<def tag="index-page" for="<%= model.name %>">
<page merge title="#{ht '<%= model_key %>.index.title', :default=>[model.model_name.human(:count=>100)] }">
<body: class="index-page <%= model_class %>" param/>

<content: param>
<header param="content-header">
<h2 param="heading">
<ht key="<%= model_key %>.index.heading">
<model-name-human model="&model"/>
</ht>
</h2>

<p param="count" if>
<ht key="<%= model_key %>.collection.count" count="&collection_count">
<count summary/>
</ht>
</p>
</header>

--Matt Jones

Vivek Sampara

unread,
Nov 14, 2011, 2:34:46 PM11/14/11
to Hobo Users
Basically I am trying to have an image at the Title of the Application
( more like a logo ) .

Example : MY HOBO APPLICATION
<img> MY HOBO APPLICATION

but if i replace the <app-name> tag with this img, then its showing
ever where i use the <app-name>. I just need it to be visible on the
page header . Any ideas on this ?

Thanks

Vivek Sampara

unread,
Nov 14, 2011, 2:39:10 PM11/14/11
to Hobo Users
I am trying make the page header with an image, If i am changing the
tag <app-name>, Where ever im using this tag, im getting an image. I
just want it to appear on the top of the page ( page header above the
menu ) .

Thanks

kevinpfromnm

unread,
Nov 14, 2011, 3:22:26 PM11/14/11
to hobo...@googlegroups.com
The parameter you're probably after is app-name, not the tag.

<extend tag="page">
  <old-page merge>
    <prepend-app-name:>
      ...
    </prepend-app-name:>
Reply all
Reply to author
Forward
0 new messages