What we do - Show item titles

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
Thu Jul 18, 2013 1:14 am
Reply with quote
Report this post
Hi there,

In "what we do" I want to show the title of the item above the image. Can I do it from the module configuration or I have to change the code?
User avatar
Expert Boarder

GK User
Thu Jul 18, 2013 6:01 am
Reply with quote
Report this post
Hi
Can I do it from the module configuration or I have to change the code?


From configuration you can't, sorry, you have to modify "Portfolio" view inside .php files.
User avatar
Platinum Boarder

GK User
Thu Jul 18, 2013 7:52 am
Reply with quote
Report this post
Please do you know which lines we have to add?
User avatar
Expert Boarder

GK User
Thu Jul 18, 2013 11:02 pm
Reply with quote
Report this post
I'm not a programmer but I suggest start from this line:

mod_news_pro_gk5\portal_modes\portfolio\controller.php

line 39
Code: Select all
echo ' ----NAME OF ARTICLE ------- </a>';
User avatar
Platinum Boarder

GK User
Fri Jul 19, 2013 3:20 am
Reply with quote
Report this post
Thank you for your answer. I already add the line of code and we are having as an answer in the frontpage just the text "----NAME OF ARTICLE -------". Do you know if I have to change something else? The link to the website is services.estudie.org
User avatar
Expert Boarder

GK User
Fri Jul 19, 2013 9:53 pm
Reply with quote
Report this post
Try this in line 39

Code: Select all
echo '  '.$this->parent->content[$i]['title'].' </a>';

NEW-line39.png
User avatar
Platinum Boarder

GK User
Sat Jul 20, 2013 12:44 am
Reply with quote
Report this post
Done. Thank you!
User avatar
Expert Boarder

GK User
Mon Jul 29, 2013 12:38 pm
Reply with quote
Report this post
In the same module is possible don't use inks to the k2 articles to use just the front page as a website without subpages?
User avatar
Expert Boarder

GK User
Sun Aug 04, 2013 5:00 am
Reply with quote
Report this post
Solving my own question. I found the best options to solve this problem is to use the same link for all thumbnails. I just change the line 37 in mod_news_pro_gk5\portal_modes\portfolio\controller.php. The problem is if the link change in the future, is necessary to update this file:
Code: Select all
echo '<a href="your link" title="'.strip_tags($this->parent->content[$i]['title']).'" class="gkImage animate_queue_element active">';
User avatar
Expert Boarder


cron