Page 1 of 1

Custom Template

Posted: Wed 17. Sep 2008, 19:41
by slinkyomeara
How do I place a CP in a particular placeholder (table) all on the one page like this
http://live.ripcurl.com/index.php?home

table1 shows content
table 2 show news
table 3 show latest phots

Also I use HSS menu and it doesnt show home? Just the sub structure of home is this normal behaviour?
My website www.vmwaredesign.com/cms


etc
etc

Re: Custom Template

Posted: Wed 17. Sep 2008, 21:17
by flip-flop
Have a look to phpwcms-docu.de -> SHOW_CONTENT

Navigation: - NAV_LIST_UL -basics -> {NAV_LIST_UL:HCSSP,.......}

An alternative DropDpwn navigation you will find here: - {NAV_HORIZ_DD:ID,Level-depth}
(Where this Home is a second home behind the root (home).
1. Rename home to e.g. root.
2. Insert a new categorie called home
3. Redirect in the root article to index.php?home.
Thats it.)

Knut

Re: Custom Template

Posted: Thu 18. Sep 2008, 04:47
by slinkyomeara
worked perfectly thanks
www.vmwaredesign.com/cms

Re: Custom Template

Posted: Sat 20. Sep 2008, 00:58
by slinkyomeara
Probably a real dumb question but where do i change the background settings for my template.
I want to add css

background-image: url(http://www.example.com/gradient.gif);
background-repeat: repeat-x;

Re: Custom Template

Posted: Sat 20. Sep 2008, 07:25
by flip-flop
Mhhh, I cant find any layout *.css file in your site. Why you don´t contain e.g. frontend.css and other *.css files (from /template/inc_css/*) in your layout?

One of this css files are the right place for the call og a background image.

But I see you have solved your problem. (background-image: url(http://www.vmwaredesign.com/cms/bg.gif);)
It isn´t a good idea to place the pictures into the root level.

A better place for your layout images e.g.: /pictures/layout/*.gif (*.jpg) (*.png)
background-image: url(http://www.vmwaredesign.com/cms/pictures/layout/bg.gif

Knut

Re: Custom Template

Posted: Mon 22. Sep 2008, 20:29
by slinkyomeara
Ok so my next question would be how do i apply a template to an article?
I have created a 3 column table as my template for news but how do I apply a template to an article?
I can apply a template to a topic in site structure but what if I want a different layout for an article within the news?

Re: Custom Template

Posted: Tue 23. Sep 2008, 08:03
by flip-flop
There is no simple way to apply a full template to an article. (I hanvent´t heard this ever before).
For article list and- detail we have the inner template (in {CONTENT}) at
/template/inc_cntpart/articlesummary/article/*
/template/inc_cntpart/articlesummary/list/*

For all other you need an very special script in /frontend_init/ I think. (But I am not sure).

Why you make a 1 to 1 copy of another site? Have you informed the owner of the first site?

Knut

Re: Custom Template

Posted: Wed 24. Sep 2008, 02:11
by slinkyomeara
Thanks flip ,
This is purely development I am using ripcurl as a tempalte for my site design
which does not require me to inform them as all images and contect will be my own and the fact that they
use openphpwcms does not provide htem with intellectual propery rights over the HCSS stlyes and all other aspects :-)

Thanks for the help thus far youve been very helpful .

Re: Custom Template

Posted: Wed 24. Sep 2008, 08:45
by flip-flop
Ok, ok :D

Re: Custom Template

Posted: Wed 1. Oct 2008, 03:25
by slinkyomeara
How do I make the HCSS NAV go to the center?
Ive tried the editing matching .css file but it uses floatation and I want to break out of using flotation

regards

Re: Custom Template

Posted: Wed 1. Oct 2008, 21:26
by flip-flop
Put a wrapper around the Navigation.
E.g.: <div class="center-me">{NAVIGATION.......</div>

.center-me {
margin-left:auto;
margin-right:auto;
}

Re: Custom Template

Posted: Thu 2. Oct 2008, 16:10
by slinkyomeara
Thanks il try that later. Is it possible to move the phpwcms to another domain can you just transfer the whole directory?
and set the permissions on the new site? The new domain has access to the same database

Re: Custom Template

Posted: Thu 2. Oct 2008, 16:15
by flip-flop
No problem, the system is fully relocatable.