Re: [Catalyst] Including a submenu

2009-04-06 Thread Matthew Topper
On Mon, Apr 6, 2009 at 11:26 AM, Andrew Rodland arodl...@comcast.netwrote:


 Set 'page' to something that doesn't start with a slash?

 Andrew


 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


Thanks, but that's not exactly what's going on.  I'm trying to process a
template located at $page/menu.tt2 for each section of my site.  I tried
passing $page to the name of the subsection, so if I set $c-stash-{page} =
'foo' I want to process foo/menu.tt2

The file starts with a slash because $page is evaluating to nothing.

Thanks,
Matt
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread ken uhl

toppe...@gmail.com wrote:

I'm trying to add a submenu to each menubar on a site I'm writing

I tried adding the following to root/lib/site/header

div id=navbar
ul
lia href=/switches/listSwitches/a/li
iia href=/hosts/findHosts/a/li
/ul
/div
div id=submenu
[% INCLUDE $page/menu.tt2 %]
/div

Then, I tried setting $page in my controllers, hoping to have the
submenu switches/menu.tt2, etc included.

However, when I load the page,  I get the following error:
Couldn't render template file error - /menu.tt2: absolute paths are
not allowed (set ABSOLUTE option)

Am I going missing something obvious, or going about this in the wrong
way?

Thanks,
Matt

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

  

Could you be using template toolkit ?
I had a problem with abs path there once -
check the syntax re leading slash on path ..

Ken
Berkeley


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread Andrew Rodland
On Monday 06 April 2009 10:06:52 am toppe...@gmail.com wrote:
 However, when I load the page,I get the following error:
 Couldn't render template file error - /menu.tt2: absolute paths are
 not allowed (set ABSOLUTE option)

 Am I going missing something obvious, or going about this in the wrong
 way?

Set 'page' to something that doesn't start with a slash?

Andrew


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] [JOB] Fulltime onsite Senior Perl Developer, West London

2009-04-06 Thread Leo Lapworth
Hi,

Matt suggested I post here as we use a lot of Catalyst.

Description:

- Fulltime onsite Senior Perl Developer at Foxtons.

Location:

- West London (w4 5be)

Salary:

- Really depends on experience, contact me to discuss as I may also
consider a more junior person with the right experience and drive.

Start date:

- Mid May to Mid June.

You must already be able to work in the UK.

You will be joining a small but dedicated team who are given the freedom
to excel. You must be passionate about pushing the boundaries of
technology and usability. With few formal meetings, your day might cover
working with the sysadmin, helping the designers with JavaScript,
integrating with the CRM webservices or generating google earth kml
files for search results.

Recognized as the leading estate agents website in the UK (if not the
world) we want to maintain this reputation for providing cutting edge
features, without losing simplicity and usability. We also provide
solutions within the company, be this helping production by generating
quark formatted text, or replacing a MS Word based brochure system with
one which generates PDF files from configurations generated through a
web GUI.

You will need to have strong communication skills (occasionally doing
internal presentations) and be someone who works well as part of a team
and enjoys sharing ideas and debating options. You will be expected to
provide input in the design of systems and can even venture an opinion
on front end design issues.

Modules used in our systems:

-   Catalyst, DBIx::Class, Template::Toolkit, TheSwartz, MogileFS,
Memcache, Perlbal, Test::More, PDF::API2 along with hundreds of others.

Core Projects:

-   Website: 400k+ visitors a month, 350k+ images live at any one
time, html/rss/kml/json - google earth,  vodcasts  podcasts

-   Systems: image processing / PDF, mp3  video generating (already
automated) / package builder / puppet for server management

-   Internal: Brochure builder (Google Gears+Javascript+JSON),
Personalised intranet and document centre.

Of course you will already be used to writing tests and doing code
reviews. You are also likely to have several CPAN modules, and follow
the latest technical developments, for example Moose and virtual
computing even though you may not have direct experience in them yet.

Please drop me a CV if you are interested


Leo Lapworth
Web Manager / Senior Web Developer
Web, Foxtons

T:  020 7893 6379
M: 07875 80 1195
F:  020 3249 5472
E:  leo.lapwo...@foxtons.co.uk
W: http://www.foxtons.co.uk

Please avoid printing where possible. Thank you. 

Privacy and Confidentiality Notice:

