DOWNLOAD DEMO
Current Version: 2.3.9.7 2013-04-30
Need a hand? Join the community.

Create Templates

This thread is closed to new posts. You must sign in to post in the forums.
2/15/2012 10:31:02 AM
Gravatar
Total Posts 17

Create Templates

Hi,

Mojoversion: 2.3.7.6 MSSQL running in Ms Server 2008
I've created site with multiple sites, I've set Folder Site Mapping. 

Now i'm creating Content Templates, in site 1(root) everything is ok, however in the second site, Content Templates thumbnails aren't showing.
In Chrome console get an error in the image path http://server:port/EN/Data/Sites/3/htmltemplateimages/columns4over1.gif?t=B8DJ5M3

and it should be  http://server:port/Data/Sites/3/htmltemplateimages/columns4over1.gif?t=B8DJ5M3

How can I resolve?

And when I clik in tab description/ allowed it shows the administration page from site 1.

Thanks

2/16/2012 7:01:44 AM
Gravatar
Total Posts 17

Re: Create Templates

Hi Joe,

I found a solution for my last topic, (And when I clik in tab description/ allowed it shows the administration page from site 1.)

In ContentTemplateEdit.aspx we got a <div id="divtabs" class="mojo-tabs"> with 3 li. The 2nd and 3rd li have runat=server tag like their anchor.

I've removed the runat=server tag in all of them and in div <div id="tabSecurity" runat="server" visible="false"> have done the same and remove visible=false tag;

In code-behind in Page load event I've created a script that hides the li and div Security when user is not admin like this:

if (!WebUser.IsAdmin) {  

string auxScript = " $(document).ready(function(){  $('#divtabs ul li').eq(2).css('display','none'); $('#tabSecurity').css('display','none'); }) ";

 this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"security", auxScript, true);

 }

Thanks

2/16/2012 11:22:16 AM
Gravatar
Total Posts 1049

Re: Create Templates

Hi, I know you shouldn't have to do this workaround, but I also don't know what's causing this or how to help you out. I'm sure that when Joe is back from his vacation he will be able to give you a better solution either by changing your setup or possibly a code fix if necessary.

Jamie

2/16/2012 11:34:56 AM
Gravatar
Total Posts 17

Re: Create Templates

Hi Jamie,

Now we've got a solution, valid or not, is another issue.

It works and resolve the problem.

Still have the problem for the thumbnails, but for now, I can live with it

Thanks a lot.

Smile 

You must sign in to post in the forums. This thread is closed to new posts.

mojoPortal Hosting Made Easy

Go Mobile with mojoPortal and Mobile Kit Pro!