Topic Closed
deSoDa
5 Posts

This is probably something simple that I'm overlooking, but how can I use multiple templates within the same site?

More specifically, I have a small site that I'm working on that will only make use of the top menu bar (4 or 5 pages max) which won't require sublinks.  I would like a 2 column layout for the main page that provides content in the left column, and testimonials in the right column, but all other pages would only require a single column layout for content.

Can I use multiple templates (1 column + 2 column) or am I better of laying out the content of the first page so that it has 2 columns within it?  I would like to keep the testimonial information separate editable section if possible.

10 years ago#424

Charles S
448 Posts
13.7K Downloads
2 Themes
8 Plugins

you can use multiple templates in gpEasy.

goto "admin"->"file manager"

Move mouse cursor over page you want to select a different theme for then goto "optioins"->"select theme"

This will open a window in which you can select the theme for that specific page. So, you can use as many themes as you like for your site, each page can have it's own them. 

Hope that helps

10 years ago#426

deSoDa
5 Posts

So, I can't really use multiple templates within the same theme -- you're saying I need multiple themes with identical templates, except for the areas where I need to change between a 1-column layout  and 2-column layout.  Is that correct?

Edited: 10 years ago#441

Charles S
448 Posts
13.7K Downloads
2 Themes
8 Plugins

OK, now that my issue with my router & modem is resolved and things seem to be working here better, here's my original reply that I copied before everything went south.

 

 
 
by template do you mean CKEditor's templates?
 
by theme I mean gpEasy themes that are stored in the themes folder.
 
If you do mean CKEditor templates that you get when you select the template icon at the top right next to "source" in CKEditor WYSIWYG html editor then yes, you can use as many of those as you like. They are a per page item. They are nothing more than some basic code to give a certain layout so you don't have to do it from scratch. They have nothing to do with gpEasy themes.
 
My apologies for thinking you meant themes--that's if I'm right this time ;)
 
 So, for clarity:
 
You can add a "template" from CKEditor to any page you create. This is done in CKEditor and only one template per page because the template overwrites what you have in the page. These are nothing more than some basic layouts pre-coded thus, you can make your own template or just code the page to look like you want, basically the same thing.
 
You can also have a different "theme" for each page you create in gpEasy. This is done via the "file manager" and the page's options menu.
 
For what you want. . .
 
I'm not exactly clear as to what you are trying exactly. However, you can use a template on your home page (or just code it for 2 columns via a table or div) and this will be editable just like any other page.
 
You can also edit a theme (simply copy it and rename the theme) and make it two column and select it for the home page and the other theme as default. This will be a little more difficult.
 
If you are going to manually be updating your testimonials then the template is probably the easiest.
 
You can head over to opensourcecms for the gpEasy demo and play a little to see what I mean.
 
Sorry for any confusion. Hope this clarifies it.
Edited: 10 years ago#459

deSoDa
5 Posts

I am to blame for the confusion.

I didn't realize there were CKEditor settings referred to as templates.  In my example, all references to templates mean /theme/template.php where I wanted my front page /theme/template.php to display 2 columns, and all other pages to display only 1 column, using the same theme.

It really wouldn't be hard to maintain the 1 column layout throughout the site and simply DIV 2 columns on the front page, but I am set on having separate editable sections for the content & testimonial columns.  I am having a hard time wrapping my head around how I can best accomplish this.

In an e-mail I received from Joel recently (since my latest reply wasn't posting, I e-mailed him directly), he recommended that I could use 1 column and 2 column themes interchangeably in the same way that themes can have a change of colors.

Unfortunately I haven't had a chance to try this yet since I've been busy on another project, but I'd like to think it should be easy enough.

My biggest problem is that I haven't built my own pages from bottom up to get a good grasp on gp|Easy's strengths (or weaknesses), I've only used the existing templates to modify and tweak on a small scale.  In the long run, I expect to have fully customized templates for my clients, so I'm going to have to jump in and either sink or swim.

Thanks for taking the time to reply.  I hope to be able to test this further by the end of the month.

-- deSoDa

10 years ago#469

Charles S
448 Posts
13.7K Downloads
2 Themes
8 Plugins

Yes, you can definitely do what you want with gpEasy. 

You can either use the Div on the page and format it just for that page or use themes. 

If you use themes, just make a copy of the main theme, rename it, and select that as the them for the home page. Add the extra Div and CSS to that theme and you are set. It's actually very easy in gpEasy to do things like this. You just have to play with it a little but definitely possible and not very hard if you know some basic CSS and Html.

best of luck.

10 years ago#470

deSoDa
5 Posts

CSS and PHP are what I am using now for static site templates.  Shouldn't be too hard to wrap my head around.

I'll re-post at my next hurdle or success.

deSoDa

Edited: 10 years ago#472

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register