GetSimple Support Forum

Full Version: Dynamic Content and menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hy... i'm very newbie in here...

i want to ask how you setting banner just in home page like this http://gsimple.ru
when you go to another page it show another content with no banner, when i create new page it only manage the article and always showing the banner..
i am using the same template..
can i manage what component/blok/module to show in each page? and where the position each page?

and how you add a link like http://blog.gsimple.ru like that in the last menu.



Thank's
There are two ways to remove the banner on a page.

1. Copy and past the template file with a new name, then edit the php to remove the section that displays the header. Then on any page that you do not want the banner to show up use the new template.

2. Put code in the template to test if the page being displayed is the homepage
Code:
<?php if get_page_slug() == 'index' { ?>
     ....
<?php } ?>
...or use a customfield's plugin Wink
@jay_m

i tried what you say, it work well... but if i have (page 1 that want to show 3 column), (page 2 with 2 column), (page 3 with 1 column), etc should i always edit the PHP template?? well i know a little about PHP but really just a little...

@yojoe

well i really new with getsimple, can you recommend what pluigin the best....


thank's for the help..... Smile
panjooel Wrote:@jay_m

i tried what you say, it work well... but if i have (page 1 that want to show 3 column), (page 2 with 2 column), (page 3 with 1 column), etc should i always edit the PHP template?? well i know a little about PHP but really just a little...

@yojoe

well i really new with getsimple, can you recommend what pluigin the best....


thank's for the help..... Smile

Fyi: there are couple ways to add a banner per page. Some of them need more skills in coding/php (templates) some just need to paste a provided code into template file (plugins).
Since you don't know much about php, I would recomment this plugin:http://get-simple.info/extend/plugin/i18n-custom-fields/100/
This will grant you a possibility to create a custom image field, and add a different image on every page. Plugin will generate the code, that you need to paste into template.
All the info you need, you can find on author's website.

ps. the simplest solution is to use 1 column template and just insert an image above the main page contentWink
If you want to change the actual structure of the page ie
-One page type with 3 columns
-One page type with 2 columns
-One page type with 1 column

the easiest way is to make 3 different php template that are structured the way you want each of them to be. I am not sure if this is the best, I am not a php/CMS/GetSimple expert myself, but it is the most straightforward.

Now managing the content of you the page and especially the columns can be nicely automated with some of the plugins of GS. Take a look at angryboy's instructions on managing sidebar content. http://get-simple.info/forum/topic/3787/...-sidebars/
Thank's for the info.... sorry for late response...

well, it's time to build the web with GS..... Smile