Single page with News Show Pro

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Aug 05, 2013 8:16 pm
Reply with quote
Report this post
Hi!

I'm trying something that I don't know if it's possible.

I want to create a new page only showing a News Show Pro gallery linking to my articles. But this page should be not visible from any menu. Just a page whose URL I can use as an iframe.

I hope I explained...

Thanks!
User avatar
Expert Boarder

teitbite
Tue Aug 06, 2013 8:38 am
Reply with quote
Report this post
Hi

Please simply create a new dummy menu. Use it to configure modules but do not publish this menu on your site.
User avatar
Moderator

GK User
Thu Aug 15, 2013 6:23 pm
Reply with quote
Report this post
Sorry, but I don't know how to proceed.

I've created a new menu, and I have an unpublished NSP module in mainbody_bottom position. But, how can I set this module to show up without any other elements (main menu, footer, etc)?
User avatar
Expert Boarder

teitbite
Sat Aug 17, 2013 9:16 am
Reply with quote
Report this post
Hi

If You have this page prepared than just open it's link and add this parameter to url: &tmpl=component, this will remove any element bout content.
User avatar
Moderator

GK User
Tue Aug 20, 2013 7:24 pm
Reply with quote
Report this post
Ok, I think I'm spreading chaos, but well... I'm starting to understand :lol:

If I add '?tmpl=component' to the url, css is not loading, am I right? See: http://www.m2mphotography.es/blog/index.php/entradas?tmpl=component

More: how can I add NSP module to a menu link? If I create an empty article linked to a menu element, and I publish the NSP module on it, nothing happens. I had to create a System link to show all K2 items, but I want to use NSP.

Thanks for your help.
User avatar
Expert Boarder

teitbite
Thu Aug 22, 2013 6:02 pm
Reply with quote
Report this post
Hi

First. How module is set to the article? Have You used {loadposition xxx} option ?

CSS is stripped in a component view since it's used for popups and such. You need to add manually any css required in /blog/templates/gk_creativity/component.css
User avatar
Moderator

GK User
Thu Aug 22, 2013 7:20 pm
Reply with quote
Report this post
That's it! Using 'loadposition' and enabling default CSS through Options -> External Files it works great!
And by using the '?tmpl=component' addition to the url it's just as I wanted.

Just one more thing to do: how can I make the links to open in a new window?

Thanks for your great help!
User avatar
Expert Boarder

teitbite
Sat Aug 24, 2013 7:24 pm
Reply with quote
Report this post
Hi

Ok. I'm confused now :) Weren't we talking about a popup window for the whole time ? Where is the link which is oppening this page ? if link was made manually than You just need to add an attribute target="_blank" to <a> element.
User avatar
Moderator

GK User
Wed Aug 28, 2013 3:24 pm
Reply with quote
Report this post
Nope, this is the page I have configured in Joomla with NSP: http://www.m2mphotography.es/blog/index.php/entradas.
And I put it as an iframe into this not-Joomla site: http://www.m2mphotography.es/ (by clicking on the menu item 'Qué hacemos').

I just wanted to sync the new K2 items with the iframe, and by clicking on any element, to open it on a new window, not on the iframe.

I hope I explained now.

In addition, I will also need two things:
- I need to hide the footer menu link which takes you to this NSP page.
- It's possible to have this News Gallery module mode under two rows of thumbnails and no navigation? I only can change items per column, but I would need 4 columns and 2 rows.

Thanks for your help, and sorry for make you work so hard!
User avatar
Expert Boarder

teitbite
Sat Aug 31, 2013 8:16 pm
Reply with quote
Report this post
Hi

The page You are talking about is leading to a 404 error page, so I'll try to guess the module mode and version and tell You where to make a change.

Try edit /modules/mod_news_pro_gk5/tmpl/com_k2/view.php and in functions which are producing an element You want to change the link in (header, image, text) find each <a href="..."> and add new target attribute: blank, so the code will looks like <a target="_blank" href="...">
User avatar
Moderator

GK User
Tue Sep 03, 2013 8:37 pm
Reply with quote
Report this post
Sorry, I changed the title... http://www.m2mphotography.es/blog/index.php/novedades

Reading that view.php file, I found two 'href' tags inside the image section, but both have a class called nspImageWrapper. My NSP class is called gkImagesWrapper.gkImagesCols4. I don't know if this will help you, but now you can take a look at the page.

Thanks!
User avatar
Expert Boarder

teitbite
Wed Sep 04, 2013 11:22 pm
Reply with quote
Report this post
Hi

The html syntax is broken now. I think You have not set it properly. Please make an old ftp access work again or send me a new one and I'll make it for You.
User avatar
Moderator

GK User
Thu Sep 05, 2013 4:09 pm
Reply with quote
Report this post
I've just sent you new access data and I have restored the initial view.php file. Thanks!
User avatar
Expert Boarder

GK User
Thu Sep 05, 2013 4:17 pm
Reply with quote
Report this post
Wait a minute, I've been modifying the wrong file. It's not /tmpl/com_k2/view.php, it's /portal_modes/news_gallery/controller.php. I've added 'target="_blank" where images are rendered and it works great now!

Now I'll try to make two rows instead of the one that comes by default. I suppose it's in the same file.
User avatar
Expert Boarder

teitbite
Sat Sep 07, 2013 11:04 pm
Reply with quote
Report this post
Hi

I'm glad You've made it working. To change it into 2 rows add this code to css:

Code: Select all
.gkNspPM-NewsGallery .gkImagesWrapper.gkImagesCols4 > a {
    width: 50%;
}
User avatar
Moderator

GK User
Tue Sep 10, 2013 4:37 pm
Reply with quote
Report this post
This is not what I need. I need 4 columns and 2 rows, with no pagination. Is it possible?

Thanks!
User avatar
Expert Boarder

teitbite
Wed Sep 11, 2013 5:15 pm
Reply with quote
Report this post
Hi

Sure it is :) I just misunderstood You. Since CSS is my favourite weapon lets make it this way:

To hide pagination:
Code: Select all
.gkNspPM-NewsGallery .gkPagination {
    display: none;
}


to show all at once:
Code: Select all
.gkNspPM-NewsGallery .gkImagesWrapper.gkImagesCols4 > a {
    display: block;
    margin-bottom: 20px;
    transform: scale(1);
}
User avatar
Moderator

GK User
Tue Sep 17, 2013 7:01 pm
Reply with quote
Report this post
It works great! Thank you so much! But I had to put that code to 'modules/mod_news_pro_gk5/portal_modes/news_gallery/style.css', because I'm using this URL: http://www.m2mphotography.es/blog/index.php/novedades?tmpl=component and override.css was not loading. I guess there won't be any problems with that.

Thank you again!
User avatar
Expert Boarder

teitbite
Wed Sep 18, 2013 4:34 am
Reply with quote
Report this post
Hi

No, this won't be a problem if You will not update the module :) So please at least remember about this modification during a possible update.
User avatar
Moderator


cron