You are here:   Support > User Forum
Register   |  Login

Invenmanager User Forum

Minimize
Pop Up Window Size
Last Post 02 Sep 2011 03:40 PM by Inven Manager. 19 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Dwight Waggener
New Member
New Member
Posts:14

--
12 Aug 2010 12:45 AM  
Hello.

I have a question regarding the displaying of article details.

What we would really like to do is have the Advanced Articles Satellite module display inline, but we don't want to be redirected back to the original Advanced Articles Module, but rather stay on the same page. Unless I'm missing it, that appears not be an option in Ver 4.2.9 (maybe the next one?).

Our other option is to display the detailed Satellite article detail in a new pop up window (link: target="_blank"), which is fine, but this creates a full screen pop up window. Not so good when you a minimal amount of information for some articles, sitting on a huge blank screen.

Is there anyway to set a pre-defined size for the pop up window?

Thanks.
dw
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
12 Aug 2010 01:52 AM  
Hi,

Yes, I believe you can change the template so that it pops up in a sized window. but you need some javascripts in the template to do so.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
13 Aug 2010 01:18 AM  
Thanks for the quick response. I figured that was how to accomplish. Here's the way I did it if anyone else is interested!

In the Articles mod, make sure you select to display the details in a pop up window.

Go to View Options in the Articles Satellite and add this code at the beginning of the Header Template:

<script>
<!--
function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
// In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
var win = window.open(url,
name,
'width=' + w + ', height=' + h + ', ' +
'location=no, menubar=no, ' +
'status=no, toolbar=no, scrollbars=no, resizable=no');
win.resizeTo(w, h);
win.focus();
}
// -->
</script>

Next replace the <a href='[DETAILLINK]' title='[AUTHOR] / [CREATEDDATE]'></a> in the Item Template window with this code:

<a href='[DETAILLINK]' target="popup" onClick="wopen('[DETAILLINK]', 'popup', 480, 320); return false;" title='[AUTHOR] / [CREATEDDATE]'></a>

There you go. A 480px x 320px pop up. Change the size to what you want. We wanted the pop up in the upper left hand corner, but you should be able to change the position as well.

I would still like to see the Articles Satellite module be able to display inline without being redirected back to the Articles mod. Is that something that can be considered in newer version? It would be especially great for an archived articles page. In our case, we have secure viewer roles set for certain articles until they expire, then they become available to the public. When the Satellite tries to go back to display the expired article when set to inline, it locks you out unless you have the correct user role.

For now though, the pop up will work.

Thanks.

dw
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
14 Aug 2010 01:17 PM  
dw,

Yes, that's exactly what it is!.
With the templated view options, you are really free to do whatever you wanted.

And we can change that inline detail view for articles detail for you.

Thank you again.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
07 Jul 2011 10:47 AM  
Hello. Well, I just upgraded to Version 5.0 and trying to figure out the [DETAILPOPUP] token.

I see that you do get a popup window, but how do you change the window size?

With the older versions, I was able to write a script to do this, but for some reason, this doesn't seem to work with V5.0.

Any thoughts on this?

Thanks,

dw
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
07 Jul 2011 06:35 PM  
Hi,

The new version offers many tokens for the Detail page link, one of them is:
[DETAILPOPUP]


They are same as: [DETAILLINK] in the old version.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
11 Jul 2011 02:35 AM  
Thanks.

I understand the [DETAILPOPUP], but what I'm trying to do is to only have a 400 px x 300 px window that pops up and not fullscreen.

How do I control the popup screen size?

dw
Dwight Waggener
New Member
New Member
Posts:14

--
11 Jul 2011 05:21 AM  
OK, I figured out how to change the popup size but now I'm getting this error message in the popup window.

Culture 'en' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.

????? Anybody have any thoughts on this and maybe how to fix?

Thanks.
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
11 Jul 2011 04:03 PM  
Hi

Anyway you can show your URL?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
12 Jul 2011 02:15 AM  
Sure. This is direct link to the page we're using for testing. If you click on either the "Tip of the Week" or "Lower Body Workout" links, you should get the error. The popup window comes up to the correct size, shows the Title, Error code and author, but no article detail.

http://educatedpregnancy.com/ArticleAdmin.aspx

Thanks.
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
12 Jul 2011 02:23 PM  
Hi,

Got it.

We shall check on this and let you know...
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
25 Jul 2011 12:49 AM  
Have you been able to find anything out about this error?
Thanks.
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
25 Jul 2011 02:35 AM  
Hi,

Have you downloaded the latest v5.0.1, it should fixed this problem. :)
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
25 Jul 2011 02:45 AM  
No. I don't see v5.0.1 for Advanced Articles, only v5.0. Where do I get v5.0.1?
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
25 Jul 2011 04:21 AM  
Did you install v5.0?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
25 Jul 2011 04:24 AM  
Yes. I am using the new version 5.0.
Dwight Waggener
New Member
New Member
Posts:14

--
04 Aug 2011 01:42 AM  
Any word on this issue?
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
07 Aug 2011 02:27 AM  
Hi,

Please drop an email to support @ invenmanager.com and we shall send you an update for v5.0.1
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dwight Waggener
New Member
New Member
Posts:14

--
01 Sep 2011 02:06 AM  
Thanks for your help! v5.0.1 took care of the issue. Popup window working perfect now.
Inven Manager
Senior Member
Senior Member
Posts:6763
Avatar

--
02 Sep 2011 03:40 PM  
Great!
========================================
Delivering high value DotnetNuke Modules to save your time and resources
You are not authorized to post a reply.

Active Forums 4.1