[Catalyst] Doubts while converting Maypole framework to Catalyst framework
apv
apv at sedition.com
Mon Feb 27 20:09:25 CET 2006
Unless I really misunderstand I still think it's what you want. The
Catalyst->uri_for() creates URIs relative to your application's base.
Did you try dropping this in -- [% c.uri_for("/page/about_sg.html") %]
-- to see what you get?
-Ashley
On Monday, February 27, 2006, at 10:59 AM, Vidya Sagar wrote:
> Thank you for the reply.But that is not what i want.Actually i need to
> know whether there is any template path to be specified like we have
> in maypole" [%config.uri_base%] " similarly to that in catalyst . Or
> can i write the same thing i.e " [%config.uri_base%] " for the url to
> work
> If i give like that my url is redirecting to the home page.thats my
> problem.
> thank you
>
> On 2/28/06, apv <apv at sedition.com> wrote:
>
> You probably want this:
>
> <a href="[%config.uri_base%]/page/about_sg.html">
>
> <a href="[% c.uri_for("/page/about_sg.html") %]">
>
>
> This is a TT2 Macro I use for a shortcut too (somewhat simplified for
> clarity):
>
> [%- MACRO link(title,path) BLOCK -%]
> <a title="[% title | truncate(50) %]" href="[% c.uri_for(path) %]">[%
> title %]</a>
> [%- END -%]
>
> Then you can do this:
>
> <a title="About"
> href="[%config.uri_base%]/page/about_sg.html">About</a>
> becomes:
> [% link("About", "/page/about_sg.html") %]
>
>
>
> On Monday, February 27, 2006, at 10:38 AM, Vidya Sagar wrote:
>
> > Hello All,
> >
> > I thought of converting my project which is currently in Maypole
> > framework to Catalyst framework.For this i started changing my code
> > wherever modifications are necessary.
> >
> > Previously whenever i want to give a url i used to give like:
> > <a
> > href="[%config.uri_base%]/page/about_sg.html">
> >
> > How shall i convert it,I tried my hand on all kinds of stuff like
> > changing it into <a href="[%c.config.uri_base%]/page/about_sg.html">
> > After that whenever i click on the url its connecting to the home
> > page.
> >
> > So can anyone help me solve this issue.
> >
> >
> > Thank
> > you.
> >
> > _______________________________________________
> > Catalyst mailing list
> > Catalyst at lists.rawmode.org
> > http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2710 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060227/6528f09a/attachment.bin
More information about the Catalyst
mailing list