Custom Template

post everything related to phpwcms templates here
Post Reply
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Custom Template

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Custom Template

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: Custom Template

Post by slinkyomeara »

worked perfectly thanks
www.vmwaredesign.com/cms
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: Custom Template

Post 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;
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Custom Template

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: Custom Template

Post 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?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Custom Template

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: Custom Template

Post 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 .
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Custom Template

Post by flip-flop »

Ok, ok :D
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: Custom Template

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Custom Template

Post 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;
}
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: Custom Template

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Custom Template

Post by flip-flop »

No problem, the system is fully relocatable.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply