Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 38833 invoked from network); 24 Nov 2009 17:44:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Nov 2009 17:44:18 -0000 Received: (qmail 73058 invoked by uid 500); 24 Nov 2009 17:44:17 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 72991 invoked by uid 500); 24 Nov 2009 17:44:16 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 72981 invoked by uid 99); 24 Nov 2009 17:44:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 17:44:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anampardo@gmail.com designates 209.85.220.216 as permitted sender) Received: from [209.85.220.216] (HELO mail-fx0-f216.google.com) (209.85.220.216) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 17:44:09 +0000 Received: by fxm8 with SMTP id 8so7451186fxm.7 for ; Tue, 24 Nov 2009 09:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WqCqdzVRdtNTGRtAroZXLfyfwMrin0fwtXD5NuFItD8=; b=WDQdjnKwtrIkiwWSvcNlkeUWCH/sNesraD+/j2PNfeQ0CIAzY6lktCDurB+ob6QEzF gCtKx/Y2y2C9sX/D8TypIUj9XR8XI/mt6wQvhsLRCA9ydiJzpYXz7JcFnbW5CrD67sI2 1tNW9vdbhIjwVs6Az1b5+YHXc5+irWN4Mv9xA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mswiyKdVsP7LD4h+xo6YvV37Iv2HY5yf6IhKWVK/LRj9dbH6gS0Q8QxqyxSVpAePzH QD3vr9bLEVGolXnCNwtgtI6Ng8yX4NxYgHgcXWtDLDuQlYZD8iXjesjkScQbVBFVfhpK ikANlC3a4gBQSHO9ulTdy5L8uWFAsGqOxd3+A= MIME-Version: 1.0 Received: by 10.216.87.12 with SMTP id x12mr2182632wee.48.1259084628225; Tue, 24 Nov 2009 09:43:48 -0800 (PST) In-Reply-To: <8fb9ac720911230511g601ec3f2o15829948f9e761bb@mail.gmail.com> References: <20090924025851.78240@gmx.net> <26421385.post@talk.nabble.com> <8fb9ac720911230511g601ec3f2o15829948f9e761bb@mail.gmail.com> Date: Tue, 24 Nov 2009 13:13:47 -0430 Message-ID: <64dc59a40911240943i57e375b9j751f8ca7d0451412@mail.gmail.com> Subject: Re: WeblogCategories II From: Ana Mercedes Pardo To: user@roller.apache.org Content-Type: multipart/alternative; boundary=0016e6d7e0a901ee480479217cb1 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d7e0a901ee480479217cb1 Content-Type: text/plain; charset=ISO-8859-1 Thank You so much for your answer. I tried to put $model.weblog.getWeblogCategory("/Noticias") and i still get the same problem. Also i tried with: - #showWeblogCategoryLinksList("/Noticias" false true) - $model.weblogCategory("/Noticias") - This code from de roller template guide #foreach ($cat in $model.weblog.categories) #if ($cat.name != "Music") $cat.name
#end #end I tried several ways using the roller- template guide. And i can't find something that helps. Is there a macro that just display a string that i tell it to. Something that works like an echo on other languajes? I just want to get the name of the category and display it. 2009/11/23 Dave > On Thu, Nov 19, 2009 at 11:36 AM, Ana Pardo wrote: > > Hello! I have a problem with customizing the way categories are > displayed. I > > want to list each category individually, so the only way i could think to > do > > this is: > > > >

#set($rootCategory = $model.weblog.getWeblogCategory("Noticias")) > > #showWeblogCategoryLinksList($model.weblog.getWeblogCategory("Noticias") > > false true)

> >

#set($rootCategory = $model.weblog.getWeblogCategory("Nuestras > Marcas")) > > #showWeblogCategoryLinksList($rootCategory false true)

> >

#set($rootCategory = $model.weblog.getWeblogCategory("Eventos")) > > #showWeblogCategoryLinksList($rootCategory false true)

> > > > This code gives me two problems: > > > > 1) When i select any of those categories the name changes to > > "categoryObject.name". I don't understand wy it doesn't shows the name of > > the category instead. Is there an easier way to list the category one by > > one? Or is there something else i have to add to my code? > > That is probably because $model.weblog.getWeblogCategory("Noticias") > or some other call to getWeblogCategory() is failing and returning > null. You might need to pass "/Noticias" > > > > 2) It appends a bullet at the beginning of the category name. I can't > find > > the way of deleting that, i have removed the tags
  • ,
      , > and > > any other tag asociated with list in html and it doesn't go away. Is > there a > > way of doing this? > > If you use #showWeblogCategoryLinksList() then you're gonna get a list > (i.e. with
    • elements). You can use CSS styles to make those go > away. > > You don't have to use #showWeblogCategoryLinksList(), you can write > your own Velocity code to display the categories any way you'd like. > > Hope that helps... > > - Dave > --0016e6d7e0a901ee480479217cb1--