Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 4
Seite [1]
Lebbra


Beginner




Beiträge: 3
# Thema - 24.07.2012 um 17:23 Uhr
hi all,
is it possible to use different templates for different pages?

what i would like to do is just that:
some pages (like homepage) should show a three fixed column lay-out (something like that):

<div id="content">
<div class="cols">
<div class="col1">
<div style="padding:10px;">
<div class="boxh">User Panel</div>
<div class="boxc">{users:navlogin}</div>
<div class="boxh">Top Match</div>
<div class="boxc">{wars:navtop}</div>
<div class="boxh">Upcoming Matches</div>
<div class="boxc">{wars:navnext}</div>
<div class="boxh">Birthdays</div>
<div class="boxc">{users:navbirth}</div>
</div>
</div>
<div class="col2">
<div style="padding:10px;">{func:show}</div>
</div>
</div>
<div class="col3">
<div style="padding:10px;">
<div class="boxh">Match Center</div>
<div class="boxc">{wars:navlist}</div>
<div class="boxh">Board Theads</div>
<div class="boxc">{board:navlist}</div>
<div class="boxh">Friends Online</div>
<div class="boxc">{buddys:navlist} </div>
<div class="boxh">Recent Poll</div>
<div class="boxc">{votes:navlist}</div>
</div>
</div>
<div style="line-height:10px;clear:both;">&nbsp;</div>
</div>


Some page(like forum) should show just this:

<div class="col2">
<div style="padding:10px;">{func:show}</div>
</div>


is it possible to manage this two different templates, and how?

thanks
Inaktiv
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9410
# Antwort: 1 - 24.07.2012 um 17:52 Uhr
what exactly do you want to split up? for usual scenarios like e.g. an extra design for the board mod functionality the shouldn't be a problem to do so and some nice examples might be available via forum search.


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Lebbra
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 2 - 25.07.2012 um 11:28 Uhr
Thanks for your answer.
My problem is that i do not speak German and i didn't found anything into the english section.

I'll try to better explain what i need.
For some pages, let say:
http://www.mysite.eu/index.php (and someone else if possible) I would like to visualize a standard 3 columns layoyut including all the boxes on side columns.
I can do that without problems using above index.htm sample.

For someone else (let say http://mysite/index.php?mod=board&action=list), I would like to visualize just the main contents (without the side boxes).
I also can do that without problems using other above index.htm sample.

what i'm not able to do is to switch from a template to the other one depending from url

Some CMS offer the possibility to hide some boxes depending from page url. The Smarty engine as instance, has some special tag to do that.
Is it possible to do something similar with clansphere CMS?


Zuletzt editiert von Lebbra am 25.07.2012 um 11:32 Uhr (3x Editiert)
Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9410
# Antwort: 3 - 25.07.2012 um 13:12 Uhr
yes as i told you that kind of modification is possible.

you have to use a switch statement or if else cases in the main index.php file that check the get parameters in the url and exchange the template name or htm file given to the function.

clansphere is not as powerful as smarty and it is bad that you can't understand the many examples for that in german, but your goal should be possible.

just ask again if you need more help or a code example.


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Lebbra
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 4 - 25.07.2012 um 13:46 Uhr
Ok, concept is now clear. i'll try to modify index.php

tnx.


Inaktiv
|
Antworten: 4
Seite [1]


Sie müssen sich registrieren, um zu antworten.