7938 Posts in 1466 Topics by 943 members
|Go to End|
15 October 2010 at 11:04pm
I have the same problem, i saw the following code:
<% sprintf(_t('DataObjectManager.ADDITEM','Add %s',PR_MEDIUM,'Add [name]'),an Album) %>
in Albumn and Photos tab when I create new Image Gallery Page, is there any solution?
Looking forward to hearing from you son.
16 October 2010 at 6:43pm
Did you try my solution from a couple of posts ago? - http://www.silverstripe.org/dataobjectmanager-module-forum/show/271514?start=32#post293190
It seems to work for most people.
The problem seems to come from either Xampp 1.7.3 configuration or PHP 5.3 itself. Can you please confirm whether you are using these?
19 October 2010 at 11:02pm
@Chiasmata: thank you very much. It works like a charm!
19 October 2010 at 11:10pm
Thank you, it works for me now.
18 November 2010 at 5:22pm
Hello Chiasmata, replacing ereg_replace to preg_replace doesn't work for me..I already copy and paste your code but still the same.. hoping for your reply..thanks
19 November 2010 at 4:44pm Last edited: 19 November 2010 4:47pm
Hi just fixed the issue, here's my solution:
Edited the DOM:
1. dataobject_manager\templates\ImageDataObjectManager.ss line 6
2. dataobject_manager\templates\RelationDataObjectManager.ss line 6
3. dataobject_manager\templates\DataObjectManager.ss line 6
<span class="uploadlink"><img src="dataobject_manager/images/add.png" alt="" /><% sprintf(_t('DataObjectManager.ADDITEM','Add %s',PR_MEDIUM,'Add [name]'),$AddTitle) %></span>
<span class="uploadlink"><img src="dataobject_manager/images/add.png" alt="" /><% _t('DataObjectManager.ADD','Add') %> $AddTitle</span>
13 March 2011 at 2:24am
Thank you Jamine. Feels a lot better making these fixes in template files so that I can just override from mysite templates. I noticed this kind of fix is required on "<% sprintf(_t('DataObjectManager.NOITEMSFOUND','No %s found'),$PluralTitle) %>" in the same files too.
I'm having this issue on a Debian server with PHP 5.2.12 so it's not limited to wamp server.
20 October 2011 at 5:51am
I would really, really like SSViewer to stop using shorttags!
I should rewrite it all probably, but the shorttagging is a disaster on strict servers
|Go to Top|