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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[RESOLVED] Jquery UI / Tabs ....Duplicate content

Go to End



Community Member, 47 Posts

8 December 2009 at 10:10pm

Edited: 10/12/2009 11:25am

I am experiencing the exact same problem I have seen reported in a Google group :

The problem:
"I'm using jQuery 1.3.2 and UI 1.7.2 and having a little problem with
my tabs implementation, and I'm totally stumped.

When I look at the generated source of my page it appears that the
whole page is being loaded again within the tab panel, I'm guessing
thru ajax.
I wondered if it was to do with the base tag causing the tabs to load
the linked content, but removing it didn't change anything."

The solution posted by this user:
"I worked it out - it was my CMS that was rewriting the page anchors so
that there was a forward slash in front of them - which was triggering
the Ajax load.

I've stopped the rewrite and all is well . "

Unfortunately, the person did not mention which CMS he/she was using but ...
do you think it is the same problem I am having here. It looks actually exactly the
same : the content of the tabs is repeated twice : once with the all html markup added
by the Jquery-UI lib and a second time as they are in the template.

Does this has to do with forward slash added by SS ? Could it be stopped?
Help me!! Many thanks !

Edit (a few days later ..) :
I found an interesting and helpful Forum entriy :

I added :

SSViewer::setOption('rewriteHashlinks', false);

to my config file and it worked.