Adding a More Items button to Video List?

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Sep 01, 2014 11:05 pm
Hi,

I am using Module News Sho Pro GK5 in Steakhouse template J3+. I am using this to show videos from YouTube links via K2 items. I want to have a more items button on the module, like when you use other module modes, such as Grid News (More News URL + label are listed under Portal Mode Settings for this mode).

Is this possible?

Thx
User avatar
Gold Boarder

GK User
Wed Sep 03, 2014 10:58 am
Hello,

You will have to modify the following file: https://github.com/GavickPro/News-Show- ... roller.php

in order to add custom link. You have to add your link code under the output method.
User avatar
Administrator

GK User
Sun Sep 21, 2014 1:34 pm
Hi dziudek. Thanks for this heads up. I've been trying to work out from grid_news what the code might be but I can't confidently work out what code I need to put in under output method.

Please could you recommend what kind out code I need to insert? I just want a FIND MORE NEWS button - exactly like in Grid News.

Thanks
User avatar
Gold Boarder

GK User
Tue Sep 23, 2014 2:28 pm
The link is added by the following code in the grid_news controller file:

Code: Select all
// Link at the end
if($this->parent->config['portal_mode_grid_news_url'] != '') {
   echo '<a href="'.$this->parent->config['portal_mode_grid_news_url'].'">'.$this->parent->config['portal_mode_grid_news_link_text'].'</a>';
}


But please remember that this code uses a custom options - I recommend you to use proper values directly i.e.:

Code: Select all
echo '<a href="YOUR_URL">YOUR_LABEL</a>';
User avatar
Administrator

GK User
Wed Sep 24, 2014 6:53 am
I changed:

// Link at the end
if($this->parent->config['portal_mode_grid_news_url'] != '') {
echo '<a href="'.$this->parent->config['portal_mode_grid_news_url'].'">'.$this->parent->config['portal_mode_grid_news_link_text'].'</a>';
}
// closing main wrapper

to

// Link at the end
if($this->parent->config['portal_mode_grid_news_url'] != '') {
echo '<a href="YOUR_URL">YOUR_LABEL</a>';';
}
// closing main wrapper

(I changed YOUR URL and YOUR LABEL) but it threw up
Parse error: syntax error, unexpected '/' in /Applications/XAMPP/xamppfiles/htdocs/45/modules/mod_news_pro_gk5/portal_modes/grid_news/controller.php on line 92

Did I do that right?

Am I right YOUR URL is the destination page (ie where you want the user to go) and your label is simply the text label you want on the button?
User avatar
Gold Boarder

GK User
Wed Sep 24, 2014 8:44 pm
Did you read my message?

You should use only:

Code: Select all
echo '<a href="YOUR_URL">YOUR_LABEL</a>';
User avatar
Administrator

GK User
Thu Sep 25, 2014 9:32 am
Thanks dziudek and yes I did read your message.

I will try using only the code instead of in addition and let you know if it works! :-)
User avatar
Gold Boarder


cron