Hi,

This is the newbie again (I recently posted "How do I convert an existing
web?" -- many thanks for answers!)

Now I have a specific question:

I tried creating a template using an existing page, like so:

1) Put the html page in (the newly created) folder
templates/myproj/templates.
2) Rename the page to .jsp and enclose the content with a <jsp:root> tag
copied from from samples.
3) Put css and images in /docroot/myproj/css/ and /docroot/myproj/imgs/,
respectively.
4) Include css using <link
href="${pageContext.request.contextPath}/docroot/myproj/css/mycss.css"
rel="stylesheet" type="text/css" media="screen" />.
5) Include image using 
${pageContext.request.contextPath}/docroot/myproj/imgs/logo.gif .
6) Add <cms:mainBar dialog="${module.paragraphs.page}" /> as first line
after <body>
7) Define the new template in
AdminCentral/modules/templating/templates/myproj/mainnode/ using node data: 
name = My new template 
path = /templates/myproj/templates/mypage.jsp)
visible = true
type = jsp

And it works!  
Sort of...

I can create a new page based on the new template, there is indeed a green
bar at the top, and I can open the dialog with properties. But, the style
doesn't work the way it should -- the page is all messed up... 

My css is found ok, and nothing in the html or css code has been changed.
Any ideas as to why the page becomes a mess? Is there another css lurking
somewhere? (Logs say nothing -- obviously, since this has to do with the
style -- and the page looks just as bad in preview mode, and as published.)

Any suggestions are very welcome.
Cheers
/ulf

-- 
View this message in context: 
http://www.nabble.com/Trying-to-use-an-existing-page-as-template-tp20343850p20343850.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to