Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Updating one area in a page with different content


Reply


3 Posts   784 Views

Avatar
servalman

Community Member, 211 Posts

27 July 2010 at 1:46am

Hello

I need some advice.

I have been lokking around and got a bit confused between help, tutorial and even the book.
So if anyone could show me the right direction or tutorial it would be greatly appreciated.

I'm not a develloper but I'm learning php

This Is what I want to achieve :

I have set up different contents using addFieldToTab
so I have now :

$Content1
$Content2
$Content3

I also have in my template 3 links

Link1
Link2
Link3

I have also defined a display area where I want my content to appear.

Now my goal is to update the content of the page according to the link I choose inside the page

Please help

Thanks

Avatar
3dgoo

Community Member, 133 Posts

28 July 2010 at 12:50pm

Hello,

I think you want a tabbed content layout, maybe.
If this correct, you would do this using javascript.

Here are some examples:

http://jqueryui.com/demos/tabs/

http://jqueryfordesigners.com/demo/coda-slider.html

Avatar
servalman

Community Member, 211 Posts

28 July 2010 at 2:16pm

Hello

Many Thanks for your answer.

I posted this yesteraday trying to solve my tab problem.

http://www.silverstripe.org/general-questions/show/289419#post289419

with your post I realised that there is a way to do it but I'm not a code specialist .

based on what I have already done do you think it is hard to use your solution ?

Thank you again

Thomas