On Sun, Apr 13, 2008 at 4:12 PM, raúl fuenzalida <[EMAIL PROTECTED]> wrote:
> Sorry, i was wrong and i misunderstood the $model.isPermalink() behaviour
>
>  i will try to explain it again
>
>  what i need is something to be true only if the browser is at
>
> http://www.url.url/weblog/
>  not in http://www.url.url/weblog/?page=x
>  not in http://www.url.url/weblog/entry/title
>  not in http://www.url.url/weblog/page/pagename
>  etc


Hmm... I think you'll have to test each of those things.

Something like this might work:

#if ( !$model.permalink && !$model.getRequestParameters().get("page")
   && ( $model.getWeblogPage() == null ||
$model.getWeblogPage().getName() != "Weblog")
   <!-- your stuff -->
#end

I have not tested that if statement.

- Dave



>  On Wed, Apr 9, 2008 at 4:58 AM, Dave <[EMAIL PROTECTED]> wrote:
>  > On Tue, Apr 8, 2008 at 4:35 PM, raúl fuenzalida <[EMAIL PROTECTED]> wrote:
>  >  >  but if the browser is at http://www.url.url/weblog/?page=1 it will be
>  >  >  true using $model.isPermalink() and my idea is to get true only when
>  >  >  the browser is at http://www.url.url/weblog/
>  >
>  >  No.
>  >
>  >  $model.isPermalnk() will only be true on a "single entry" page.
>  >
>  >  - Dave
>  >
>
>
>
>  --
>  http://www.transitorio.cl/
>

Reply via email to