Create Templates

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/15/2012 9: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 6: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 10:22:16 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

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 10: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.