This is strictly confidential and intended solely for the person or 
organisation to whom it is addressed. It may contain privileged and 
confidential information and if you are not an intended recipient, you must not 
copy, distribute or take any action in reliance on it. If you have received 
this message in error, please notify us as soon as possible and delete it and 
any attached files from your system. 
The views and opinions expressed in this email message are the author's own and 
may not reflect the views and opinions of the author's employer.

Foxtons Limited is registered in England and Wales (registered number 
01680058).  Our registered office is at Building One, Chiswick Park, 566 
Chiswick High Road, London, W4 5BE.

_
This e-mail has been scanned for viruses by MessageLabs.___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread Matthew Topper

 Could you be using template toolkit ?
 I had a problem with abs path there once -
 check the syntax re leading slash on path ..

 Ken
 Berkeley



 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


I am using template toolkit.  My problem is that I'm trying to dynamically
set which file to include.  The page variable is supposed to be interpreted
as

[% INCLUDE $page/menu.tt2 %]

For some reason, when I try and do that, $page evaluates to an empty string
so all that is left it /menu.tt2, which is where the absolute path error
comes in.  The absolute path error is a secondary problem, caused by $page
not being expanded.  It's not the primary issue here.

Thanks,
Matt
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread Matthew Topper

 Could you be using template toolkit ?
 I had a problem with abs path there once -
 check the syntax re leading slash on path ..

 Ken
 Berkeley



 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


I am using template toolkit.  My problem is that I'm trying to dynamically
set which file to include.  The page variable is supposed to be interpreted
as

[% INCLUDE $page/menu.tt2 %]

For some reason, when I try and do that, $page evaluates to an empty string
so all that is left it /menu.tt2, which is where the absolute path error
comes in.  The absolute path error is a secondary problem, caused by $page
not being expanded.  It's not the primary issue here.

Thanks,
Matt
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread Ronald J Kimball

toppe...@gmail.com wrote:


Then, I tried setting $page in my controllers, hoping to have the
submenu switches/menu.tt2, etc included.

However, when I load the page,  I get the following error:
Couldn't render template file error - /menu.tt2: absolute paths are
not allowed (set ABSOLUTE option)

Am I going missing something obvious, or going about this in the wrong
way?


Yes, you're missing the information that would allows us to diagnose the 
problem. :)


How did you set the value of $page?  Are you able to set the values of 
other variables successfully?


Ronald

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread Matthew Topper
Thanks, but see my latest email from this afternoon.  The issue has
been resolved.

-Matt

On Mon, 06 Apr 2009 18:06:32 -0400
Ronald J Kimball rkimball+catal...@pangeamedia.com wrote:

 toppe...@gmail.com wrote:
 
  Then, I tried setting $page in my controllers, hoping to have the
  submenu switches/menu.tt2, etc included.
  
  However, when I load the page,  I get the following error:
  Couldn't render template file error - /menu.tt2: absolute paths are
  not allowed (set ABSOLUTE option)
  
  Am I going missing something obvious, or going about this in the
  wrong way?
 
 Yes, you're missing the information that would allows us to diagnose
 the problem. :)
 
 How did you set the value of $page?  Are you able to set the values
 of other variables successfully?
 
 Ronald
 
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site:
 http://dev.catalyst.perl.org/


signature.asc
Description: PGP signature
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Including a submenu

2009-04-06 Thread Bill Moseley
On Mon, Apr 06, 2009 at 11:06:52AM -0400, toppe...@gmail.com wrote:
 I'm trying to add a submenu to each menubar on a site I'm writing
 
 I tried adding the following to root/lib/site/header
 
 div id=navbar
 ul
 lia href=/switches/listSwitches/a/li
 iia href=/hosts/findHosts/a/li
 /ul
 /div
 div id=submenu
 [% INCLUDE $page/menu.tt2 %]

Try this:

[%
menu = $page/menu.tt;
PROCESS $menu;
%]

-- 
Bill Moseley.
mose...@hank.org
Sent from my iMutt

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Re: Including a submenu

2009-04-06 Thread Lance A. Brown


Matthew Topper said the following on 4/6/2009 7:48 PM:
 Thanks, but see my latest email from this afternoon.  The issue has
 been resolved.

Maybe I missed it, but I didn't see a solution for your problem come
across the list...

--[Lance]

-- 
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/