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   757 Views

Avatar
servalman

27 July 2010 at 1:46am Community Member, 211 Posts

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

28 July 2010 at 12:50pm Community Member, 133 Posts

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

28 July 2010 at 2:16pm Community Member, 211 Posts

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