eZ Community » Forums » Setup & design » front page template!
expandshrink

front page template!

front page template!

Sunday 05 February 2012 2:03:17 pm - 6 replies

Hi everyone,

when i started to design my first ezpublish web site , i deleted all the content within the site then i created my siteaccess and my extension and then my designs.. 

up until now everything was ok , but now i want to design the last part which is my frontpage! i dont have anything in my home page indeed,  and i dont know where is the template where i can write down my codes?!

i have photo gallery i have news and many other thing. and because i created the extension by myself i have not template "front page" beyond my templates in override or templates of my extension/design

can anybody help me?

Sunday 05 February 2012 6:34:54 pm

Hi,

maybe it is usefully to enable "Template" Debug from the Backend and in the frontPage you can see wihch default template are you using from the ezwebin. The same .tpl structure can you add in your extension path.

This is generally the way to overrwite the default template to write your own .tpl file: e.g:

extension/ezwebin/design/ezwebin/templates/pagelayout.tpl   (default template)

extension/YOU_EXTENSION/design/YOUR_DESIGN_FROM_SITE.INI/templates/pagelayout.tpl (your own pagelayout).

 

maybe this will help you

Sunday 05 February 2012 8:22:06 pm

Thank you for your answer ,

But the changes in Pagelayout will apply to all the website while i only need the changes for first (home) page! 

I think this should be very simple but I am stuck and confused!!!

 

 

Sunday 05 February 2012 8:29:55 pm

in this case i will try to add new object(Node) in the content structure in Backend and in the siteaccess site.ini i will add something like this:

[SiteSettings]
IndexPage=content/view/full/167
DefaultPage=content/view/full/167

In this example 167 is the Node Id as default/front page.

sure you can specify a new class as front page to customize the welcome website blunk.gif Emoticon

Monday 06 February 2012 8:41:37 am

Thank you ramzi for your answer , but in this case , when i change them like this , i cannot anymore have access to my site , i mean it gives me a kernel(20) error. is it normal?!

Monday 06 February 2012 8:34:52 pm

Hi ray,

check Roles and policies for anonymous Users blunk.gif Emoticon

Monday 12 March 2012 3:16:16 pm

To have a bit more "content" in your frontpage than you have, take these steps:

0. reset IndexPage, DefaultPage to their initial settings

1. decide which class you want to use for your homepage. Frontpage is a good candidate if you use ezflow, or just create a "homepage" class with the attributes you want

2. create one node of the type you want for the homepage

3. click on the current homepage node in the nav tree in the admin interface. In the popup menu choose Advanced | Swap. Navigate until you find your newly created content, and select it.

4. If this has worked, your new content object is at the top of the content tree (it has become the homepage), the previous homepage has moved. You can then proceed to delete it.

Modified on Monday 12 March 2012 3:16:31 pm by Gaetano Giunta

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu